Search completed in 1.23 seconds.
Theme concepts
These
theme options can be implemented as static
themes (although the
theme images themselves may be animated) or as dynamic
themes created in a browser extension. If you have a lightweight
theme it will be converted to this new
theme format automatically before lightweight
themes are deprecated. You do not need to port your
theme. However, please feel free to update your
themes to use any of the new features described here. ...
...PI in Firefox enable you to change the look of the browser by adding images to the header area of the Firefox browser; this is the area behind the menu bar, toolbars, address bar, search bar, and tab strip. These
theme options can be implemented as static
themes (although the
theme images themselves may be animated) or as dynamic
themes created in a browser extension. If you have a lightweight
theme it will be converted to this new
theme format automatically before lightweight
themes are deprecated. You do not need to port your
theme. ...
...h bar, and tab strip. These
theme options can be implemented as static
themes (although the
theme images themselves may be animated) or as dynamic
themes created in a browser extension. If you have a lightweight
theme it will be converted to this new
theme format automatically before lightweight
themes are deprecated. You do not need to port your
theme. However, please feel free to update your
themes to use any of the new features described here. Static
themes Static
themes are specified using the same resources as a browser extension: a manifest.json file to define the
theme components with those components stored in the same folder as the manifest.json file or a sub folder. These resources are then packed in a zip for publication on addons.mozilla.org (AMO) or for self-distribution. For...
...And 30 more matches
Building a Theme - Archive of obsolete content
Introduction This tutorial will take you through the steps required to build a very basic
theme - one which updates the background color of the toolbars in Firefox. Note: This tutorial is about building
themes for Firefox 29 and later. Other tutorials exist for building
themes for earlier versions of Firefox. For an older tutorial, see Creating a Skin for Firefox. Note: Firefox for Mac OS X has changed some directories so the guide may be obsolete. Setting up the Development Environment
Themes and extensions are packaged and distributed in ZIP files or Bundles, with the XPI (pronounced "zippy") file extension. ...
...rlier versions of Firefox. For an older tutorial, see Creating a Skin for Firefox. Note: Firefox for Mac OS X has changed some directories so the guide may be obsolete. Setting up the Development Environment
Themes and extensions are packaged and distributed in ZIP files or Bundles, with the XPI (pronounced "zippy") file extension. ...
...The file icon.png is used as an icon in the same panel. We'll leave both of them out for now, unle...
...And 21 more matches
Theme changes in Firefox 2 - Archive of obsolete content
Filename CSS File Details browser/base/searchDialog.xul browser/base/content/searchDialog.css Removed from Firefox 2. ...
... Filename CSS File Details browser/base/searchDialog.xul browser/base/content/searchDialog.css Removed from Firefox 2. ...
... Filename CSS File Details browser/base/searchDialog.xul browser/base/content/searchDialog.css Removed from Firefox 2. ...
...And 19 more matches
Sunbird Theme Tutorial - Archive of obsolete content
This tutorial is a step-by-step guide to making a
theme for Sunbird 0.3a1 and later versions. It is designed for beginners. It does not cover advanced topics. You might be able to apply the same method to other Mozilla applications by changing some of the details. Introduction A
theme is a package that users can install in an application to change the appearance of the application, without changing how the application works. For example, a
theme can change the size and colour of the toolbar buttons, and provide different icons on the buttons. But a
theme cannot provide an extra button. ...
...You can use this kind of zip tool if you rename each file before and after using the tool. ...
...You can use this kind of zip tool if you rename each file before and after using the tool. ...
...And 18 more matches
Common Firefox theme issues and solutions - Archive of obsolete content
This document was started on July 27, 2012 so it will take some time to completely fill in and some issues still need to have solutions written for them. Operating system specific issues Windows 7 Windows 7 Aero missing right-hand title bar buttons When tabs are on top and the menu bar is disabled, Firefox is missing the min/max/restore/close button on the right side of the title bar. ...
...customize toolbars, text labels in toolbar buttons may not align properly. The common cause of this is style rules that reference [iconsize="small"] without excluding [mode="text"]. The solution usually is to append :not ([mode="text"]) to those style rules. For instance use toolbar[iconsize="small"]:not ([mode="text"]). A little experimenting may be required to fully address this issue with your
theme. Address bar Identity box is missing padlock icons for secure sites In Firefox 14 and later the identity box has been significantly changed and the favicon has been replaced by an icon that indicates the website's status. In the case of secure sites the icon must be a padlock. To fix this issue, you need to copy the files chrome://browser/skin/identity-icons-generic.png, chrome://browser/skin/...
...avicon has been replaced by an icon that indicates the website's status. In the case of secure sites the icon must be a padlock. To fix this issue, you need to copy the files chrome://browser/skin/identity-icons-generic.png, chrome://browser/skin/identity-icons-https.png and chrome://browser/skin/identity-icons-https-ev.png to your browser folder. You can modify/redesign these icons to match your
theme provided appropriate padlock icons are used for secure sites but not on insecure sites. The following CSS rules also need to be copied to the proper location in the browser.css file and modified as necessary: /* page proxy icon */ #page-proxy-favicon { width: 16px; height: 16px; margin: 1px 3px; list-style-image: url(chrome://browser/skin/identity-icons-generic.png); -mo...
...And 15 more matches
Theme changes in Firefox 4 - Archive of obsolete content
In particular, the new file omni.jar contains most of the resources, including the skin. It's also important to note that skin files are now split into two subfolders within the omni.jar file, and you'll need to look in both places to find all the skin resources you need. ...
... In particular, the new file omni.jar contains most of the resources, including the skin. It's also important to note that skin files are now split into two subfolders within the omni.jar file, and you'll need to look in both places to find all the skin resources you need. ...
...ftware. In addition, due to the way the archive is optiimized, some zip utilities don't work with it. Controlling the actual icon size used by add-on toolbar buttons The iconsize attribute of the browser's toolbar elements now has a different default value on each toolbar independently. The value does not necessarily reflect the user preference in the toolbar customization palette anymore. The
theme can now override the value by setting a special CSS property on the toolbar. The iconsize attribute of the toolbox element in the main browser window (#navigator-toolbox) still reflects the user preference in the toolbar customization palette. Use of the iconsize attribute on toolbar elements Add-ons use the iconsize attribute to determine which icon they should display when a button is placed...
...And 11 more matches
Themes
Themes allow you to change the look and feel of the user interface and personalize it to your tastes. Learn how to create and share
themes! ...
...
Themes allow you to change the look and feel of the user interface and personalize it to your tastes. Learn how to create and share
themes! ...
...
Themes allow you to change the look and feel of the user interface and personalize it to your tastes. Learn how to create and share
themes! ...
...And 10 more matches
Frequently Asked Questions for Lightweight themes
Introducing Lightweight
themes What are Lightweight
themes? Lightweight
themes are easy-to-install, easy-to-use skins that change the look of your Firefox web browser. There are hundreds of thousands community-designed
themes to choose from, with more added every day. Start looking here for designs that fit your style. What kind of computers and operating systems do Lightweight
themes work with? Lightweight
themes work with any type of computer that has Firefox installed. This includes Mac, Linux, Windows, and Android platforms. What can Lightweight
themes do? ...
...ds of thousands community-designed
themes to choose from, with more added every day. Start looking here for designs that fit your style. What kind of computers and operating systems do Lightweight
themes work with? Lightweight
themes work with any type of computer that has Firefox installed. This includes Mac, Linux, Windows, and Android platforms. What can Lightweight
themes do? Lightweight
themes change the header area of your browser, including the tab text color and the background tab colors. You can easily preview a design and install it without needing to restart. Installing Lightweight
themes How do I add Lightweight
themes to my Firefox? ...
...udes Mac, Linux, Windows, and Android platforms. What can Lightweight
themes do? Lightweight
themes change the header area of your browser, including the tab text color and the background tab colors. You can easily preview a design and install it without needing to restart. Installing Lightweight
themes How do I add Lightweight
themes to my Firefox? In just a few seconds, you can install a
theme and transform the look of your Firefox web browser. Preview any
theme by clicking "Tap to Preview"; the design appears in your browser header so you can "try it on." When you're ready, just click the blue Install
Theme button. Once a
theme is installed, it is saved in the Add-ons Manager, where you can enable or disable them as you wish. Simply go to the Tools > Add-ons menu and click on the Appe...
...And 9 more matches
Theme Packaging
The documentation here is out of date. This document describes how to package
themes for Thunderbird. Pre-requisites Making a
theme for Thunderbird requires knowledge of Cascading Stylesheets (CSS), probably XBL, and some graphic design and aesthetic skill (...or maybe not). This document describes only how
Themes are packaged in order to be shown in Firefox's
Themes window.
Theme File Layout Thunderbird
themes are packaged in an XPI file with the following structure:
theme.xpi: install.rdf preview.png icon.png chrome/ browser/files communicator/files global/files mozapps/files ... ...
...It can be any size. ...
...It can be any size. icon.png is a 32x32 (max. 48x48) PNG (may contain alpha transparency) which will show up in the Appearance section of the Add-ons Manager. ...
...And 7 more matches
Create Your Own Firefox Background Theme - Archive of obsolete content
Image Requirements Dimensions should be 3000px wide x 200px high PNG or JPG file format Image must be no larger than 300 KB in file size Tips Subtle, soft contrast images and gradients work best; highly detailed images will compete with the browser UI. ...
...der" graphic image file, which skins the default Firefox UI background. Finished Your Design? You can submit it right now! Creating a
Theme Header Image The header image is displayed as the background of the top of the browser window, nestling in behind the toolbars, address bar, search bar and the tab strip. It will be anchored to the top-right corner of the browser window. View a sample
Theme Header here. Image Requirements Dimensions should be 3000px wide x 200px high PNG or JPG file format Image must be no larger than 300 KB in file size Tips Subtle, soft contrast images and gradients work best; highly detailed images will compete with the browser UI. Firefox may reveal more of the lower portion of the image if another toolbar or other UI element is added to the top of ...
...most important information--as a user increases the width of the browser window, the browser reveals more of the left-hand side of the image. Online Image Editor Resources Pixlr -- Pixlr offers professional and easy-to-use tools for creating and editing images within a browser. Photoshop -- Tweak, rotate and touch up photos with Photoshop(R) Express, a free online photo editor. Creating a
Theme Footer Image In older versions of Firefox, or newer versions with certain add-ons installed, the footer image is displayed as the background of the bottom of the browser window, behind the add-on and find bars. It will be anchored to the bottom-left corner of the browser window. Footer images are optional. View a sample
Theme Footer here. Image Requirements Dimensions should be 3000px ...
...And 5 more matches
Theme changes in Firefox 3 - Archive of obsolete content
This article covers the changes that need to be made to update a Firefox
theme to work properly in Firefox 3. Note: We could use an article called Updating
themes for Firefox 3 that would serve as a how-to guide for updating
themes. If anyone with theming experience would like to write one, please do! ...
... This article covers the changes that need to be made to update a Firefox
theme to work properly in Firefox 3. Note: We could use an article called Updating
themes for Firefox 3 that would serve as a how-to guide for updating
themes. If anyone with theming experience would like to write one, please do! ...
...update a Firefox
theme to work properly in Firefox 3. Note: We could use an article called Updating
themes for Firefox 3 that would serve as a how-to guide for updating
themes. If anyone with theming experience would like to write one, please do! Browser changes requiring
theme updates There are a number of changed and deleted files in the browser that may require you to make changes to your
theme. The table lists both the changed XUL file and the
theme's corresponding CSS file that you might need to update. Filename CSS File Details Changes to the default
theme The table below lists changes made in the default
theme for Firefox 3; you can use this information as a starting point for figuring out the changes you need to make. All file list All...
...And 5 more matches
Lightweight themes
It will be anchored to the top-right corner of the browser window. View a sample
Theme Header here. ...
... Lightweight
themes are sometimes referred to as "Background
themes" or, (on addons.mozilla.org) as just "
Themes". How to create your own lightweight
theme Lightweight
themes are made up of a "header" graphic image file, which skins the default Firefox UI background. Finished Your Design? You can submit it right now! Creating a
theme header image The header image is displayed as the background of the top of the browser window, nestling in behind the toolbars, address bar, search bar and the tab strip. It will be anchored to the top-right corner of the browser window. View a sample
Theme Header here. Image requirements Dimensions should be 3000px wide x 200px high PNG or JPG file format Image must be no larger than 300 KB in file size Tips Subtle, soft contrast images and...
... image. Ultrawide monitors can run to 3440px wide, to look good on these monitors, ensure the left of the image fades to a solid color. Online image editor resources Pixlr -- Pixlr offers professional and easy-to-use tools for creating and editing images within a browser. Photoshop -- Tweak, rotate and touch up photos with Photoshop(R) Express, a free online photo editor. ...
...And 4 more matches
:-moz-system-metric(windows-default-theme) - Archive of obsolete content
The :-moz-system-metric(windows-default-
theme) CSS pseudo-class matches an element if the user is currently using one of the following
themes in Windows: Luna, Royale, Zune, or Aero (i.e., Vista Basic, Vista Standard, or Aero Glass). This will exclude Windows Classic
themes as well as third-party
themes. This selector is intended for use mainly by
theme developers. Note: Since Firefox 58, this pseudo-class is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Example HTML Content <p id="default
Themes"> This paragraph should have a green background with Luna/Royale/Zune/Aero Windows
themes and red with other
themes. </p> <p id="nonDefault
Themes"> This paragraph should have a green backgroun...
...e to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Example HTML Content <p id="default
Themes"> This paragraph should have a green background with Luna/Royale/Zune/Aero Windows
themes and red with other
themes. </p> <p id="nonDefault
Themes"> This paragraph should have a green background with Windows Classic or third-party
themes and red with other
themes. ...
...XUL / chrome code). See bug 1396066 for more details. Example HTML Content <p id="default
Themes"> This paragraph should have a green background with Luna/Royale/Zune/Aero Windows
themes and red with other
themes. </p> <p id="nonDefault
Themes"> This paragraph should have a green background with Windows Classic or third-party
themes and red with other
themes. ...
...And 3 more matches
Making sure your theme works with RTL locales - Archive of obsolete content
derstand about these locales, is that the entire interface is mirrored right-to-left. That means that text that had a left margin will have a right margin instead (or -moz-margin-start), arrows that pointed right will have to point left and vice versa, and so on. A screenshot of Firefox 2 in Hebrew What you need to do At this stage you might ask yourself, "How would I know what language is my
theme installed on? Should I make a special
theme for these locales?" Don't despair: making a
theme RTL-compatible is fairly easy! Gecko 1.9.2 and later Gecko 1.9.2 introduced the :-moz-locale-dir CSS pseudoclass, which matches based on whether the user interface is being rendered left-to-right or right-to-left: :-moz-locale-dir(ltr) matches if the user interface is being rendered left to right. ...
...mage-region: rect(0px 516px 34px 480px); } This specifies the default, left-to-right version of the button, then offers an override if the user's interface is being rendered in right-to-left mode. Gecko 1.9.1 (Firefox 3.5) and earlier The chromedir attribute Firefox, Thunderbird and SeaMonkey expose an attribute named chromedir on certain elements. All you have to do is add CSS rules to your
theme that test for the value of this attribute, and use that to apply any RTL-specific rules that you may have. That's how the default
theme works, so you can use it as an example. toolbar[iconsize="large"][mode="icons"] #back-button { -moz-image-region: rect(0px 398px 34px 360px); } toolbar[iconsize="large"][mode="icons"] #back-button[chromedir="rtl"] { -moz-image-region: rect(0px 516px 34px 47...
... Note that not all elements will have the chromedir attribute, so you may need to refer to an ancestor element that does. For example: /* We want to apply a RTL rule to #c; neither it nor its * parent element #b has a chromedir attribute, but its * grandparent element #a does. ...
...And 2 more matches
theme_color - Web app manifests
Working Draft Initial definition. ...
... Working Draft Initial definition. ...
... Working Draft Initial definition. ...
...And 2 more matches
Using the standard theme - Archive of obsolete content
By default, no style is associated with XUL extension windows or dialogs. You can either provide a complete custom styling, but most of the time you also want to be able to reuse the standard
theme (also called the "Global Skin") of the base application for non-custom elements, transparently with regard to which
theme the user has currently chosen. At the beginning, there is no style When creating a new XUL <tt>window</tt> (or a new <tt>dialog</tt>, for that matter) in your extension, and you do not associate a style sheet with it, your widgets will be unstyled. ...
... elements, transparently with regard to which
theme the user has currently chosen. At the beginning, there is no style When creating a new XUL <tt>window</tt> (or a new <tt>dialog</tt>, for that matter) in your extension, and you do not associate a style sheet with it, your widgets will be unstyled. Meaning, some internal default will be applied, which does by no means correspond to the standard
theme (the
theme currently chosen by the user in the
Theme Selector), or even the default
theme delivered with your the base application. ...
...or a new <tt>dialog</tt>, for that matter) in your extension, and you do not associate a style sheet with it, your widgets will be unstyled. Meaning, some internal default will be applied, which does by no means correspond to the standard
theme (the
theme currently chosen by the user in the
Theme Selector), or even the default
theme delivered with your the base application. Applying the standard
theme In order to use the
theme currently chosen by the user of the base application (the so called "Global Skin"), you have to add the following line to your XUL file: <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> This imports the styles found in the <tt>global/skin</tt> chrome directory and will make the standard XUL widgets of your application use the selected chosen
theme. You d...
... type="text/css"?> <tt>@import</tt> chains First, import the global skin in your custom style sheet using the CSS <tt>@import</tt> rule: @import url("chrome://global/skin/"); You then have to associate your XUL file with your custom style sheet only: <?xml-stylesheet href="chrome://myextension/skin/custom.css" type="text/css"?> Applying different custom style sheets depending on the selected
theme Mozilla is able to automatically pick your custom style sheet depending on the
theme currently chosen by the user. That is, depending on the
theme currently selected by the user, you can provide different custom style sheets for your extensions. For this to work, you need to create an approriate directory structure, with directory names corresponding to the names of the
themes you want to extend,...
Theme changes in Firefox 3.5 - Archive of obsolete content
Draft This page is not complete. This article covers the changes that need to be made to update a Firefox
theme to work properly in Firefox 3.5. Core, browser and toolkit changes requiring
theme updates There are a number of changes in the browser that may require you to make changes to your
theme. Affected files Details scrollbar.xml, xulscrollbars.css The <gripper> element was removed from the scrollbar thumb button by bug 448704. For the Windows and Linux native default
themes, the gripper is now drawn as a part of the background of the scrollbar thumb widget. Third-party
themes can still draw a gripper for the scrollbar thumb button by applying a centered background image to the scrollbar's thumb button. global/checkbox.css, global/radio.css...
...You might have to set the width and height of .checkbox-check and .radio-check to 16px to avoid that problem. Look at the patch to see what was changed for Pinstripe. Bug 450944 changed the way window shadow is handled on Mac OS X. ...
...ck and .radio-check to 16px to avoid that problem. Look at the patch to see what was changed for Pinstripe. Bug 450944 changed the way window shadow is handled on Mac OS X. Before that change, opaque windows always had a shadow and transparent windows never had a shadow. After that change, transparent windows also have a shadow by default. This can result in unwanted shadows in your
theme, e.g. under the autoscroll icon or the identity panel. If you don't want the shadow, you can turn it off by setting the new -moz-window-shadow CSS property to none on the affected element. browser.xul Bug 463189 added a new attribute on the XUL window element of browser.xul named browsingmode. The value of this attribute is normal when the Private Browsing mode is inactive, and priva...
...shadow. Greying menus of inactive windows: active windows get attribute 'active="true"'. To do this only for 3.5 use a CSS selector that is only supported in 3.5, like so: window:not([active="true"]) menubar>menu:nth-child(1n) { color:threedshadow } Private browsing: show private browsing state by coloring the URL bar, or by adding an icon to the toolbox/tabbrowserbar. See Private browsing for
theme designers for details. Native hyperlink color: use -moz-nativehyperlinktext, to select the computer's native hyperlink color. All known changes For a list of all the known changes see: MozillaZine's Forum:
Theme changes for Firefox 3.5 ...
Installing Extensions and Themes From Web Pages - Archive of obsolete content
Extension and web authors are encouraged to use the method described below to install XPIs, as it provides the best experience to users. ...
...file being served by a mirror download server, for example. You can use any hash function supported by nsICryptoHash. The hash is specified as hash function:hash value, for example, sha1:28857e60d043447c5f4550853f2d40770b326a13. toString() The toString() property should return the XPI URL, for compatibility with Firefox browsers older than version 1.0, and other applications such as Seamonkey.
Themes Pretty much everything I've described applies to
themes too, except you'll use the installChrome function. Because so many sites installed extensions by direct-linking the XPI file and relying on content handling to invoke the confirmation UI, many sites are (incorrectly) doing so for
theme JAR files too and wondering why they aren't auto-detected and installed. Well, XPI is a Mozilla-specific ...
...nction. Because so many sites installed extensions by direct-linking the XPI file and relying on content handling to invoke the confirmation UI, many sites are (incorrectly) doing so for
theme JAR files too and wondering why they aren't auto-detected and installed. Well, XPI is a Mozilla-specific extension and so we can have special handling for it, but JAR is not - not all .jar files are Firefox
themes, so if you click on a .jar link you'll be shown the Save As decision dialog. For this reason you should always use the InstallTrigger API to install
themes. A Note on updateEnabled() InstallTrigger exposes a function called updateEnabled that some of you may be calling before you call InstallTrigger.install. This is not necessary as install calls updateEnabled itself internally. Furthermore, c...
:-moz-system-metric(mac-graphite-theme) - Archive of obsolete content
Note: Since Firefox 58, this pseudo-class is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). ...
... Note: Since Firefox 58, this pseudo-class is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). ...
-moz-mac-graphite-theme - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. The -moz-mac-graphite-
theme Gecko-only CSS media feature can be used to apply styles based on whether the user has the Mac OS X "Graphite"
theme enabled. Syntax <integer> If the user has configured their device to use the "Graphite" appearance on Mac OS X, this is 1. If the user is using the standard blue appearance, or is not on Mac OS X, this is 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-windows-default-theme - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the user is using one of the default Windows
themes--Luna, Royale, Zune, or Aero (including Vista Basic, Vista Advanced, and Aero Glass)--this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-windows-theme - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. The -moz-windows-
theme Gecko-only CSS media feature is useful for customizing application skins and other chrome code to work well with the user's Windows
theme. Syntax The -moz-windows-
theme feature is specified as a keyword value that Indicates which Windows
theme is currently being used. Values aero luna-blue luna-olive luna-silver royale generic zune Media: media/visual Accepts min/max prefixes: no ...
:-moz-lwtheme-brighttext
Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The :-moz-lw
theme-brighttext pseudo-class matches in chrome documents when :-moz-lw
theme is true and a lightweight
theme with a bright text color is selected. ...
:-moz-lwtheme-darktext
Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The :-moz-lw
theme-darktext pseudo-class matches in chrome documents when :-moz-lw
theme is true and a lightweight
theme with a dark text color is selected. ...
:-moz-lwtheme
Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The :-moz-lw
theme pseudo-class matches in chrome documents when the root element's lightweight
themes attribute is true and a
theme is selected. ...
theme-color - HTML: Hypertext Markup Language
The
theme-color value for the name attribute of the <meta> element indicates a suggested color that user agents should use to customize the display of the page or of the surrounding user interface. If specified, the content attribute must contain a valid CSS <color>. Example <meta name="
theme-color" content="#4285f4"> The following image shows the effect that the <meta> element above will have on a document displayed in Chrome running on an Android mobile device. Image credit: from Icons & Browser Colors, created and shared by Google and used according to terms described in the Creative Commons 4.0 Attribution License. Specifications Specification HTML Living StandardThe definition of '
theme-color' in that specification. ...
Index - Archive of obsolete content
239 Extension Versioning, Update and Compatibility Add-ons, Extensions Add-ons should specify their versions using the Toolkit version format. As a rough overview this is a version string split by periods, some examples: 240 Extensions support in SeaMonkey 2 Add-ons, CodingScripting, Extensions, JavaScript, SeaMonkey, URL, thunderbird Starting with SeaM...
...r-enabled XUL application (e.g. Firefox or Thunderbird) uses to determine information about an add-on as it is being installed. It contains metadata identifying the add-on, providing information about who created it, where more information can be found about it, which versions of what applications it is compatible with, how it should be updated, and so on. 247 Installing Extensions and
Themes From Web Pages Add-ons, Extensions, Obsolete,
Themes There are a variety of ways you can install extensions and
themes from web pages, including direct linking to the XPI files and using the InstallTrigger object. 248 Interaction between privileged and non-privileged pages Add-ons, Code snippets, Extensions An easy way to send data from a web page to an extension i...
...9 Signing an XPI Add-ons, Code snippets, Extensions, Guide, NeedsHelp, XPInstall This article describes how to sign your own Firefox extensions with a code-signing certificate on a Windows platform. It was developed from the linux article So you want to sign your XPI package? by MozDev Group's Pete Collins. 300 Signing an extension Add-ons, Administration, Extensions,
Themes, XPInstall, enterprise This article describes how to digitally sign your extension for Firefox and Thunderbird, with a code signing certificate for Object Signing. The following instructions also apply to a
theme and other XPI files. 301 Supporting search suggestions in search plugins Add-ons, OpenSearch, Search, Search plugins Firefox supports search suggestions in Op...
...And 31 more matches
Getting Started - Archive of obsolete content
This is located in the file classic.jar found in the Seamonkey 2 installation directory. A .jar file is in reality a renamed zip archive. Opening the .jar files in your archive manager of choice should result in the file being automatically detected as being a zip archive. However, if your application doesn't detect classic.jar as a standard zip archive, rename the file classic.zip and continue extraction. ...
...classic contains the following directories. skin\classic\communicator communicator contains all the toolbar icons, as well as the icons for the bookmark manager and the preferences window. skin\classic\editor editor contains files of Composer. skin\classic\global global contains almost all of the important CSS files that define the appearance of the suite. This is the most critical directory in a
theme. skin\classic\help help contains all the files for theming the help dialog window. skin\classic\messenger messenger contains styles of the mail client. skin\classic\messenger-newsblog messenger-newsblog contains the only CSS file. skin\classic\mozapps mozapps contains all the styles and icons for the browser peripherals, such as the extension manager or update wizard. skin\classic\navigator navig...
...indow. skin\classic\messenger messenger contains styles of the mail client. skin\classic\messenger-newsblog messenger-newsblog contains the only CSS file. skin\classic\mozapps mozapps contains all the styles and icons for the browser peripherals, such as the extension manager or update wizard. skin\classic\navigator navigator contains some icons and styles for all SM components. Install Your New
Theme Before you can see the changes you make to a SeaMonkey
theme (since live edits are restrictively difficult to set up) you must first learn how to repackage the classic
theme to make it installable. For the sake of this discussion we will call your
theme "My_
Theme", though you can replace that with any name. Copying The Necessary Files The first step is to move all the files into the right directo...
...And 14 more matches
Creating a Skin for Firefox/Getting Started - Archive of obsolete content
This is located in the file classic.jar found in the Firefox installation directory. A .jar file is in reality a renamed zip archive. Opening the .jar files in your archive manager of choice should result in the file being automatically detected as being a zip archive. ...
...This is located in the file classic.jar found in the Firefox installation directory. A .jar file is in reality a renamed zip archive. Opening the .jar files in your archive manager of choice should result in the file being automatically detected as being a zip archive. ...
...ality a renamed zip archive. Opening the .jar files in your archive manager of choice should result in the file being automatically detected as being a zip archive. However, if your application doesn't detect classic.jar as a standard zip archive, rename the file classic.zip and continue extraction. Note: Starting in Gecko 2.0, the new omni.jar file contains the skin, among other resources. See
Theme changes in Firefox 4 for details on how to extract skin files from Firefox 4 or later. Classic.jar locations Linux: /usr/lib/MozillaFirefox/chrome/classic.jar or /usr/lib/firefox-*.*.*/chrome/classic.jar Windows: \Program Files\Mozilla Firefox\chrome\classic.jar For Mac OS X: Go to your applications folder Control click application icon(Firefox icon), choose Show Package Contents. Go to...
...And 13 more matches
The Firefox codebase: CSS Guidelines
tive and usually better. Boilerplate Make sure each file starts with the standard copyright header (see License Boilerplate). Before adding more CSS It is good practice to check if the CSS that is being written is needed, it can be the case that a common component has been already written could be reused with or without changes. Most of the time, the common component already follows the a11y/
theme standards defined in this guide. So, when possible, always prefer editing common components to writing your own. Also, it is good practice to introduce a common class when the new element you are styling reuses some styles from another element, this allows the maintenance cost and the amount of code duplication to be reduced. Formatting Spacing & Indentation 2 spaces indentation is preferre...
...the padding is symmetrical (so RTL won't be an issue). Note: See CSS Logical Properties and Values for more information. Testing To test for RTL layouts, you can go to about:config and set intl.uidirection to -1. ...
... Windows 7, 8 and 10 Default
theme Aero basic (Windows 7, 8) Windows classic (Windows 7) High contrast (All versions) Linux macOS File structure The browser/ directory contains styles specific to Firefox The toolkit/ directory contains styles that are shared across all toolkit applications (Thunderbird and SeaMonkey) Under each of those two directories, there is a
themes directory containing 4 sub-directories: shared linux osx windows The shared directories contain styles shared across all 3 platforms, while the other 3 directories contain styles respective to their platform. For new CSS, when possible try to privilege using the shared directory, instead of writing the same CSS for the 3 platform specific directories, especially for large blocks of CSS.
...And 13 more matches
Complete - Archive of obsolete content
ns, see the main Extensions page here. Features of this extension This extension is a more complex version of the original Custom Toolbar Button extension. It provides a user interface in two languages (English and French). It supports Firefox, Thunderbird, Sunbird and Flock--these are referred to as "Firefox etc." in the rest of this page. It also supports SeaMonkey. In SeaMonkey it supports two
themes (Classic and Modern). It provides all five custom toolbar buttons on all the toolbars, and it provides corresponding menu choices in SeaMonkey's ChatZilla window. The following sections describe this extension's overall structure, and how it implements languages and
themes. Overall structure This extension's internal name is allcustom. It uses this name as the default file name throughout. Where...
...check extensions for compatibility before installing them. These version checks depend on the version numbers specified in the install.rdf file. There are two approaches: pessimistic and optimistic. The approach that is normally recommended is pessimistic. The ex...
...check extensions for compatibility before installing them. ...
...And 9 more matches
DevTools API - Firefox Developer Tools
access tool instances. An instance of a tool is called a ToolPanel. The ToolPanel is built only when the tool is selected (not when the toolbox is opened). There is no way to "close/destroy" a ToolPanel. The only way to close a toolPanel is to close its containing toolbox. All these objects implement the EventEmitter interface. API gDevTools The gDevTools API can be used to register new tools,
themes and handle toolboxes for different tabs and windows. To use the gDevTools API from an add-on, it can be imported with following snippet const { gDevTools } = require("resource:///modules/devtools/gDevTools.jsm"); Methods registerTool(toolDefinition) Registers a new tool and adds a tab to each existing toolbox. Parameters: toolDefinition {ToolDefinition} - An object that contains info...
...isters a new tool and adds a tab to each existing toolbox. Parameters: toolDefinition {ToolDefinition} - An object that contains information about the tool. See ToolDefinition for details. unregisterTool(tool) Unregisters the given tool and removes it from all toolboxes. Parameters: tool {ToolDefinition|String} - The tool definition object or the id of the tool to unregister. register
Theme(
themeDefinition) Registers a new
theme. Parameters:
themeDefinition {
ThemeDefinition} - An object that contains information about the
theme. unregister
Theme(
theme) Unregisters the given
theme. Parameters:
theme {
ThemeDefinition|String} - The
theme definition object or the
theme identifier. showToolbox(target [, toolId [, hostType [, hostOptions]]]) Opens a toolbox for given t...
...ed. Parameters: toolId {String} - The ID of the tool. Return value: A ToolDefinition if a tool with the given ID exists and is enabled, null otherwise. getToolDefinitionMap() Returns a toolId -> ToolDefinition map for tools that are enabled. getToolDefinitionArray() Returns an Array of ToolDefinition objects for enabled tools sorted by the order they appear in the toolbox. ...
...And 9 more matches
Chrome-only CSS reference
code (and sometimes in other privileged circumstances, eg. UA stylesheets.) Note: Most of the CSS properties exposed to the Web in general are also usable in Chrome stylesheets: see the CSS documentation for a list of these. -moz-window-draggingThe -moz-window-dragging CSS property specifies whether a window is draggable or not. ...
...mes in other privileged circumstances, eg. UA stylesheets.) Note: Most of the CSS properties exposed to the Web in general are also usable in Chrome stylesheets: see the CSS documentation for a list of these. -moz-window-draggingThe -moz-window-dragging CSS property specifies whether a window is draggable or not. ...
...S properties exposed to the Web in general are also usable in Chrome stylesheets: see the CSS documentation for a list of these. -moz-window-draggingThe -moz-window-dragging CSS property specifies whether a window is draggable or not. ...
...And 7 more matches
Structure of an installable bundle - Archive of obsolete content
Basic structure of a bundle A bundle may include any of the following files: Path from the root of the bundle Description Version information /install.rdf Extension/
Theme Install Manifest /application.ini Application Launch Manifest /bootstrap.js The bootstrap script for extensions not requiring a restart (those with <em:bootstrap>true</em:bootstrap> in their install.rdf). Note that other files and directories (e.g. ...
...me.manifest) Application-specific /searchplugins/*.src Sherlock search plugins Firefox 1.5 and greater. /searchplugins/*.xml MozSearch and OpenSearch plugins Firefox 2 and greater /dictionaries/*.{aff|dic} Myspell dictionaries Firefox 2 and greater Of course, an extension need not (and normally won't) have all of these directories.
Themes are limited for security reasons, and can normally only provide a chrome.manifest which registers the
theme and a JAR file. Platform-specific files Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) removed support for platform-specific subdirectories, described below. Instead, you need to use manifest flags, such as the OS and ABI flags, in your chrome manifest to specify components that...
...have platform-specific preference files in your bundle. Platform-specific subdirectories: Gecko 1.9.2.x and earlier Note: Platform-specific subdirectory support was removed in Gecko 2.0. See the section Platform-specific files to learn how to use platform-specific files. In some cases a single extension or application may wish to include binary component or plugins for multiple platforms, or
theme authors might want to include multiple platform-specific JAR files. To facilitate the first case, the extension/app loader has special sub-directories specifically for platform-specific files (starting with Toolkit/Gecko 1.8, Firefox/Thunderbird 1.5). The platform string is defined during the toolkit build process to a value unique for the combination of operating system, processor architecture a...
...And 6 more matches
Making decisions in your code — conditionals - Learn web development
e a great day!' : 'Good morning Mrs. Smith.'; Here we have a variable called isBirthday -- if this is true, we give our guest a happy birthday message; if not, we give her the standard daily greeting. Ternary operator example The ternary operator is not just for setting variable values; you can also run functions, or lines of code -- anything you like. ...
...this is true, we give our guest a happy birthday message; if not, we give her the standard daily greeting. Ternary operator example The ternary operator is not just for setting variable values; you can also run functions, or lines of code -- anything you like. The following live example shows a simple
theme chooser where the styling for the site is applied using a ternary operator. ...
...we give our guest a happy birthday message; if not, we give her the standard daily greeting. Ternary operator example The ternary operator is not just for setting variable values; you can also run functions, or lines of code -- anything you like. The following live example shows a simple
theme chooser where the styling for the site is applied using a ternary operator. ...
...And 6 more matches
Enhanced Extension Installation - Archive of obsolete content
application directory, e.g. C:\Program Files\Mozilla Firefox\extensions Extension Metadata The Extension System stores metadata in both of the two locations, in the following files: <location>/extensions/Extensions.rdf - an XML/RDF datasource listing all the Extensions installed at that location. <location>/extensions.ini - an INI manifest listing the directories for all the Extensions and
Themes at the location (used by the Component Manager, Preferences system, Chrome Registry etc to locate files during the startup process). In the profile directory, the file compatibility.ini stores information about the version of the application (build info) that last started this profile - during startup this file is checked and if the version info held by the running app disagrees with the info ...
...the code using a boolean value, often referred to as isProfile - true if the item is installed in the profile directory's extensions folder. This boolean relationship itself is not stored directly in the datasource. Rather, if the system needs to know where an item is located, it checks to see if the item is a member of the the appropriate type container (urn:mozilla:extension:root or urn:mozilla:
theme:root) in each of the two datasources. This is clumsy. Item Type The Extension System in Firefox 1.0 supports only two item types, Extensions and
Themes. This is a by-product of the fact that there are physical per-type containers in the datasource. Sections of UI that display installed items are rooted on these containers. Tracking Item Type Item type is tracked for the most part by containme...
...of the fact that there are physical per-type containers in the datasource. Sections of UI that display installed items are rooted on these containers. Tracking Item Type Item type is tracked for the most part by containment in one or other of the two containers. In situations where an item is not yet a member of one of the containers, type is inelegantly determined by checking for presence of a
theme-only property on the item's Install Manifest RDF file. Installation Initiation When an item is installed from the web, XPInstall is invoked and it calls into the Extension System when it discovers that the XPI file contains an install.rdf manifest. The Extension Manager extracts that file and checks to see if the item is compatible with the running version of the application. If it is, a small...
...And 5 more matches
XULRunner tips - Archive of obsolete content
anager in application.ini. XULRunner 1.8.0 does not load extensions from the application directory; only the XULRunner directory and the user profile directory are checked. However, it seems that with XULRunner 1.9 the XULRunner directory is ignored, while the profile and application directories are checked. ...
... 1.9 the XULRunner directory is ignored, while the profile and application directories are checked. ...
... and
theme manager work: pref("xpinstall.dialog.confirm", "chrome://mozapps/content/xpinstall/xpinstallConfirm.xul"); pref("xpinstall.dialog.progress.skin", "chrome://mozapps/content/extensions/extensions.xul?type=
themes"); pref("xpinstall.dialog.progress.chrome", "chrome://mozapps/content/extensions/extensions.xul?type=extensions"); pref("xpinstall.dialog.progress.type.skin", "Extension:Manager-
themes"); pref("xpinstall.dialog.progress.type.chrome", "Extension:Manager-extensions"); pref("extensions.update.enabled", true); pref("extensions.update.interval", 86400); pref("extensions.dss.enabled", false); pref("extensions.dss.switchPending", false); pref("extensions.ignoreMTimeChanges", false); pref("extensions.logging.enabled", false); pref("general.skins.selectedSkin", "classic/1.0"); // NB th...
...And 5 more matches
contents.rdf - Archive of obsolete content
Copy the following text and paste it into a text file, then save that file as "contents.rdf": <?xml version="1.0"?> <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"> <!-- List all the skins being supplied by this
theme --> <RDF:Seq about="urn:mozilla:skin:root"> <RDF:li resource="urn:mozilla:skin:My_
Theme"/> </RDF:Seq> <RDF:Description about="urn:mozilla:skin:My_
Theme" chrome:displayName="My
Theme" chrome:accessKey="N" chrome:author="" chrome:authorURL="" chrome:description="" chrome:name="My_
Theme" chrome:image="preview.png"> <chrome:packages> <RDF:Seq about="urn:mozilla:skin:My_
Theme:packages"> <RDF:li resource="urn:mozilla:skin:My_Th...
...State that we work only with major version 1 of this package. ...
... chrome:author="" chrome:authorURL="" chrome:description="" chrome:name="My_
Theme" chrome:image="preview.png"> <chrome:packages> <RDF:Seq about="urn:mozilla:skin:My_
Theme:packages"> <RDF:li resource="urn:mozilla:skin:My_
Theme:browser"/> <RDF:li resource="urn:mozilla:skin:My_
Theme:communicator"/> <RDF:li resource="urn:mozilla:skin:My_
Theme:global"/> <RDF:li resource="urn:mozilla:skin:My_
Theme:mozapps"/> <RDF:li resource="urn:mozilla:skin:My_
Theme:help"/> </RDF:Seq> </chrome:packages> </RDF:Description> <!-- Version Information. State that we work only with major version 1 of this package. ...
...And 5 more matches
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
toolbar by default. It's a comma-separated list of ids, and it can also include other special values: spacer, separator and spring. spacer represents an empty button space, separator a vertical separation line and spring a flexible empty area that stretches. Finally, the insertbefore attribute places our toolbar above the Bookmarks Toolbar. This is a matter of personal preference, but the Mac OS
theme seems to be designed so that the Bookmarks Toolbar is always the last one (it has a lighter color than the rest). It also makes sense from a usability perspective, since bookmarks should be very easy to access for the user. That's it for the basics. With this knowledge you should be able to create simple toolbars and toolbar buttons you can add to Firefox. Now we'll look deeper into the details...
...sions is not mentioned here (you can check this document's change history for older revisions, though). These are the current icon sets for Firefox: Windows Mac OS X (Lion and above) Mac OS X Linux (Gnome) Note: the images above are probably not distributable under the same CC license, unlike the rest of this material. Here are the key similarities and differences between the 3
themes: All systems use small icons that are 16x16 pixels. Only the Gnome
theme has a set of large icons that are 24x24 pixels. Only a few icons have different states (rows). The disabled state for most buttons is handled with CSS. The icon sets have different paddings for their icons. The one for Windows has 19x19 pixel frames, while the Mac OS ones are 20x20 pixels. This doesn't really matter as...
...ons are 24x24 pixels by default. Since Firefox is a GTK application, it uses GTK icons whenever possible. The icons in the image are the ones that aren't provided by GTK. GTK icons are accessed using special URLs, like this one: moz-icon://stock/gtk-go-back?size=menu. You can enter this URL in Firefox on Linux, and the corresponding icon will be displayed. This is also the reason this is the only
theme that still has colorful icons for its buttons. Now let's look at the CSS work involved in a toolbar that works on the aforementioned systems. If you want your toolbar to look right on all systems, you should consider having different icon sets for each. You should also consider using a graphic designer for this work, as it takes a lot of attention to detail to make good icons. You can have a d...
...And 4 more matches
XUL Structure - Archive of obsolete content
Mozilla. However, if you just want to get started building a simple application, you may skip ahead to Creating a Window and save this section for later. Package Organization Mozilla is organized such that you can have as many components as you want pre-installed. Each extension is something of a standalone component with a separate chrome URL. Mozilla also has one component for each installed
theme and locale. Each of these components, or packages, is made up of a set of files that describe the user interface for it. For example, the messenger component has descriptions of the mail messages list window, the composition window and the address book dialogs. The packages that are provided with Mozilla are located within the chrome directory, which is in the directory where you built Mozilla. ...
... elements contained within them. These are stored in XUL files, which have a .xul extension. A content package can have multiple XUL files, but the main window should have a filename that is the same as the package name. For example, the editor package will have a file within it called editor.xul. Scripts are placed in separate files alongside the XUL files. Skin - Style sheets, images and other
theme specific files Style sheets describe details of the appearance of a window. They are stored separately from XUL files to facilitate modifying the skin (
theme) of an application. Any images used are stored here also. Locale - Locale specific files All the text that is displayed within a window is stored separately. This way, a user can have a set for their own language. Content Packages Th...
...ethod is the manifest file mentioned earlier, and you will find these as files with the .manifest extension in the chrome directory. For instance, browser.manifest describes the browser package. Several subdirectories, such as bookmarks and preferences, describe additional sections of the browser component. They are placed in different directories only to keep the files more organized. Skins or
Themes Although the underlying code for Mozilla calls them skins and the user interface calls them
themes, they're both referring to the same thing. The classic.jar file describes the default
theme provided with Firefox. The structure is similar to the content packages. For example, examining classic.jar: skin classic browser browser.css -- other browser skin files go here ...
...And 4 more matches
:-moz-system-metric() - Archive of obsolete content
content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. ...
...lly (e.g. to XUL / chrome code). See bug 1396066 for more details. ...
... Formal syntax Syntax not found in DB! ...
...And 4 more matches
Chrome registration
Note: With Gecko 1.9.2 and older, Mozilla reads chrome/*.manifest files from applications. ...
...f chrome packages on disk. This chrome registry is configurable and persistent, and thus a user can install different chrome providers, and select a preferred skin and locale. This is accomplished through xpinstall and the extension manager. In order to inform the chrome registry of the available chrome, a text manifest is used: this manifest is "chrome.manifest" in the root of an extension, or
theme, or XULRunner application. The plaintext chrome manifests are in a simple line-based format. Each line is parsed individually; if the line is parsable the chrome registry takes the action identified by that line, otherwise the chrome registry ignores that line (and prints a warning message in the runtime error console). locale packagename localename path/to/files skin packagename skinname path/...
...er, the matching locale and skin packages will also be exposed to content. n.b.: Because older versions of Firefox do not understand the contentaccessible flag, any extension designed to work with both Firefox 3 and older versions of Firefox will need to provide a fallback. For example: content packagename chrome/path/ content packagename chrome/path/ contentaccessible=yes os Extensions (or
themes) may offer different features depending on the operating system on which Firefox is running. The value is compared to the value of OS_TARGET for the platform. os=WINNT os=Darwin See OS_TARGET for a more complete list of os names. The os name is case insensitive. osversion An extension or
theme may need to operate differently depending on which version of an operating system is running. For...
...And 4 more matches
Multiple item extension packaging - Archive of obsolete content
equirements as an extension except as noted below. There is currently no feature to prevent or warn the user when installing an older version of an extension. Multiple Item Package File Layout The multiple item package file layout is a simplified form of an installable bundle and requires a file extension of xpi. A multiple item package may contain both extensions (e.g. xpi file extension) and
themes (e.g. jar file extension). The basic structure is shown below: /install.rdf Install Manifest /extension1.xpi Extension /extension2.xpi Extension /
theme1.jar
Theme /
theme2.jar
Theme ... The Extension Manager will read the install.rdf Install Manifest to determine if this is a Multiple...
...should be the lowest maxVersion from all of the installable bundles contained by the multiple item package for the em:targetApplication. If this is not done, any items that are not compatible will not be installed unless a compatibility check discovers updated compatibility information. ...
...ion. Installation Installation can be performed using any of the existing methods used for installing extensions /
themes. The same user interface is used for installing a multiple item package (i.e. the individual packages contained in the multiple item package will not be listed). This also allows displaying of signing information for the multiple item package. If a manager (e.g. extension /
theme manager) is used, the manager will display the individual items contained by the multiple item package after the download completes in the same manner that it would if the user had chosen to install multiple individual items simultaneously. The manager will not display the multiple item package in the list of items after the download has completed. Signing All extensions now require signing by ...
...And 3 more matches
Manifest Files - Archive of obsolete content
load them by typing in a chrome URL of the form chrome://tests/content/<filename>. Of course, you will need to restart the browser for the changes to take effect. If the file doesn't load, make sure that the file path is correct. The basic syntax of the lines in the manifest file for content packages is: 'content <packagename> <filepath>' The first field 'content' indicates a content package. For
themes, 'skin' is used while 'locale' is used for locales. The packagename in the example above is 'tests', which means that the first field in the chrome URL is 'tests' as in chrome://tests/content/sample.xul. If the package name was 'browser', the chrome URL would be chrome://browser/content/. The final field is the path where the files are located. This can be either a local file path using a file U...
...ilt-in versions instead. Otherwise, if an extension attempted to call the modified versions, it would likely not work properly, or worse, create a security hole. This flag was added to prevent this problem and should always be used for newer extensions, but is left out for older extensions that might not be compatible with the change. For more information about this feature, see XPCNativeWrapper.
Themes and Locales The
themes and locales, the syntax is similar as for content packages, but you also need to specify the content package you are providing a
theme or locale for. For example: skin browser classic/1.0 jar:classic.jar!/skin/classic/browser/ locale browser en-US jar:en-US.jar!/locale/browser/ For these, the extra field has been added to indicate that the skin and locale applies to the b...
...ed to specify the content package you are providing a
theme or locale for. For example: skin browser classic/1.0 jar:classic.jar!/skin/classic/browser/ locale browser en-US jar:en-US.jar!/locale/browser/ For these, the extra field has been added to indicate that the skin and locale applies to the browser. The skin name is 'classic/1.0'. In this case, a version number is being used as part of the
theme name, but that is optional if you are making your own
theme. Mozilla doesn't handle the version number in a special way; the version number is just part of the
theme name. The locale is 'en-US'. The chrome URLs that these would map to would be chrome://browser/skin and chrome://browser/locale. ...
...And 3 more matches
Index
ozilla.org (AMO), whether you choose to distribute your add-on through AMO or to do it yourself. 678 Make money from browser extensions Guide, Monetization, WebExtensions, distribution While users can download browser extensions for Firefox free of cost from addons.mozilla.org (AMO), this doesn't mean you can't make money from browser extensions, and to a more limited extent
themes. 679 Promoting your extension or
theme Add-ons, Extensions, Promotion,
Themes, WebExtensions, distribution So you've written a great extension, but only a few people have found and installed it from addons.mozilla.org--despite your efforts to create an appealing listing. So, how do you encourage more people to install your extension? This page looks at how. 680 Re...
...e build processes render extension code difficult to read. These processes include minifying your code, as well as the use of module bundlers or similar tools, such as webpack. In this case, when you upload your extension to AMO, you will need to provide your source code and instructions for building that source code, where build processes render your extension's code hard to read. ...
...n code difficult to read. These processes include minifying your code, as well as the use of module bundlers or similar tools, such as webpack. In this case, when you upload your extension to AMO, you will need to provide your source code and instructions for building that source code, where build processes render your extension's code hard to read. ...
...And 3 more matches
Extension Packaging - Archive of obsolete content
is launched. When using this method you must verify that the file system permissions for the directories, and files for the extension, are set properly. Otherwise, the Extension Manager may not function properly with the extension, or the extension itself may not work properly. Including add-ons in a customized application A customized application can include add-ons, including extensions and
themes, by placing the unpacked (that is, not the XPI files, but the packages' contents) in the <appdir>/distribution/extensions directory. This directory containing the add-on must be named the same as the ID of the add-on or
theme. Add-ons packaged in this way will not be visible to the user. Register an extension location using the Windows Registry External installers, such as the Java runtime, ma...
... visible to the user. Register an extension location using the Windows Registry External installers, such as the Java runtime, may wish to install application integration points as an extension, even if the application is not yet installed. This can be accomplished on Windows using the registry. Multi-item extension XPIs In some cases, a single XPI file may wish to install multiple extensions/
themes. A special kind of extension XPI, called the Multiple Item Package, explains how to create this kind of package. (Firefox 1.5/XULRunner 1.8 required.) From the release of Firefox 53, multiple item extension packages are no longer supported and will not load. As a consequence, these packages are no longer accepted by AMO. Official references for Toolkit API Structure of an Installable ...
... create this kind of package. (Firefox 1.5/XULRunner 1.8 required.) From the release of Firefox 53, multiple item extension packages are no longer supported and will not load. As a consequence, these packages are no longer accepted by AMO. ...
...And 2 more matches
Getting Started - Archive of obsolete content
ages, launch Mozilla and you should see them. Creating the Install Script Getting it ready for the installation Before we can package everything up for installation, we need to remove all references to Classic. Copy everything in \mozilla\chrome\classic\skin\classic to a directory called \mySkin. Skin Info When switching skins in Mozilla, it displays a preview image and some information about the
theme. This is what we're going to create now. Take a screenshot of Mozilla running your
theme and create an image that is 438x89 pixels in size. Place it in \mySkin and call it preview.png (If it's a jpg or gif call it preview.jpg or preview.gif). Make a copy of contents.rdf and place it in \mySkin and open it up in your text editor. This file is a small XML Database which is used to describe the skin...
...Then scroll down to the next section. ...
...Then scroll down to the next section. ...
...And 2 more matches
install.rdf - Archive of obsolete content
Copy the following text and paste it into a text file, then save that file as "install.rdf": <?xml version="1.0"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <em:id>{
Themes_UUID}</em:id> <em:version>
Themes_Version</em:version> <!-- Target Application this extension can install into, with minimum and maximum supported versions. ...
...n can install into, with minimum and maximum supported versions. ...
... with minimum and maximum supported versions. ...
...And 2 more matches
Content Scripts - Archive of obsolete content
listen for DOM events in a content script just as you can in a normal page script, but there are two important differences: First, if you define an event listener by passing it as a string into setAttribute(), then the listener is evaluated in the page's context, so it will not have access to any variables defined in the content script. For example, this content script will fail with the error "
theMessage is not defined": var
theMessage = "Hello from content script!"; anElement.setAttribute("onclick", "alert(
theMessage);"); Second, if you define an event listener by direct assignment to a global event handler like onclick, then the assignment might be overridden by the page. For example, here's an add-on that tries to add a click handler by assignment to window.onclick: var myScript = "win...
... to send messages from one side to the other, use port.
... to send messages from one side to the other, use port.emit() to receive messages sent from the other side, use port.on() Messages are as...
... to send messages from one side to the other, use port.emit() to receive messages sent from the other side, use port.on() Messages are asynchronous: that is, the sender does not wait for a reply from the recipient bu...
Install Manifests - Archive of obsolete content
<em:maxVersion>3.0.*</em:maxVersion> </Description> </em:targetApplication> Gecko 1.9 based applications allow you to use the special targetApplication id toolkit@mozilla.org to say that the add-on is compatible with any toolkit app with a toolkit version matching the minVersion and maxVersion. type An integer value representing the type of add-on. 2 Extensions 4
Themes 8 Locale 32 Multiple Item Package 64 Spell check dictionary 128 Telemetry Experiment 256 WebExtension Experiment Examples <em:type>2</em:type> This property was added for Firefox 1.5, and is only required for add-on types other than Extensions and
Themes. Firefox 2 and previous supported a value of 16 to represent plug-ins. In...
...he extension is selected in the Extensions list, the Options button is enabled and will show this. <em:optionsURL>chrome://myext/content/options.xul</em:optionsURL> Gecko 7 note In Firefox 7 you can also simply include your options XUL as a file named options.xul, in the base directory of the add-on. skinnable A true or false value property that tells the application whether the (complete)
theme can be skinned by lightweight
themes/personas: Examples <em:skinnable>true</em:skinnable> strictCompatibility A Boolean value indicating if the add-on should be enabled when the version of the application is greater than its max version. By default, the value of this property is false meaning that the compatibility checking will not be performed against the max version. <em:strictCompatibil...
...ny value matches the application's build parameters, it will be installed; if not, the user will get an appropriate error message. Examples <em:targetPlatform>WINNT_x86-msvc</em:targetPlatform> <em:targetPlatform>Linux</em:targetPlatform> <em:targetPlatform>Darwin_ppc-gcc3</em:targetPlatform> <em:targetPlatform>SunOS_sparc-sunc</em:targetPlatform> Usually, you would use only the OS part for
themes or for extensions that are not fully cross-platform. For extensions including binary (compiled) components, you should never use the OS alone, but include the ABI (s) that you compiled the components with. If you want to include multiple versions of the components, you should also use Platform-specific Subdirectories. Notes In the same manifest file, you could even mix values with and withou...
...e, the referenced chrome package file(s) must be placed in the chrome subdirectory of the XPI's top level. This object has a package property (with a path within the jar file or directory that leads to the location where the contents.rdf file responsible for registering that package is located), a locale property (ditto, but to register the locale) and a skin property (ditto, but to register the
theme material). In extensions for Firefox 1.5, this property is no longer necessary: the chrome.manifest at the top level of the XPI is used to locate chrome to register. If there is no chrome.manifest, this property is still read by the Add-on Manager and a chrome.manifest is generated from old-style contents.rdf. Examples <em:file> <Description about="urn:mozilla:extension:file:myext.jar"> ...
Index - Archive of obsolete content
1 label.value XUL Attributes, XUL Reference No summary! 172 last-tab XUL Attributes, XUL Reference No summary! 173 lastSelected XUL Attributes, XUL Reference No summary! 174 lastpage XUL Attributes, XUL Reference No summary! 175 left XUL Attributes, XUL Reference No summary! 176 lightweight
themes Lightweight
themes, XUL Attributes, XUL Reference No summary! 177 lightweight
themesfooter No summary! 178 linkedpanel XUL Attributes, XUL Reference No summary! 179 listcell.type XUL Attributes, XUL Reference No summary! 180 listitem.type XUL Attributes, XUL Reference No summary! 181 matchcas...
...ne component to add spell checking capabilities to your Firefox extension. 969 Using the Editor from XUL XUL The editor in XUL lives on top of a XUL <iframe> element; it observes document loading in this <iframe>, and, when document loading is complete, it instantiates an editor on the loaded document. The <iframe> contents are then editable. 970 Using the standard
theme Add-ons, Extensions,
Themes No summary! 971 Widget Cheatsheet See the Periodic Table of XUL for more examples. 972 Window icons Add-ons, Extensions, Toolkit API, XPInstall, XUL Starting with Firefox 1.5, Thunderbird 1.5, and XULRunner 1.8, you can specify an icon for a XUL window by putting files named mywindow.ico (for Windows) and mywindow.xp...
... Not in Firefox 1197 toolbaritem NeedsHelp, XUL Elements, XUL Reference Firefox only 1198 toolbarpalette NeedsHelp, XUL Elements, XUL Reference Firefox only 1199 toolbarseparator NeedsHelp, XUL Elements, XUL Reference Creates a separator between groups of toolbar items. It is functionally equivalent to a normal separator but some
themes may apply a different appearance. 1200 toolbarset NeedsExample, XUL Elements, XUL Reference Firefox only 1201 toolbarspacer XUL Elements, XUL Reference Firefox only 1202 toolbarspring XUL Elements, XUL Reference Firefox only 1203 toolbox Toolbars, XUL Elements, XUL Reference A container for toolbars. It is a type...
...eral pages. This element provides the header and buttons along the bottom, and also handles navigation between the pages. Each page should be constructed using a wizardpage. The pages are displayed in the order that they are placed in the wizard, unless you use the next and pageid attributes on the pages to change the sequence. The wizard will rendered in a manner suitable for the user's selected
theme and platform. In newer versions of Mozilla, a statusbar may be placed directly inside the wizard element which will be shared among all pages. 1218 wizardpage XUL Elements, XUL Reference This element defines a page in a wizard. The content in the pages should be placed inside the wizardpage element. ...
XUL accessibility guidelines - Archive of obsolete content
ould hear "cookies {pause} exceptions {pause} button." The next tab would read "cookies {pause} keep until {pause} they expire {pause} one of three {pause} combobox." If the screen reader only read the label, then the user would have to guess what the "exceptions" button or the "keep until" combobox was referring to. Groupboxes are essential for radiogroups or groups of checkboxes with a similar
theme (e.g. check all that apply). If you find nested groupboxes visually unappealing, use CSS to hide the border of the inner groupbox so that it can remain in the code to benefit users of assistive technologies. Complex forms sometimes require a more advanced labeling system than is possible with the standard XUL attributes. For example, the first item in the privacy panel in the Firefox option dial...
...on is essential, documents should also be structured so that the user can invoke display preferences that may be necessary for accessibility. Presentation should also be flexible to window and font resizing. Cooperative applications adapt well to the user's environment. System defaults Maintain system defaults. Many users set their computers to use larger than normal fonts and/or specific color
themes. By default, XUL menus, labels, and other widgets get their font, size, and color settings from the user settings specified in the operating system. Respect these defaults unless you have a specific and unavoidable reason to change them. If you must change them, use CSS to size elements relative to the default sizes (for example, use % or em rather than specific point or pixel sizes). Color Co...
...control. On the web, visual design is often contained to a specific size. With XUL you can allow elements to flex with the resizing of the application window. Use the flex attribute to provide this functionality. Testing display Verify that your application is functional and pleasant looking using user-defined font and color settings. Do this by changing system display settings to an accessible
theme (such as the high-contrast
theme on windows, available via Left-alt + Left-shift + Printscreen). Confirm that text is emphasized correctly and that color is not used as a sole means to convey meaning. Ensure that when windows are resized, the application adjusts gracefully. Human computer interaction As you use an application you expect a certain amount of control and feedback. Provide users wi...
...ary then warn the user before it is displayed. Testing media Ensure that media alternatives are available in an accessible format. Other issues Custom widgets Avoid re-creating functionality that already exists. Ensure that custom components are built with accessibility in mind. Use CSS system colors to ensure that new widgets interact well with other widgets and with user-defined colors and
themes. Learn More Accessible Custom Widgets Accessible DHTML Building accessible custom components in XUL XUL accessibility checklist Use the following checklist to quickly verify the accessibility of a new XUL application, or as a starting point for fixing accessibility problems in an existing one. Keyboard access Checkpoint Pass Fail Tab...
tab - Archive of obsolete content
pe: character This should be set to a character that is used as a shortcut key. This should be one of the characters that appears in the label attribute for the element. afterselected Type: boolean This is set to true if the tab is immediately after the currently selected tab. This is automatically set when needed and you shouldn't adjust it manually. This is primarily useful for
themes so that they can adjust the appearance of the area around the selected tab. beforeselected Type: boolean This is set to true if the tab is immediately before the currently selected tab. This is set automatically set when needed and you shouldn't adjust it manually. This is primarily useful for
themes so that they can adjust the appearance of the area around the selected tab. ...
...ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
...referred to use of the attribute, as it may need to update additional state. fadein Type: boolean This attribute is set to true if the tab is fading in or out. This typically means that the tab is in the process of appearing or disappearing. first-tab Type: boolean This attribute will be set to true for the first tab. This attribute should not be set manually, but is useful in a
theme if the first tab should be styled differently. image Type: URI The URI of the image to appear on the element. If this attribute is empty or left out, no image appears. The position of the image is determined by the dir and orient attributes. label Type: string The label that will appear on the element. If this is left out, no text appears. For an editable menuitem element t...
... label Type: string The label that will appear on the element. If this is left out, no text appears. For an editable menuitem element the value of this attribute is copied to the menulist.value property upon user selection of the menuitem. last-tab Type: boolean This attribute will be set to true for the last tab. This attribute should not be set manually, but is useful in a
theme if the last tab should be styled differently. linkedpanel Type: id The id of the linked tabpanel element that will be displayed when the tab is selected. If this attribute is not used, the tab will be connected to the panel at the corresponding index in the tabpanels element that the tab is in its tabs container. However, if this attribute is used, this behavior is overridden, and the ta...
Accessible Toolkit Checklist
Please contact the Mozilla Accessibility Community with questions or feedback. The Work When implementing a new toolkit it's important to: Implement standard keyboard behavior, which can vary from platform to platform. Expose your UI - a way for assistive technologies such as screen readers, screen magnifiers and voice dictation software to understand your software. Provide
theme compatibility with the operating system, at least as an option. Some low vision users will be running your software with high contrast or large font
themes. Go beyond section 508. Implement true usability for everyone, and make your toolkit follow the guidelines for each platform. The Approaches There are two basic kinds of toolkits, which each provide different challenges when implementing accessibil...
...lementing accessibility: Native widget toolkits , like Eclipse and wxWidgets, already have some accessibility built-in. These toolkits wrap the widgets implemented by the OS with a consistent API for each platform. Since the individual widgets predominately come from the operating system, they already implement standard keyboard commands and follow the operating system's visual
theme. Also, assistive technologies already understand native widgets so it is only necessary to implement Microsoft Active Accessibility (MSAA) API support for custom controls. However, be aware that the wrapping layer will introduce accessibility bugs, and thus you will need to test extensively and fill in the holes. You will also need to provide a way for custom and owner drawn controls to easily ac...
...tom and owner drawn controls -- there always are. For example, lists of checkboxes are implemented in Windows with images of checked and unchecked checkboxes. Owner drawn toolkits , like XUL and Flash's Flex UI framework use few or no native widgets. These toolkits need to have accessibility implemented from the ground up, and get nothing for free in terms of keyboard, API or OS-
theme support. In this case, adding a complete or even a partial accessibility solution is major work, and will require more than one full time person as well as cooperation from Windows assistive technology vendors when parts of your MSAA solution isn't working. Often these kinds of toolkits don't use a separate window for each control; in that case remember to generate a unique 32 bit child ID for ea...
... letter Events - making keystrokes do the right thing MSAA support, via IAccessible's get_accKeyboardShortcut Support for MS Windows settings When high contrast checkbox is set (in accessibility control panel, SPI_GETHIGHCONTRAST), or when user selects a "Native" skin option in your software, then get all look and feel from current OS skin. ...
source-editor.jsm
ing its init() method. Constant Value Description SourceEditor.MODES.CSS "css" Cascading Style Sheet. SourceEditor.MODES.HTML "html" HTML document. SourceEditor.MODES.JAVASCRIPT "js" JavaScript source code. SourceEditor.MODES.TEXT "text" UTF-8 text document. SourceEditor.MODES.XML "xml" XML document.
Theme constants These constants are used to identify the available
themes that can be used by the syntax highlighter. Only one is provided by default at this time. Constant Value Description SourceEditor.
THEMES.MOZILLA "mozilla" The default Mozilla syntax highlighter
theme. Configuration defaults constants These constants represent the default values for each of ...
... Constant Value Description SourceEditor.EVENTS.BLUR "Blur" Fired when the editor loses focus. SourceEditor.EVENTS.BREAKPOINT_CHANGE "BreakpointChange" Fired when a...
... Constant Value Description SourceEditor.EVENTS.BLUR "Blur" Fired when the editor loses focus. SourceEditor.EVENTS.BREAKPOINT_CHANGE "BreakpointChange" Fired when a new breakpoint is add...
...OverviewRuler Boolean A Boolean value indicating whether or not to show the overview gutter/ruler. This presents an overview of the current annotations in the editor, such as the breakpoints. tabSize Number A number indicating how many spaces each tab character should occupy. This default can be overridden by the user preference named by SourceEditor.PREFS.TAB_SIZE.
theme String A string indicating the default syntax highlighting
theme to use; you may use one of the predefined values listed in
Theme constants, or you may provide your own CSS file reference. undoLimit Number A number indicating how many steps the undo stack should hold. See Configuration defaults constants for a list of the default values for these configuration options.
Toolkit API
The Mozilla Toolkit is a set of programming interfaces (APIs) built on top of Gecko which provide advanced services to XUL applications. ...
...interfaces (APIs) built on top of Gecko which provide advanced services to XUL applications. ...
... Profile management Chrome registration Browsing history Extension and
theme management Application update service Safe mode Printing Official references Structure of an Installable Bundle: describes the common structure of installable bundles, including extensions,
themes, and XULRunner applications Extension Packaging: specific information about how to package extensions
Theme Packaging: specific information about how to package
themes Multiple-item Extension Packaging: specific information about multiple-item extension XPIs XUL Application Packaging: specific information about how to package XULRunner applications Chrome Registration Printing in XUL Apps See also The following developer pages contain examples and discussions of particular topics: ...
...Multiple-item Extension Packaging: specific information about multiple-item extension XPIs XUL Application Packaging: specific information about how to package XULRunner applications Chrome Registration Printing in XUL Apps See also The following developer pages contain examples and discussions of particular topics: XUL XUL overlays Developing extensions XULRunner Developing
themes DOM RDF Storage ...
Extension Theming Guidelines - Archive of obsolete content
This is a set of guidelines on how to control the look and feel of your extension while leaving it open for styling by custom
themes. Skin Packages Just as extension code should exist in chrome content packages, all of the styling for an extension including CSS and images should exist in a chrome skin package. Custom
themes may then register a replacement for your skin package allowing them to provide their own styles for all of your content. ...
...l of the styling for an extension including CSS and images should exist in a chrome skin package. Custom
themes may then register a replacement for your skin package allowing them to provide their own styles for all of your content. Branding Certain items of your extensions style, in particular logos and icons can be kept in the chrome content package such that they are not replaceable by custom
themes Stylesheets guidelines Include Stylesheets For every new window that your extension adds and for every window that your extension overlays content into be sure to add a stylesheet from your chrome skin package. While it may be tempting to use the same stylesheet in multiple places try to avoid this so that
themes can correctly target the right windows. CSS Selectors When writing stylesheet rul...
...g custom widgets. In this case you should add a stylesheet to your chrome content package and apply the bindings there. This is one of the rare cases where it is sensible to put the stylesheet into the content area. Style attributes Style attributes should only be used in rare circumstances. They are impossible to override from styleheets so anything you put in there cannot be adjusted by custom
themes. ...
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
t can be translated. To make an extension's GUI support multiple languages, you can include multiple locale packages, one for each language. The skin package This is used to include source files used as visual elements in the GUI, including style sheets and images. Most extensions include only one skin package, but you can include multiple skin packages to allow the GUI to change with different
themes. Chrome URL Use a file called a "chrome manifest" to register chrome packages with Firefox and start using them. To register a package, you use a special URI scheme called a "Chrome URL" to represent the path to the file. Chrome URLs are structured as: chrome://%package name%/%package type%/%relative path to source file% For example, the Chrome URL for the Firefox browser window is as follow...
...on that will open the clock window (Figure 9). FIXME: Figure 9: Toolbar after Phase 4 Directory structure The style sheet and graphics files will be located inside the chrome's skin package. The extension will actually work fine even if these are located in the content package, but putting them in the skin package has the benefit of making it possible to design GUIs that match specific Firefox
themes, and allowing
theme developers to create special visual effects for extensions. First, add the skin directory and its subordinate files to your helloworld directory as shown in Figure 10. The purpose of each of these files is explained in Table 4. Download the files icon.png and icon-small.png from the resources website and place them appropriately. FIXME: Figure 10: Directory structure with s...
...d/skin/overlay.css style chrome://global/content/customizeToolbar.xul chrome://helloworld/skin/overlay.css Register skin package (skin instruction) Line 1 beginning skin is used to register the skin package; helloworld is the package name; skin/classic/ is the relative path to the folder containing the source files; classic/1.0 indicates that this skin package is meant for the Firefox standard
theme. Cross-package overlays with style sheets (style instruction) In Phase 1, we used the overlay instruction to invoke a cross-package overlay with XUL; to do this with a style sheet, we use the style instruction. Lines 2-3 create overlays on the browser window and the "customize toolbar" window. Add the toolbar button To add the toolbar button to the browser window, update overlay.xul as shown ...
XUL user interfaces - Archive of obsolete content
Open the document in your Mozilla browser and use the interface. This wiki does not support XUL and JavaScript in pages, so it is not possible to show the demonstration here. It looks something like this: XUL demonstration Day of week calculator ...
...("label", "") } else if (aDate === false || isNaN(aDate.getTime())) { status.setAttribute("warning", "true") status.setAttribute("label", "Date is not valid") } else { status.removeAttribute("warning") status.setAttribute("label", aDate.toLocaleDateString()) } } To see the result exactly as intended, use the default
theme in your browser. If you use a different
theme, it changes some user-interface styles and the demonstration might look strange. Open the document in your Mozilla browser and use the interface. This wiki does not support XUL and JavaScript in pages, so it is not possible to show the demonstration here. It looks something like this: XUL demonstration Day of week calculator Date: 6/27/...
...dsay Friday Saturday Clear Today June 27, 2005 Notes about this demonstration: The XUL document links the stylesheet as usual, and it also links the script. The script is not important in this demonstration. Much of the style that you see is determined by your browser's
theme. Examine the document's stylesheet to ensure that you understand all the rules there. If there is a rule that you do not understand, comment it out and refresh your browser to see the effect on the document. Challenge Use the DOM Inspector tool to examine the Date textbox. It is made up of other elements that are generated by its XBL binding. Discover the class of its html:input...
Index of archived content - Archive of obsolete content
n Samples Extension Theming Guidelines Extension Versioning, Update and Compatibility Extensions support in SeaMonkey 2 Firefox addons developer guide Hiding browser chrome Hotfix Extension How to convert an overlay extension to restartless Inline options Install Manifests Installing Extensions and
Themes From Web Pages Interaction between privileged and non-privileged pages Jetpack Processes Legacy Add-ons Legacy extensions for Firefox for Android API Accounts.jsm BrowserApp addTab closeTab ...
... X XEmbed Extension for Mozilla Plugins SAX Security Digital Signatures Encryption and Decryption Introduction to Public-Key Cryptography Introduction to SSL NSPR Release Engineering Guide SSL and TLS Solaris 10 Build Prerequisites Sunbird
Theme Tutorial Table Reflow Internals Tamarin Tracing Build Documentation The Basics of Web Services
Themes Building a
Theme Common Firefox
theme issues and solutions Creating a Skin for Firefox UUID contents.rdf install.rdf Makin...
... Table Reflow Internals Tamarin Tracing Build Documentation The Basics of Web Services
Themes Building a
Theme Common Firefox
theme issues and solutions Creating a Skin for Firefox UUID contents.rdf install.rdf Making sure your
theme works with RTL locales
Theme changes in Firefox 2
Theme changes in Firefox 3
Theme changes in Firefox 3.5
Theme changes in Firefox 4 Updating an extension to support multiple Mozilla applications Using Firebug and jQuery (Screencast) Using IO Timeout And Interrupt On NT Using SSH to connect to CVS ...
Source code directories overview - Archive of obsolete content
atabases, the Internet or any other source using a URL-like syntax. security contains the security modules including NSS and PSM. storage contains an implementation of sqLite3. suite will contain files specific to the Mozilla suite. sun-java contains C code so Mozilla can communicate with the Sun JVM (Java Virtual Machine). It does not include the code for the virtual machine itself, though.
themes contains the default
themes for Mozilla, modern and classic. toolkit contains the code for the toolkit used for Firefox, Thunderbird and other standalone applications. This will be covered below. tools contains C code for the Linux-only Leaky tool. Leaky can help detect memory leaks and XPCOM reference counting problems. uriloader contains C interfaces and code for invoking the correct viewer...
...e to build the firefox executable. base contains the XUL and branding code. components contains Firefox specific components like history, bookmarks, preferences, migration, sidebar.. configcontains build scripts for Firefox. extensions contains code for making certain extensions work. installer contains the Firefox installer code. locales contains the files that are translated for Firefox.
themes contains Firefox
themes. Toolkit Toolkit is used by the standalone products. components contains the alerts, autocomplete, command line interface, console, cookies, download manager, filepicker, history, password manager, typeaheadfind, view source, etc. content contains XUL specific to the toolkit. library contains libXUL work. localescontains files that are translated. mozappscontain...
...ains the alerts, autocomplete, command line interface, console, cookies, download manager, filepicker, history, password manager, typeaheadfind, view source, etc. content contains XUL specific to the toolkit. library contains libXUL work. localescontains files that are translated. mozappscontains shared application stuff. obsoletecontains obsolete stuff. profilecontains the profile manager
themescontains
themes as they relate to toolkit things. xreis the XUL runtime engine. This directory contains the code for initializing the toolkit. Original Document Information Author(s): Daniel Howard Other Contributors: Heikki Toivonen (11-Nov-1999), HervA(C) Renault (for the French translation) (16-Nov-1999) Last Updated Date: Michael Kaply 2-June-2005 Copyright Information: Portions ...
New Skin Notes - Archive of obsolete content
nd-users. --Nickolay 04:43, 25 Aug 2005 (PDT) The skin won't be that different -- it will just have the editor tools moved around. The main content layout will not change. --dria The color of the internal and extenrnal links is now the same, is that intentional? --Nickolay I didn't ever notice that they were different, honestly. I'll take a look. --dria Ok, the difference on the cavendish
theme is negligible (to the point where I never noticed). Direct external links have icons to differentiate them from internal links, so I think we'll just leave the internal/external links colours the same. ==dria You've got to be kidding me, the colors are clearly different (rgb(0,51,153) vs rgb(51,102,187)). --Nickolay 09:19, 25 Aug 2005 (PDT) (moving this to a new item) On the contrary, the l...
...gin page, logged in and then from there went to the /test/ pages and it's like the old look (with menu bar at the left), where indeed, the logout link is as it should be on the left in personal tools. --mmondor 12:49, 26 Aug 2005 (PDT) The logout link is exactly where the login link is. This makes sense as-is. Not changing. --dria The menu column seems larger than before in the current test
theme, so as to cause some reference pages to look ugly when browser set in 800x* resolution, using the default FireFox 1.0.6 fonts settings on XFree86. A few examples: , .These work fine with the old
theme, and I expect that this affects a lot of reference articles. That our screen resolutions are now wider than 800 pixels width does not mean that we always want to enlarge the window that large and as...
...e. And no, break in that sense does not mean "font is too big" it means, still useable for the target audience. --Callek 12:02, 26 Aug 2005 (PDT) The font size isn't the problem, and we indeed shouldn't change it. The menu bar at the right, however, is too large in the new system, but is fine on the current (non-test) system. --mmondor 12:25, 26 Aug 2005 (PDT) Hmm, note that when logged-in, the
theme is all fine like the old one, it's when a user doesn't login and reads the docs through the test site that the menu bar then is at the right and is slightly too large... --mmondor 12:52, 26 Aug 2005 (PDT) will revisit sidebar width later. --dria I see that it was activated as default for non-logged in people already, it appears that there is no intention whatsoever to fix this at current tim...
Supporting private browsing mode - Archive of obsolete content
not in private browsing mode. Note: Private browsing mode may only be detected by chrome code, such as extensions; web content cannot detect whether or not private browsing is in effect. Detecting whether private browsing mode is permanent Requires Gecko 2.0(Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Firefox 4 added support for having private browsing mode permanently enabled. The
theme looks different in this scenario. To determine whether or not the browser is permanently in private browsing mode, you can look at the privatebrowsingmode attribute on the document root. Its value is "permanent" if private browsing is permanently enabled for the session, "temporary" if private browsing is temporarily enabled, or not defined at all if private browsing mode isn't active. let docRoo...
...ishing of that information inside the private browsing mode by default. It provides a means of disabling this behavior for users who do not want the extension to stop publishing the information in private browsing mode. Note: It is not acceptable for an extension that records things like URLs or domains visited to even offer the option to opt out of private browsing mode. Private browsing for
theme designers If you want to make your
theme look different when used in private browsing mode, you can do so quite easily by using the browsingmode attribute in the window element in browser.xul. This attribute has the value "normal" when the user isn't in private browsing mode, and is "private" when in private browsing mode. For example, if you want to use a different background color for the URL ...
... element in browser.xul. This attribute has the value "normal" when the user isn't in private browsing mode, and is "private" when in private browsing mode. ...
Learn XPI Installer Scripting by Example - Archive of obsolete content
In particular plugin developers should see how to package a plugin as an extension. This article uses the installer script from browser.xpi install package as the basis for discussing XPI installations in general. ...
...provide programmatic access to the Windows user profile and the Windows registry, respectively. The browser.xpi install script does not demonstrate the use of these objects, but see the XPInstall API Reference for more information about registering software with the win32 operating systems and other operating systems. To register new Netscape 6-based software (e.g., plug-ins, new components, new
themes, new packages) with the chrome registry, you must use the registerChrome function of the Install object. If successful, this function returns a "0" and makes entries into theinstalled-chrome.txt file in the chrome subdirectory, which is then used to regenerate the various RDF files that make up the chrome registry. var cf = getFolder("Chrome"); registerChrome(CONTENT | DELAYED_CHROME, getFold...
...on. In this most common form of the registerChrome function (it can also be used to support the now-deprecatedmanifest.rdf style of installation archive), the three parameters represent, in order, the chrome SWITCH used to indicate what kind of software is being registered, the target destination of the software (e.g., the "Chrome" folder in the example above), and the path within the XPI (or JAR
theme archive) where the contents.rdf file is located. See registerChrome in the XPInstall API Reference for more information about registering new packages with the chrome registry. Executing the Installation Once you have added all the files to the installation, the final step is to actually execute the installation. Note that until this point, the install calls you have been making on the Install...
Printing from a XUL App - Archive of obsolete content
This document will talk about PrintUtils, and the ways that XUL applications can trigger print-related behaviors. ...
... This document will talk about PrintUtils, and the ways that XUL applications can trigger print-related behaviors. ...
...t will talk about PrintUtils, and the ways that XUL applications can trigger print-related behaviors. ...
SeaMonkey - making custom toolbar (SM ver. 1.x) - Archive of obsolete content
Explanation: This CSS stylesheet specifies how the button is diaplayed. It links to the button image, specifying the dimensions of the six parts of the image. 8. Create a plain text file named button.js. Copy the following content, and pas...
... Explanation: This CSS stylesheet specifies how the button is diaplayed. ...
...the button image. Get a context menu for the image that you see here (for example, by right-clicking it). Choose Save Image As... from the context menu, and save it in the same custombutton directory as the files you have just created. Ensure that the name of the saved file is: button-1s.png Explanation: The image is in nine parts. The six parts at the left are for SeaMonkey's modern
theme, and the three parts at the right are for its classic
theme. Lighter images are used when the mouse pointer is over the button. Darker images are used when the button is pressed. Testing your new button Restart SeaMonkey. Click the button to test it. You should see the pop-up message. Further development This section describes how you can develop your button further. Uninstalling the button If y...
listitem - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
...ble to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: menupopup > menuitem, menupopup > menu { max-width: none; } current Type: boolean This attribute will be set to true if the listitem is the current item. This is typically used by a
theme to customize the focus ring. To change the currently selected item in a listbox, use the listbox property selectedItem. disabled Type: boolean Indicates whether the element is disabled or not. If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, an...
...eAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Style classes The following classes may be used to style the element. These classes should be used instead of changing the style of the element directly since they will fit more naturally with the user's selected
theme. listitem-iconic Use this class to have an image appear on the listitem. Specify the image using the image attribute. Related Elements listbox, listcell, listcol, listcols, listhead, listheader Interfaces nsIAccessibleProvider, nsIDOMXULSelectControlItemElement ...
window - Archive of obsolete content
hy when opened as a dialog. Note: Starting in Gecko 1.9.2, you can detect when a window is activated or deactivated by watching for the "activate" and "deactivate" events. See Window activation events. More information is available in the XUL tutorial. ...
... dialog. Note: Starting in Gecko 1.9.2, you can detect when a window is activated or deactivated by watching for the "activate" and "deactivate" events. See Window activation events. More information is available in the XUL tutorial. ...
... identify the element with. You can use this as a parameter to getElementById() and other DOM functions and to reference the element in style sheets. inactivetitlebarcolor Type: color string Specify background color of the window's titlebar when it is inactive (background). Moreover this hides separator between titlebar and window contents. This affects only on Mac OS X. lightweight
themes Type: boolean true if the window supports lightweight
themes, otherwise false. lightweight
themesfooter Type: id Specifies the ID of an element to which a lightweight
theme's footer image will be applied. screenX Type: integer The horizontal position at which the window appears on the screen. screenY Type: integer The vertical position at which the window appears on the scre...
:host-context() - CSS: Cascading Style Sheets
the outer DOM or classes/attributes applied to ancestor elements. One typical use of this is with a descendant selector expression -- for example h1 -- to select only instances of the custom element that are inside an <h1>. ...
...pplying a different text color when a .dark-
theme class is applied to <body>. Note: This has no effect when used outside a shadow DOM. ...
...s no effect when used outside a shadow DOM. ...
-ms-high-contrast - CSS: Cascading Style Sheets
The -ms-high-contrast CSS media feature is a Microsoft extension that describes whether the application is being displayed in high contrast mode, and with what color variation. High Contrast Mode is a specialized display mode that prioritizes making content as legible as possible by dynamically replacing foreground and background colors with a user-specified
theme. For web content,
theme colors are mapped to content types. This media feature applies to bitmap media types. It does not accept min/max prefixes. Syntax The -ms-high-contrast media feature is specified as one of the following values. Values none ... No longer supported as of Microsoft Edge 18. active Indicates that the subsequent styling rules will be applied when the system is placed in high contrast mode ...
...on-black color variation, respectively. @media screen and (-ms-high-contrast: active) { /* All high contrast styling rules */ } @media screen and (-ms-high-contrast: black-on-white) { div { background-image: url('image-bw.png'); } } @media screen and (-ms-high-contrast: white-on-black) { div { background-image: url('image-wb.png'); } } Accessibility concerns Theming High Contrast Mode's
theme colors come from a limited subset of deprecated CSS2 system colors. The available color keywords are: windowText: controls the color of text content. highlightText: controls the color of selected text. highlight: controls the background color of selected text. buttonFace: controls the color of a <button> element's text. window: controls the color of the background. The <a> element control...
...S2 system colors. The available color keywords are: windowText: controls the color of text content. highlightText: controls the color of selected text. highlight: controls the background color of selected text. buttonFace: controls the color of a <button> element's text. window: controls the color of the background. The <a> element controls the color of links. Because High Contrast Mode
themes are dynamic, use these color keywords in place of other CSS color values. This will ensure that content will always be able to be perceived. Content If at all possible, prefer updating HTML markup over modifying content using CSS2 system color keywords. This helps keep the content more predictable. Specifications Not part of any standard. Remarks As of Microsoft Edge 18, -ms-high-contrast:...
prefers-color-scheme - CSS: Cascading Style Sheets
(Any other value causes Firefox to return light.) The prefers-color-scheme CSS media feature is used to detect if the user has requested the system use a light or dark color
theme. ...
...eme preference is overridden to light. Alternately, users can create the numeric preference ui.systemUsesDark
Theme to override the default behavior and return light (value: 0), dark (value: 1), or no-preference (value: 2). (Any other value causes Firefox to return light.) The prefers-color-scheme CSS media feature is used to detect if the user has requested the system use a light or dark color
theme. ...
...to override the default behavior and return light (value: 0), dark (value: 1), or no-preference (value: 2). (Any other value causes Firefox to return light.) The prefers-color-scheme CSS media feature is used to detect if the user has requested the system use a light or dark color
theme. Syntax light Indicates that user has notified the system that they prefer an interface that has a light
theme, or has not expressed an active preference. dark Indicates that user has notified the system that they prefer an interface that has a dark
theme. Examples The elements below have an initial color
theme. They can be further
themed according to the user's color scheme preference. HTML <div class="day">Day (initial)</div> <div class="day light-scheme">Day (changes in light scheme)</div> <div ...
Mozilla CSS extensions - CSS: Cascading Style Sheets
ce-broken-image-icon -moz-image-region O -moz-orient -moz-osx-font-smoothing -moz-outline-radius -moz-outline-radius-bottomleft -moz-outline-radius-bottomright -moz-outline-radius-topleft -moz-outline-radius-topright overflow-clip-box overflow-clip-box-block overflow-clip-box-inline S-Z -moz-stack-sizing :-moz-system-metric(images-in-menus) :-moz-system-metric(mac-graphite-
theme) :-moz-system-metric(scrollbar-end-backward) :-moz-system-metric(scrollbar-end-forward) :-moz-system-metric(scrollbar-start-backward) :-moz-system-metric(scrollbar-start-forward) :-moz-system-metric(scrollbar-thumb-proportional) :-moz-system-metric(touch-enabled) :-moz-system-metric(windows-default-
theme) -moz-user-focus -moz-user-input -moz-user-modify -moz-window-drag...
...tch ::-moz-cell-content :-moz-drag-over F - I :-moz-first-node ::-moz-focus-inner ::-moz-focus-outer :-moz-focusring :-moz-full-screen :-moz-full-screen-ancestor :-moz-handler-blocked :-moz-handler-crashed :-moz-handler-disabled ::-moz-inline-table L :-moz-last-node :-moz-list-bullet :-moz-list-number :-moz-loading :-moz-locale-dir(ltr) :-moz-locale-dir(rtl) :-moz-lw
theme :-moz-lw
theme-brighttext :-moz-lw
theme-darktext N - R :-moz-native-anonymous :-moz-only-whitespace ::-moz-page ::-moz-page-sequence ::-moz-pagebreak ::-moz-pagecontent :-moz-placeholderObsolete since Gecko 51 ::-moz-placeholderDeprecated since Gecko 51 ::-moz-progress-bar ::-moz-range-progress ::-moz-range-thumb ::-moz-range-track :-moz-read-only :-moz-read-write S ::...
...back :-moz-tree-image :-moz-tree-indentation :-moz-tree-line :-moz-tree-progressmeter :-moz-tree-row :-moz-tree-row(hover) :-moz-tree-separator :-moz-tree-twisty U - X :-moz-ui-invalid :-moz-ui-valid :-moz-user-disabled ::-moz-viewport ::-moz-viewport-scroll :-moz-window-inactive ::-moz-xul-anonymous-block At-rules @-moz-document Media features -moz-mac-graphite-
theme -moz-maemo-classic -moz-device-pixel-ratio -moz-os-version -moz-scrollbar-end-backward -moz-scrollbar-end-forward -moz-scrollbar-start-backward -moz-scrollbar-start-forward -moz-scrollbar-thumb-proportional -moz-touch-enabled -moz-windows-accent-color-in-titlebar -moz-windows-classic -moz-windows-compositor -moz-windows-default-
theme -moz-windows-glass -moz-windows-
theme Other ...
How to make PWAs installable - Progressive web apps (PWAs)
App that lists games submitted to the A-Frame category in the js13kGames 2017 competition.", "icons": [ { "src": "icons/icon-32.png", "sizes": "32x32", "type": "image/png" }, // ... { "src": "icons/icon-512.png", "sizes": "512x512", "type": "image/png" } ], "start_url": "/pwa-examples/js13kpwa/index.html", "display": "fullscreen", "
theme_color": "#B12A34", "background_color": "#B12A34" } Most of the fields are self-explanatory, but to be certain we're on the same page: name: The full name of your web app. short_name: Short name to be shown on the home screen. description: A sentence or two explaining what your app does. icons: A bunch of icon information -- source URLs, sizes, and types. Be sure to include at least a fe...
...me screen. description: A sentence or two explaining what your app does. icons: A bunch of icon information -- source URLs, sizes, and types. Be sure to include at least a few, so that one that fits best will be chosen for the user's device. start_url: The index document to launch when starting the app. display: How the app is displayed; can be fullscreen, standalone, minimal-ui, or browser.
theme_color: A primary color for the UI, used by operating system. background_color: A color used as the app's default background, used during install and on the splash screen. A minimal web manifest must have at least a name and an icons field with at least one icon defined; that icon must have at least the src, sizes, and type sub-fields as well. Beyond that, everything is optional, though the des...
...adged with a small icon that indicates that it's a web app. In the screen shot above, for example, the app has a tiny Firefox icon, indicating that it's a web app that uses the Firefox runtime. Splash screen In some browsers, a splash screen is also generated from the information in the manifest, which is shown when the PWA is launched and while it's being loaded started up. The icon and the
theme and background colors are used to create this screen. Summary In this article, we learned about how we can make PWAs installable with a properly-configured web manifest, and how the user can then install the PWA with the "add to home screen" feature of their browser. For more information on a2hs, be sure to read our Add to Home screen guide. Browser support is currently limited to Firefox for ...
Developing add-ons - Archive of obsolete content
This page will help guide you to the information you need in order to create add-ons for Firefox, Thunderbird, or other software based on the Mozilla platform, as well as how to distribute your add-ons. Add-ons topics Submitting an add-on to AMO Provides helpful information for add-on developers to help them properly package and deliver their add-ons. This includes information about addons.mozilla.org, Mozilla's add-on distribution web site. ...
...nything from a toolbar button to a completely new feature. Plugins Information about how to create plugins, which are binary components that let Mozilla based software display content they can't handle natively. Jetpack Browser extension development for everyone. Jetpack developers only need to know the tools of the modern web: HTML, CSS, and JavaScript.
Themes
Themes let users customize the appearance of the user interface presented by Mozilla-based applications. Search engine plugins Firefox supports search engine plugins, which enable the search box to support different search engines. addons.mozilla.org (AMO) API Developers' Guide The AMO Developers' Guide describes how to use the AMO API to fetch information about add-ons ...
Extension Etiquette - Archive of obsolete content
lsSeparator"). Sub-menus should be used for single extensions needing multiple menu items, and a Tools menu item should not be created for options and preferences (for options and preferences, see the add-on manager). If possible, create a menu item in the menu where it is most applicable; for instance, a bookmark sharing extension should be called from the Bookmarks menu. To maintain the default
theme, avoid the use of an icon next to the menu items. Other UI elements In general, toolbar items are very useful to end users because they can be removed or added to various toolbars as necessary. Status bar items should only be added for extensions that need constant monitoring, such as ad blocking, page ranking, or cookie management. Likewise, use context menu items sparingly -- only for tasks t...
...x is usually unnecessary. You can decrease download size by omitting a customized About box. Make one only if you have a special feature that needs to be included -- for example, a custom updater. Theming If you have XUL buttons in your extension that do functions similar to ones that already exist in a browser -- for example, a feed reader that reloads and stops -- use icons from the browser's
theme. The icons makes the extension lighter, while providing more consistency, especially for users using different
themes. Extension icons Unique icons are usually worth their download weight. They allow for easy identification among other extensions in the Extensions manager. Coding practices Namespace conflicts There are many namespaces which extensions often must share with other consumers, b...
Chapter 1: Introduction to Extensions - Archive of obsolete content
excellent extensions come from all over the world, and can be quickly localized by anyone interested. This lowers the threshold both to using and to developing extensions; that fact, combined with Firefox's rapidly growing popularity, has created a positive feedback loop, with the number of extension users and extension developers growing explosively--there are now more than 7000 extensions and
themes published at the Firefox Add-ons site (https://addons.mozilla.org). What you can do with extensions Let's look at what features extensions can add, and some actual examples of extensions. Single feature extensions FIXME: Update this. These are relatively simple extensions that add a single feature. Text Link Makes it so that double-clicking on an unlinked URL follows that URL. Undo Clo...
...s build an extension Table 1 shows the various customization options available to a user in Firefox. Users have flexible customization options, using CSS in user style sheets and JavaScript/DOM in user scripts (these depend on Stylish, GreaseMonkey, and userChrome.js). In addition to CSS and JavaScript, extensions can take advantage of XUL and XPCOM technologies for more sophisticated features.
Themes, which alter Firefox's appearance, are a kind of add-on. In order to create an extension, you need an idea and just a little programming ability. The following chapters explain in detail the extension-writing techniques of some of Japan's leading extension authors. We encourage you to try your hand at it as well. 1 One of the authors of this special edition, Piro, is world-famous as one of th...
Getting Started with Firefox Extensions - Archive of obsolete content
that adds something new to one or more Mozilla applications. This tutorial focuses on extensions for Firefox, but the same (or very similar) principles apply to creating extensions for other applications such as Thunderbird, Seamonkey, and Flock. It is also worth noting that there are differences between the definition of extension and add-on. All extensions are add-ons, but add-ons can also be
themes, plugins, or language packs. This tutorial is about extension development, but
themes and language packs are developed in a very similar way. Plugins are entirely different, and they will not be covered here. You can read more about plugins and their development in the Plugins page. Firefox provides a very rich and flexible architecture that allows extension developers to add advanced features,...
...g an unverified add-on. Click "install". After the extension is installed, you'll be asked to restart Firefox. Installing, uninstalling, enabling and disabling add-ons require a restart to complete, with the exception of NPAPI plugins, Add-ons SDK extensions and bootstrapped extensions. This is an important point to keep in mind if you're building an extension that manipulates other extensions or
themes. After installing, look at the main Firefox window and see if you notice anything different. Did you see it? There's a new menu on the main menu, labeled "Hello World!". If you open the menu and then the menu item below, you'll see a nice alert message (for some definitions of 'nice'). Click on the OK button to close it. That's all the extension does. Now let's take a closer look at it. ...
install.rdf - Archive of obsolete content
Copy the following text and paste it into a text file, then save that file as "install.rdf": <?xml version="1.0"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <em:id>author@of
theme.com</em:id> <em:version>2.0b1</em:version> <!-- SeaMonkey --> <em:targetApplication> <Description> <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id> <em:minVersion>2.0b1pre</em:minVersion> <em:maxVersion>2.0b2pre</em:maxVersion> </Description> </em:targetApplication> <!-- Front End MetaData --> <em:name>My_
Theme</em:name> <em:description>My first
theme</em:description> <!-- Front End Integration Hooks (used by Th...
...:description>My first
theme</em:description> <!-- Front End Integration Hooks (used by
Theme Manager)--> <em:creator>John Johnson</em:creator> <em:contributor>John Johnson</em:contributor> <em:homepageURL>https://mycoolskin.com/</em:homepageURL> <em:updateURL>https://mycoolskin.com/</em:updateURL> <em:aboutURL>https://mycoolskin.com/</em:aboutURL> <em:internalName>My_
Theme</em:internalName> </Description> </RDF> ...
Creating XPI Installer Modules - Archive of obsolete content
This new packaging scheme is called XPI (pronounced "zippy"), and interacts with XPInstall. ...
...eparate package), you ought to be able to see the image and the JavaScript function working as defined in barley.js (provided that both all three files are in the same working directory). Organizing the Resources Now that you have created the basic files to be included in your package, you should put them all in a single directory so that they can be bundled up. When your package includes its own
theme, localization packs, or other components it's convenient (but not necessary to create a subdirectory structure that reflects the role of the different parts. For the Barley package, you only need to create a single subdirectory, content/ (see figure below). barley/ content/ barley.gif barley.js barley.xul Creating the contents.rdf File One of the most important ingredients of the s...
Using XPInstall to Install Plugins - Archive of obsolete content
In particular plugin developers should see how to package a plugin as an extension. XPInstall is a JavaScript-based installer technology that works across all the platforms that Mozilla and Netscape browsers based on Mozilla (such as Netscape 7) are deployed. ...
...tallers (for example, files called setup.exe), the programming language for install operations in XPI is JavaScript. Since the file format that contains the software and the install.js JavaScript file is a cross-platform file (Zip) and since JavaScript is understood by Mozilla browsers on all platforms, often one single XPI package can be deployed on all platforms. This is, in fact, how skins and
themes are installed to Mozilla browsers, changing their look and feel. This article focuses on how to install plugins. Which Browsers Support XPInstall? Currently, all Mozilla browsers released by mozilla.org support XPInstall, and a family of browsers based on Mozilla code support XPInstall. In particular, this includes: Recent Netscape browsers such as Netscape 6.2.x and Netscape 7.0, which are...
InstallTrigger.installChrome - Archive of obsolete content
InstallTrigger.installChrome Trigger scripts are typically invoked by JavaScript event handlers on hyperlinks. When a user clicks the link "Install the New Blue
theme" in the example below, XPInstall downloads, registers, and installs the
theme contained in newblue.xpi to the user's profile directory. ...
...ked by JavaScript event handlers on hyperlinks. When a user clicks the link "Install the New Blue
theme" in the example below, XPInstall downloads, registers, and installs the
theme contained in newblue.xpi to the user's profile directory. ...
Adding Labels and Images - Archive of obsolete content
ialog box. Images XUL has an element to display images within a window. This element is appropriately named image. Note that the tag name is different than HTML (image instead of img). You can use the src attribute to specify the URL of the image file. The example below shows this: <image src="images/banner.jpg"/> Although you can use this syntax, it would be better in order to support different
themes to use a style sheet to set the image URL. A later section will describe how to use style sheets, but an example will be shown here for completeness. You can use the list-style-image CSS property to set the URL for the image. Here are some examples: XUL: <image id="image1"/> <image id="search"/> Style Sheet: #image1 { list-style-image: url("chrome://findfile/skin/banner.jpg"); } #searc...
...S property to set the URL for the image. Here are some examples: XUL: <image id="image1"/> <image id="search"/> Style Sheet: #image1 { list-style-image: url("chrome://findfile/skin/banner.jpg"); } #search { list-style-image: url("http://example.com/images/search.png"); } These images come from within the chrome directory, in the skin for the findfile package. Because images vary by
theme, you would usually place images in the skin directory. In the next section, we will learn how to add some input controls to a window. << PreviousNext >> ...
Creating an Installer - Archive of obsolete content
In particular plugin developers should see how to package a plugin as an extension. << PreviousNext >> This section will describe packaging a XUL application into an installer. XPInstall Packages Mozilla provides a mechanism which can be used to package XUL windows, scripts, skins and other files into single file installers. ...
...s executed, the file calendar.xpi will be installed. Our find files example Let's try this with the find files dialog. function doneFn ( name , result ){ if (result) alert("An error occured: " + result); } var xpi = new Object(); xpi["Find Files"] = "findfile.xpi"; InstallTrigger.install(xpi,doneFn); The XPI Archive Note: If you want to create a new XULRunner application, extension, or
theme, see Bundles. The installer XPI file is required to contain one file called install.js which is a JavaScript file which is executed during the installation. The remaining files are the files to be installed. These files will typically be placed inside a directory in the archive but they do not have to be. For chrome files, they might be structured like the chrome directory. Often, the only file...
The Chrome URL - Archive of obsolete content
are installed into Mozilla's chrome system can be referenced with special chrome URLs. The packages included with Mozilla will already be installed but you can register your own. Installed packages have the advantage that they don't have security restrictions placed on them, which is necessary for many applications. Another advantage over other URL types is that they automatically handle multiple
themes and locales. For example, a chrome URL lets you refer to a file in the
theme such as an image without needing to know which
theme the user is using. As long as the filenames are the same in each
theme, you can refer to the file using a chrome URL. Mozilla will take care of determining where the file is located and return the right data. This also means that it doesn't matter where the package is...
...he mapping between chrome URLs and JAR files are specified in the manifest files stored in the chrome directory. If you were to move the file messenger.jar somewhere else and update the manifest file accordingly, Thunderbird will still work since it doesn't rely on its specific installed location. By using chrome URLs we can leave details like this to Mozilla. Similarly, if the user changes their
theme, the 'skin' part of the chrome URL translates to a different set of files, yet the XUL and scripts don't need to change. Here are some more examples. Note how none of the URLs specify which
theme or locale is used and none specify a specific directory. chrome://messenger/content/messenger.xul chrome://messenger/content/attach.js chrome://messenger/skin/icons/folder-inbox.gif chrome://messenger/lo...
label - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
...oveAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Style classes The following classes may be used to style the element. These classes should be used instead of changing the style of the element directly since they will fit more naturally with the user's selected
theme. header A class used for headings. Typically, this will cause the text to appear bold. indent This class causes the text to be indented on its left side. monospace This class causes the text to be displayed in a monospace font. plain This class causes the element to be displayed with no border or margin. small-margin This class causes the text to be displayed with a smaller m...
menu - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
...o update additional state. label Type: string The label that will appear on the element. If this is left out, no text appears. For an editable menuitem element the value of this attribute is copied to the menulist.value property upon user selection of the menuitem. menuactive Type: boolean This attribute is set on an item in a menu when it is being hovered over. Typcially, the
theme will use this to highlight the item. A DOMMenuItemActive event will be sent to the item when the item is hovered over, and a DOMMenuItemInactive event will be sent to the item when the selection moves away. open Type: boolean For the menu type buttons, the open attribute is set to true when the menu is open. The open attribute is not present if the menu is closed. sizetopopup Type:...
<statusbarpanel> - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
...eAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Style classes The following classes may be used to style the element. These classes should be used instead of changing the style of the element directly since they will fit more naturally with the user's selected
theme. << XUL Reference home statusbarpanel-iconic Use this class to have an image appear on the statusbarpanel. Specify the image using the src attribute. The image will appear instead of the label. statusbarpanel-iconic-text Use this class to have an image appear on the statusbarpanel as well as a text label. Specify the image using the src attribute. Specify the text using the label attribut...
treecol - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
..., removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Style classes The following class may be used to style the element. This class should be used instead of changing the style of the element directly since it will fit more naturally with the user's selected
theme. treecol-image Use this class to have an image appear on the tree column header. Specify the image using the src attribute. Related Elements tree, treecols, treechildren, treeitem, treerow, treecell and treeseparator. Interfaces nsIAccessibleProvider ...
Archived Mozilla and build documentation - Archive of obsolete content
l. Creating a Skin for Mozilla In order to create a skin for mozilla, you will need to know three things. How to edit images, extract zip files, and how to modify CSS. Mozilla uses standard gif, png, and jpeg images for the buttons and CSS to style everything else in the interface. Creating a Skin for SeaMonkey 2.x You're going to make a
theme for SeaMonkey 2, but don't know how? I hope this manual will help you. Creating regular expressions for a microsummary generator A regular expression is a special kind of string (i.e. a sequence of characters) that matches patterns of characters in other strings. Microsummary generators use them to identify the pages that the generators know how to summarize by ...
...o WinXP fine (Win2000 compatibility is unknown). The only downside is you can't specify how much of the resource to use, only which one to consume. Also be warned: always remember the -time option, or you may be hitting that physical reset button sooner than you would have liked! Structure of an installable bundle XULRunner applications, extensions, and
themes all share a common directory structure, and in some cases the same bundle can be used as a standalone XULRunner application as well as an installable application extension. Supporting private browsing mode Firefox 3.5 introduced private browsing mode, in which potentially private information is not recorded. This includes cookies, history information, download i...
Mozilla release FAQ - Archive of obsolete content
and at the time of Mozilla's initial release, that code was removed from the tree. The 'Classic' branch of the current CVS tree is as close to the 4.x source as the public will ever see, although that branch has been abandoned in the move to the modern codebase. How do I tweak the interface (replace the logo, etc)? The XPToolkit docs might help in writing the needed XUL. You can find replacement
themes in Preferences, under Appearance->
Themes, using the 'get new
themes' link there. Where can I get patches? There is not currently a central repository of patches. However, via CVS, you can keep up with the latest source from Mozilla. I made a patch! How do I submit it? The current best way to do this is to post it in Bugzilla, either attached to the bug it fixes or a new entry describing what it ...
...roject is largely about coding. You could tackle: Porting Mozilla to the OS you use Work on moving #ifdef PLATFORM to #ifdef FEATURE/BUG If you're on Unix, port Mozilla to the toolkit you prefer Modularize/Clean up APIs Fix Bugs Work on the expermental features (Mail/News, Aurora, NGLayout) Add new things: Make OpenDoc and OLE NGLayout controls Write new skins (see
themes.org) Add preference interfaces for the hidden features There's plenty to do.. What subprojects are there for documentation people? Mozilla currently has far more developers than documenters. As a result, the project is in dire need of documentation work. Maintenance of old documentation would be helpful, new documentation is also welcome. Post to netscape.public.mozilla.documentati...
Extentsions FAQ - Archive of obsolete content
ouldn't store data there, so there's nothing to backup. Do not store files within the extension directory. The Profile directory is ment to do so. Storing files within the extension directory is a no-no because it might break the multi-user support of those Mozilla products, as it is possible to install extensions directly within the application directory. Inspector, Talkback and the default
theme are nowadays installed like this. Does Firefox clean up the preferences set by extension? If not, how to proceed? When user chooses to uninstall an extension, a nsIObserverService notification is sent out. The problem is, while your extension is still active, user can cancel uninstallation, and when it is physically uninstalled, your code can't run. Right. And if you uninstall Firefox, the p...
...Could someone make an addressbook enhancer extension that has the ability to put pictures on a contact and other features the Thunderbird address book lacks. ...
Archive of obsolete content
al other programming language environments. Starting with Firefox 2, a SAX parser is available to XUL applications and extensions. For more information, please see SAX homepage. Security Relying on these obsolete security articles is highly discouraged. Doing so may put your systems at risk. Solaris 10 Build Prerequisites Sunbird
Theme Tutorial This tutorial is a step-by-step guide to making a
theme for Sunbird 0.3a1 and later versions. It is designed for beginners. It does not cover advanced topics. Table Reflow Internals Key: Tamarin Tracing Build Documentation The following instructions are for obtaining and building the Tamarin Tracing source code. For instructions on Tamarin Central,...
... Internals Key: Tamarin Tracing Build Documentation The following instructions are for obtaining and building the Tamarin Tracing source code. For instructions on Tamarin Central, please see The Basics of Web Services Summary: A current hot topic on the web right now are Web Services. This short guide will allow you to learn more about web services.
Themes Archived
theme documentation. Updating an extension to support multiple Mozilla applications This article shows how to take an existing extension and update it so that it can be used in additional Mozilla applications. We'll build upon the stock watcher extension created in earlier articles in this series, updating it so it can also be used in Thunderbi...
What are browser developer tools? - Learn web development
tab. This will give you a window like the following: To see what happens, try entering the following snippets of code into the console one by one (and then pressing Enter): alert('hello!'); document.querySelector('html').style.backgroundColor = 'purple'; const myWordmark = document.createElement('img'); myWordmark.setAttribute('src','https://blog.mozilla.org/press/wp-content/
themes/OneMozilla/img/mozilla-wordmark.png'); document.querySelector('h1').appendChild(myWordmark); Now try entering the following incorrect versions of the code and see what you get. alert('hello!); document.cheeseSelector('html').style.backgroundColor = 'purple'; const myWordmark = document.createElement('img'); myBanana.setAttribute('src','https://blog.mozilla.org/press/wp-cont...
...eMozilla/img/mozilla-wordmark.png'); document.querySelector('h1').appendChild(myWordmark); Now try entering the following incorrect versions of the code and see what you get. alert('hello!); document.cheeseSelector('html').style.backgroundColor = 'purple'; const myWordmark = document.createElement('img'); myBanana.setAttribute('src','https://blog.mozilla.org/press/wp-content/
themes/OneMozilla/img/mozilla-wordmark.png'); document.querySelector('h1').appendChild(myWordmark); You'll start to see the kind of errors that the browser returns. Often these errors are fairly cryptic, but it should be pretty simple to figure these problems out! Find out more Find more out about the JavaScript console in different browsers: Firefox Web Console IE JavaScript console Chrome ...
Information for users
o compatibility with assistive technologies such as screen readers, screen magnifiers, voice input software and on screen keyboards. Planning Ahead for Accessibility This document is intended to help testers and designers understand and plan what still needs to be added to our UI for full usable accessibility. ...
...reen keyboards. Planning Ahead for Accessibility This document is intended to help testers and designers understand and plan what still needs to be added to our UI for full usable accessibility. Please give us feedback on the discussion list! Firefox Accessibility skins and
themes At the excellent Access Firefox website, you will find many valuable resources, including a list of Firefox
themes that have been specially designed for those with low vision:
themes with high color constrast
themes with big icons
themes with extra large and bright icons
themes with extra large and extra bold text Join the Mozilla Accessibility Community Live Chat Both end users and developers are invited for discussion on the live IRC channel at irc.mozilla.org/#accessibility. Since...
Mozilla's Section 508 Compliance
text attributes. Complete. Caret location and text attributes are exposed via MSAA (Windows) and ATK (Linux/UNIX) Incomplete. No development efforts have made made to utilize Cocoa or Carbon accessibility APIs. (g) Applications shall not override user selected contrast and color selections and other individual display attributes. Complete. ...
...Linux/UNIX) Incomplete. No development efforts have made made to utilize Cocoa or Carbon accessibility APIs. (g) Applications shall not override user selected contrast and color selections and other individual display attributes. Complete. The default
theme, Classic, uses the operating system's font and color contrast settings. When the Windows "high contrast
theme" is used Classic, and thus the system look and feel, is automatically selected. Complete when run in the Gnome desktop. The default
theme, Classic, uses Gnome's font and color contrast settings. Under Linux/UNIX it is the user's choice, whether to stick with the Gnome
theme or not -- they must choose Classic if they want to follow the Gnome
theme. Unknown - needs research ...
Mozilla’s UAAG evaluation report
ntions. (P1) VG Mozilla implements standard keyboard bindings There are a few missing pieces, such as support in XUL comboboxes (menulist) for selecting items by typing alphanumeric keystrokes 7.3 Operating environment conventions. (P2) G Mozilla uses non-native controls. It does, however, support the look and feel of widgets on various operating systems, when the classic
theme is selected (on by default). 7.4 Input configuration indications. (P2) G Menus indicate accesskey and accelerator configurations Accelerators not show in button tooltips Guideline 8. Implement specifications that benefit accessibility. Checkpoint Title Status Notes/plans 8.1 Implement accessibility features. (P1) VG HTML: CAPTION elem...
...Pref("browser.display.focus_ring_width", numPixels); /* integer 0-4 */ 10.3 Distinct default highlight styles. (P1) VG We rely on color alone when showing which links have been recently visited. Should implement a pref for dotted underline on visited links, similar to the way Opera does it. 10.4 Highlight special elements. (P2) G Use system colors by default (classic
theme) Underlines links by default Does not have UI to highlight non-link and non-form elements that have event handlers Can have user CSS for user styling of elements with event handlers 10.5 Outline view. (P2) P DOM Inspector provides a type of outline view, although it is not intended for end users Page info (Ctrl+I) gives lists of links, media, forms/elements Can ...
Command line options
r a single user. --unregister-global Unregisters XULRunner for all users. --unregister-user Unregisters XULRunner for a single user. Chrome -chrome chrome_URL Load the specified chrome. firefox -chrome chrome://inspector/content -register chrome_URL Register the specified chrome, but do not start application. Add-ons Gecko 1.9.2 note -install-global-extension and -install-global-
theme have been removed from Gecko 1.9.2 and upwards. -install-global-extension /path/to/extension Installs the extension into the application directory. The parameter is the path to the extension. You must have administrative privileges. -install-global-
theme /path/to/
theme Same as above, but for
themes. You must have administrative privileges. Note: Since Firefox 2.0.0.7, use of the -install-g...
...and upwards. -install-global-extension /path/to/extension Installs the extension into the application directory. The parameter is the path to the extension. You must have administrative privileges. -install-global-
theme /path/to/
theme Same as above, but for
themes. You must have administrative privileges. Note: Since Firefox 2.0.0.7, use of the -install-global-extension and -install-global-
theme command line arguments have been restricted to only allow installing add-ons that are on local disks or mapped drives. Installing from a network share directly will no longer succeed. -safe-mode Launches the application with all extensions disabled, for that launch only (extensions are not loaded, but are not permanently disabled in the extension manager data source). Remote control -remote ...
Index
Add-ons can (and should) be identified with IDs of the form extensionname@organization.tld since Firefox 1.5. 9 Generic factory XPCOM Most XPCOM factories can be very simple. Rick Potts wrote a templated-based generic factory (nsFactory<t>) that simplifies the factory creation process that just requires writing a CreateInstance() meth...
...697 isNonBlocking No summary! 698 read No summary! 699 readSegments No summary! 700 nsIInputStreamCallback Interfaces, Interfaces:Scriptable, Streams, XPCOM, XPCOM Interface Reference Called to indicate that the stream is either readable or closed. 701 nsIInstallLocation Add-ons, Extensions, Interfaces,
Themes, XPCOM, XPCOM API Reference, XPCOM Interface Reference You can get the install location of a particular add-on using nsIExtensionManager interface: 702 nsIInterfaceRequestor Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference This is similar to nsISupports.QueryInterface(). The main difference is that interfaces returned are not req...
Observer Notifications
ID of the folder. The subject is null otherwise. bookmarks-restore-failed html-initial Sent when bookmarks could not be successfully restored from HTML on intial import. If bookmarks were to have been restored into a specific folder, observers will be passed an nsISupportsPRInt64 through their subject parameters indicating the ID of the folder. The subject is null otherwise.
Themes These topics indicate when actions related to
themes occur. Topic Data Description lightweight-
theme-preview-requested json Sent when the user requests to preview a lightweight
theme, but before existing windows are styled with the new
theme. lightweight-
theme-change-requested json Sent to indicate that the user has chosen a new
theme in the add-ons...
... Topic Data Description lightweight-
theme-preview-requested json Sent when the user requests to preview a lightweight
theme, but before existing windows are styled with the new
theme. lightweight-
theme-change-requested json Sent to indicate that the user has chosen a new
theme in the add-ons manager, but before the change takes effect. lightweight-
theme-changed - Sent after the current
theme is changed. lightweight-
theme-styling-update json Sent when the current
theme being used is changed; this is sent even when the user is previewing a
theme, not just when the
theme is actually selected. lightweight-
theme-list-changed - The list of available lightweight
themes has changed. Developer tools These topic...
Index
handlers. While XUL provides the elements of the user interface, actions are written in JavaScript. 79 Building a Thunderbird extension 6: Adding JavaScript In this step we will create a small piece of JavaScript code that inserts the current date into our statusbar widget. The statusbar is usually displayed at the bottom of the Thunderbird window. Depending on the installed
theme the result will look something like this: 80 Building a Thunderbird extension 7: Installation Extensions, thunderbird While you are developing the extension, there are two ways you can make Thunderbird load it so you can test it as you go. You can either put the folder with the extension files directly into Thunderbird's extensions folder, or you can put a file there that tel...
... received the following inquiry, and I decided to follow my usual path and document what I do: 88 Styling the Folder Pane The folder pane in Thunderbird is predominantly controlled by code in folderPane.js. Since Thunderbird 3, the folder pane is designed in a more modular and extensible fashion. It is now possible to place non-mail entities in the folder pane. 89
Theme Packaging Add-ons,
Themes, Toolkit API This document describes how to package
themes for Thunderbird. 90 Thunderbird HowTos Add-ons, Extensions, thunderbird Please add questions or answers to this page so that other people can benefit from your work. Also, you will see that there are many topics for which there is a question, but no answer. Please help by adding an ...
Index - Firefox Developer Tools
t a web page would look like to users with various forms of color vision deficiency (better known as "color blindness"), as well as contrast sensitivity loss. 5 Add-ons Web Development, Web Development:Tools Developer tools that are not built into Firefox, but ship as separate add-ons. 6 DOM Inspector DOM, DOM:Tools, DOM_Inspector, Extensions, Extensions:Tools,
Themes,
Themes:Tools, Tools, Web Development, Web Development:Tools, XUL, XUL:Tools The DOM Inspector (also known as DOMi) is a developer tool used to inspect, browse, and edit the Document Object Model of documents - usually web pages or XUL windows. The DOM hierarchy can be navigated using a two-paned window that allows a variety of different views on the document and all nodes within. 7...
...erimental panels to try out new ideas. Not all of these have had wide adoption, and due to the cost of maintenance, seldom used panels are eventually removed. 29 DevTools API DevTools The DevTools API provides a way to register and access developer tools in Firefox. 30 DevToolsColors CSS This chart lists colors and CSS variables as implemented in the dark
theme and light
theme for developer tools. 31 Eyedropper Firefox, Tools, Web Development:Tools The Eyedropper tool enables you to select colors in the current page. It works like a magnifying glass over the page, enabling you to select with pixel precision. Underneath the magnifying glass it shows the color value for the current pixel using whichever scheme you've selected in Setti...
Introducing the CSS Cascade - CSS: Cascading Style Sheets
o a known state before beginning to make alterations to suit their specific needs. Author stylesheets Author stylesheets are the most common type of style sheet. These are style sheets that define styles as part of the design of a given web page or site. The author of the page defines the styles for the document using one or more stylesheets, which define the look and feel of the website -- its
theme. User stylesheets The user (or reader) of the web site can choose to override styles in many browsers using a custom user stylesheet designed to tailor the experience to the user's wishes. Cascading order The cascading algorithm determines how to find the value to apply for each property for each document element. It first filters all the rules from the different sources to keep only the r...
... !important 7 user agent !important 8 transitions In case of equality, the specificity of a value is considered to choose one or the other. Resetting styles After your content has finished altering styles, it may find itself in a situation where it needs to restore them to a known state. This may happen in cases of animations,
theme changes, and so forth. The CSS property all lets you quickly set (almost) everything in CSS back to a known state. all lets you opt to immediately restore all properties to any of their initial (default) state, the state inherited from the previous level of the cascade, a specific origin (the user-agent stylesheet, the author stylesheet, or the user stylesheet), or even to clear the values of th...
Release notes - Archive of obsolete content
32. This will not include any uplifts made after this release entered Aurora. Bugs fixed between Firefox 31 and Firefox 32. This will not include any uplifts made after this release entered Aurora. Firefox 31 Highlights Add-on Debugger Added the ability to convert between high-level BrowserWindow objects and DOM windows, and between high-level Tab objects and XUL tabs. Updated the default
theme used for panels on Mac OS X. Added contentStyle and contentStyleFile options to panel. Details GitHub commits made between Firefox 30 and Firefox 31. This will not include any uplifts made after this release entered Aurora. Bugs fixed between Firefox 30 and Firefox 31. This will not include any uplifts made after this release entered Aurora. Firefox 30 Highlights Added the ability to an...
Extension Versioning, Update and Compatibility - Archive of obsolete content
irefox versions 1.5 to 2.0.0.*. For version 2.2 an https update link is used while version 2.5 has a regular http link with a hash to verify the file retrieved. It is important to get the initial RDF:Description's about attribute correct. It varies depending on what type of add-on you are providing information for: For an extension or plugin bundle it must be urn:mozilla:extension:<id> For a
theme it must be urn:mozilla:
theme:<id> For any other type of add-on it must be urn:mozilla:item:<id> Note: Prior to Gecko 2.0 (Firefox 4.0), the ordering of the versions within the <RDF:Seq> is significant. For later versions, the compatible add-on version with the greatest version string will be used by the client for automatic updates. The behavior depends on the version of the client applicati...
Inline options - Archive of obsolete content
/source/toolkit/mozapps/extensions/content/setting.xml for example you can fire this.inputChanged() etc etc. <setting pref="extensions.ThrobberRestored.showTxtOnToolbar" title="Show Text on Toolbar Button" type="bool" oninputchanged="alert('New value is = ' + this.value); this.style.backgroundColor='red';"> If labels on other toolbar buttons are visible (like by using add-on "Classic
Theme Restorer") then show label on throbber toolbar button </setting> NOTE In order for the oninputchanged to execute, the setting MUST have a pref attribute, otherwise the oninputchanged will not trigger. Some discussion on the subject at StackOverflow: How to use addEventListener on inputChanged of inline options Display notifications If you want to use the settings UI for anything more th...
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
</window> Listing 2: General structure of a XUL document Even with the internationalization of Firefox and extensions, this kind of XML function is being used. Reading in style sheets XUL uses CSS to specify the appearance of its elements. Again, since XUL is a type of XML, stylesheets are read in using the xml-stylesheet processing instruction. On line 2 of Listing 2, we're reading in the
theme's standard style sheet. By referring to a special style sheet within chrome://global/skin/, we can make label and button sizes, window background color, etc, match the currently selected
theme in Firefox. We can also read in a stylesheet that we had set up ourselves. The XUL box model In principle, XUL lays out all UI components using combinations of two kinds of boxes: horizontal and vertical.
The Box Model - Archive of obsolete content
paddings and margins affect the dimensions of XUL nodes. Modify the Hello World extension so that it changes the appearance of Firefox drastically using only CSS. Play with changing the dimensions and appearance of buttons, changing the background color of the toolbars and status bars, font styles, sizes, etc. Note that this is not really what you would expect from an extension, it's more like a
theme. However, it's very interesting and useful to see how you can manipulate the appearance of Firefox so easily. If you're not familiar with CSS, you should read this CSS Getting Started Guide and other online resources before continuing with this tutorial. << PreviousNext >> This tutorial was kindly donated to Mozilla by Appcoast. ...
The Essentials of an Extension - Archive of obsolete content
3 sections: content, locale and skin. The content is the most important section, holding user interface (XUL) and script (JS) files. The skin section has the files that define most of the look and feel of the UI (using CSS and images, just like web pages). Finally, the locale section holds all text used in the extension, in DTD and properties files. This division allows other developers to create
themes that replace skins, and translators to create localizations in different languages, all of this without having to change your extension or your code. This gives Firefox extensions a great deal of flexibility. Chrome files are accessed through the chrome protocol. This is what a chrome URI looks like: chrome://packagename/section/path/to/file So, for instance, if I want to access the file ...
Signing an extension - Archive of obsolete content
Note: These instructions are outdated. For an extension to work in Firefox it must be signed by Mozilla, not by yourself. See Signing and distributing your add-on. This article describes how to digitally sign your extension for Firefox and Thunderbird, with a code signing certificate for Object Signing. The following instructions also apply to a
theme and other XPI files. These instructions assume you're working on Mac and you've already got a valid certificate from CA. Get the signing tool We use NSS to sign an extension. This can be easily installed with MacPorts. sudo port install nss Export your certificate If you have your certificate in Firefox, export it by following the steps below. The certificate which the author purchased from VeriSign was directly installed to Firefox...
Install.js - Archive of obsolete content
In particular plugin developers should see how to package a plugin as an extension. To make your extension install in Mozilla Suite, SeaMonkey, Mozilla Firefox pre-0.9 and Mozilla Thunderbird pre-0.7, you need to have an install.js file in the root of your XPI file. ...
List of Former Mozilla-Based Applications - Archive of obsolete content
ed Mozilla browser to a plugin architecture with a qtwebkit plugin Applications that are no longer being developed Name Description Additional Information Aphrodite Browser Inactive AOL client for Mac Internet software No longer available Beonex Communicator Internet software Last news item on site from 2004 Chameleon
Theme builder Inactive Civil Netizen P2P file delivery (email attachment replacement) Site not updated since 2006 CompuServe client Internet software No longer available DocZilla SGML/XML/HTML browser Last release on site from July 2005 Fabula Language learning application Inactive Galeon Browser Last news item on site from S...
chrome.manifest - Archive of obsolete content
Copy the following text and paste it into a text file, then save that file as "chrome.manifest": skin global My_
Theme jar:chrome/My_
Theme.jar!/global/ skin mozapps My_
Theme jar:chrome/My_
Theme.jar!/mozapps/ skin messenger My_
Theme jar:chrome/My_
Theme.jar!/messenger/ skin messenger-newsblog My_
Theme jar:chrome/My_
Theme.jar!/messenger-newsblog/ skin communicator My_
Theme jar:chrome/My_
Theme.jar!/communicator/ skin help My_
Theme jar:chrome/My_
Theme.jar!/help/ skin navigator My_
Theme jar:chrome/My_
Theme.jar!/navigator/ skin editor My_
Theme jar:chrome/My_
Theme.jar!/editor/ ...
FAQ - Archive of obsolete content
window telling you that it's an old skin, you're going to have to look over the code to see what changed. Developers try to keep changes like this to a minimum, but sometimes it just can't be helped. What is an Access key? An access key is a keyboard shortcut to access something. In the case of Skins the access key that you are defining is accessible by going to Edit->Preferences, Appearance->
Themes, and then pressing a letter. C will select Classic and M will select Modern. ...
In-Depth - Archive of obsolete content
A list of the different operating system colours can be found on the W3C's web site. Mozilla CSS Properties Mozilla.org created their own CSS properties to allow them to use the technology for the UI of Mozilla. All of the properties follow the W3C's standards for vendor extensions, which is why they all begin with -moz. This is only a list of properties which may be useful to you; it is in no way all of the Mozilla specific properties available. ...
contents.rdf - Archive of obsolete content
Copy the following text and paste it into a text file, then save that file as "contents.rdf": <?xml version="1.0"?> <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"> <!-- List all the skins being supplied by this
theme --> <RDF:Seq about="urn:mozilla:skin:root"> <RDF:li resource="urn:mozilla:skin:mySkin/1.0" /> </RDF:Seq> <RDF:Description about="urn:mozilla:skin:mySkin/1.0" chrome:displayName="My Skin" chrome:accessKey="M" chrome:author="Me" chrome:description="This is my custom skin for mozilla" chrome:name="mySkin/1.0" chrome:image="preview.png"> <chrome:packages> <RDF:Seq about="urn:mozilla:skin:mySkin/1.0:packages"> <RDF:li resource="u...
crop - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
current - Archive of obsolete content
<< XUL Reference home current Type: boolean This attribute will be set to true if the listitem is the current item. This is typically used by a
theme to customize the focus ring. To change the currently selected item in a listbox, use the listbox property selectedItem. ...
menuactive - Archive of obsolete content
<< XUL Reference home menuactive Type: boolean This attribute is set on an item in a menu when it is being hovered over. Typcially, the
theme will use this to highlight the item. A DOMMenuItemActive event will be sent to the item when the item is hovered over, and a DOMMenuItemInactive event will be sent to the item when the selection moves away. ...
treecol.type - Archive of obsolete content
ox The content of the columns are checkboxes. progressmeter The content of the columns are a progress meters. This is used in Mozilla's download manager window. text The content of the columns is text. If you are using type="checkbox", then the tree and each treecol must be editable. You need to apply CSS to make the checkbox toggle. Here is an example CSS style using the current
theme's checkboxes: treechildren::-moz-tree-checkbox { /* unchecked checkbox treecells. This style MUST come before treechildren::-moz-tree-checkbox(checked) otherwise it won't take effect. */ list-style-image: none; } treechildren::-moz-tree-checkbox(checked) { /* checked checkbox treecells. cbox-check.gif isn't available in Firefox 1, 2, and 3 in Mac OS X so you should specify a URL to an...
MenuItems - Archive of obsolete content
left of the menuitem label. In addition to the image, a special class "menuitem-iconic" must be used on the menuitem to indicate that an icon is expected. <menuitem id="add-bookmark" class="menuitem-iconic" label="Add Bookmark" image="addbookmark.png"/> As the image appears on a menu item, you will want to ensure you use a fairly small image. Although the exact size will vary depending on the
theme being used, the size of menu item images should generally be around 16 by 16 pixels. Instead of specifying the icon with the image attribute, you can also reference the image in a style sheet with the 'list-style-image' property. #add-bookmark { list-style-image: url('addbookmark.png'); } This technique can also be used to apply an image for the menu element, except you would want to use the...
Positioning - Archive of obsolete content
nce of 2ex below the bottom of the button. <button label="Popup" type="menu"> <menupopup style="margin-top: 2ex;"> <menuitem label="Cat"/> <menuitem label="Dog"/> </menupopup> </button> This technique is used internally for tooltips. If you notice in the Firefox browser when a tooltip is opened it appears not at the mouse position, but slightly below it. This is because the default
theme has a 21 pixel top margin on tooltips that moves them down by that much. This is used so that the tooltip doesn't cover up what it is providing a description of. Screen Positioning The openPopupAtScreen method may be used to open a popup via a script at a specific screen position. The section on the openPopupAtScreen method provides more details. For all popups, the left and top attributes may...
Toolbars - Archive of obsolete content
edit the live DOM (Firefox and Thunderbird) Mozilla Labs Add-on Builder Extension Developer's Extension a suite of development tools Chrome List view files in chrome:// (Firefox, Thunderbird) Extension Wizard a web-based extension skeleton generator (Firefox and Thunderbird) ... more tools ... Related Topics XUL,
Themes, Developing Mozilla ...
Adding more elements - Archive of obsolete content
elements. It might look nicer if there was a border around the search criteria. There are two ways to do this. We could use the CSS border property or we could use the groupbox element. This first method would require that we set the style on the box itself. We will use the latter method, however. A groupbox has the advantage that it draws a box with a nice beveled look, suitable for the current
theme. Let us change the box into a groupbox: <groupbox orient="horizontal"> <caption label="Search Criteria"/> <menulist id="searchtype"> . . . <spacer style="width: 10px;"/> <textbox id="find-text" flex="1" style="min-width: 15em;"/> </groupbox> There are other cosmetic problems as well. We could also have the groupbox grow so that it extends vertically to the bottom of the box. Als...
Adding Style Sheets - Archive of obsolete content
e sheet anywhere you wish. If your XUL file is stored remotely and accessed via an HTTP URL, you can store the style sheet remotely as well. If you are creating a XUL package to be installed as part of the chrome system, you have two choices. First, you could store the style sheet in the same directory as the XUL file. This method has the disadvantage because it means your application will not be
themeable. The second method involves placing your files as part of a
theme. Let's assume that we are building the find files dialog for
themeability, because the find files dialog can be referred to with the URL chrome://findfile/content/findfile.xul so the style sheet file will be stored in chrome://findfile/skin/findfile.css. All the XUL examples so far have actually been using a style sheet alr...
Element Positioning - Archive of obsolete content
re are a number of features that allow you to control the size of an element. The quick way is to simply add the width and height attributes on an element, much like you might do on an HTML img tag. An example is shown below: Example 1: Source View <button label="OK" width="100" height="40"/> However, it is not recommended that you do this. It is not very portable and may not fit in with some
themes. A better way is to use style properties, which work similarly to style sheets in HTML. The following CSS properties can be used. width This specifies the width of the element. Note that the CSS global skin of the XUL application may also specify a min-width for the buttons and other elements, thus if simply setting the width property does not set the button width as you expect, try also to ...
Features of a Window - Archive of obsolete content
his size, the window will still open at this size and there will be blank space in the remaining area. If there are too many elements, the window will not be large enough to fit the elements. The user will have to resize the dialog. You have to be careful when specifying a width and height that the window is not too small or too big. You should also consider that a user might be using a different
theme or locale. Note that you must specify both the width and the height. If you only specify one, the other will be set to 0. To have the window set its size automatically, leave both the width and height out. The width and height only specify the initial size of the window. The user may still resize the window to another size, assuming that the window is resizable. Other Window Features The flag...
Modifying the Default Skin - Archive of obsolete content
the look of a window without changing its functionality. Firefox provides a skin by default, and you may download others. The XUL for any skins is the same, however the style sheets and images used are different. For a simple personalized look to a Firefox window, you can easily change the style sheets associated with it. Larger changes can be done by creating an entirely new skin. Firefox has a
Theme Manager for changing the default skin. (Although the underlying code for Mozilla calls them skins and the user interface calls them
themes, they're both referring to the same thing). A skin is described using CSS, allowing you to define the colors, borders and images used to draw elements. The file classic.jar contains the skin definitions. The global directory within this archive contains the m...
Progress Meters - Archive of obsolete content
peration will take. The progress meter will fill up and, once full, the operation should be finished. This can be used for the download file dialog as the size of the file is known. Indeterminate progress meters are used when you do not know the length of time of an operation. The progress meter will have an animation such as a spinning barber pole or a sliding box, depending on the platform and
theme used. Determinate progress meter: Indeterminate progress meter: The progress meter has the following syntax: <html:progress id="identifier" mode="determined" value="50" max="100"/> The attributes are as follows: id The unique identifer of the progress meter mode The type of the progress meter. If this is set to determined, the progress meter is a determinate progress...
Scrolling Menus - Archive of obsolete content
at once. Mozilla will provide a scrolling mechanism that will allow you to scroll through the items. If the available space is too small, arrows will appear on each end of the menu. If you move the mouse over the arrows, the menu will scroll up and down. If the available space is large enough, the arrows will not appear. Note that the exact behavior of the scrolling will depend on the current
theme. This behavior is automatic. You do not have to do anything in order to get scrolling menus. It will apply to menus on menubars, in popups or menulists. It is implemented using an arrowscrollbox element. This element can be used to create a scrolling box with arrows. The arrowscrollbox can be used anywhere a regular box can be used. You don't have to use it in menus. It is always a vertical box a...
Tabboxes - Archive of obsolete content
bpanels element will have no effect, since the tabbed pages are layered on top of each other. You can place the tabs on the right or bottom side by moving the tabs element to after the tabpanels element in your code. Alternatively, you could set the dir attribute to reverse on the tabbox. However, you should probably leave the tabs on top, otherwise they might not look very good under particular
themes. Adding Tabs to our Find Files Dialog Let's add a second panel to the find files dialog. We'll create an Options tab (and select it by default) that will contain some options for searching. This may not be the best interface for doing this, but we'll use it to demonstrate tabs. The label across the top and the search criteria box will need to go on the first tab. We'll add some options on the...
button - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
caption - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
checkbox - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
description - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
dialogheader - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
listcell - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
menuitem - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
menulist - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
menuseparator - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
radio - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
separator - Archive of obsolete content
eAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Style classes The following classes may be used to style the element. These classes should be used instead of changing the style of the element directly since they will fit more naturally with the user's selected
theme. groove A grooved separator. groove-thin A thin grooved separator. thin A thinner separator, which is usually 0.5 ems. Related Elements spacer, splitter, menuseparator, toolbarseparator, treeseparator. ...
splitter - Archive of obsolete content
eAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Style classes The following classes may be used to style the element. These classes should be used instead of changing the style of the element directly since they will fit more naturally with the user's selected
theme. tree-splitter This splitter is intended to be used in tree columns (in-between treecol elements). The splitter will be drawn with no width so that it isn't visible, however, the columns may still be resized. <tree id="tree1" flex="1" height="300" enableColumnDrag="true"> <treecols> <treecol id="name" label="Name" flex="1"/> <splitter class="tree-splitter"/> <treecol id="id" l...
textbox - Archive of obsolete content
eAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Style classes The following classes may be used to style the element. These classes should be used instead of changing the style of the element directly since they will fit more naturally with the user's selected
theme. plain This class causes the element to be displayed with no border or margin. Notes The maxlength attribute does not work when in multiline mode. A workaround using JavaScript and the onkeypress event handler as shown in abstract below may be your solution. The XUL script: <textbox id="pnNote" multiline="true" rows="2" cols="70" onkeypress="return pnCountNoteChars(event);"/> The Javas...
toolbarbutton - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
toolbarseparator - Archive of obsolete content
<< XUL Reference home [ Examples | Attributes | Properties | Methods | Related ] Creates a separator between groups of toolbar items. It is functionally equivalent to a normal separator but some
themes may apply a different appearance. Properties accessibleType Examples <toolbox> <toolbar> <toolbarbutton label="Button 1"/> <toolbarseparator /> <toolbarbutton label="Button 2"/> </toolbar> </toolbox> Attributes Inherited from XUL element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observe...
tooltip - Archive of obsolete content
ill be cropped on its right side. center The text will be cropped in the middle, showing both the start and end of the text normally. none The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment. Depending on the platform and
theme being used, some elements will have set a maximum width so they will always appear cropped. If you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none: ...
wizard - Archive of obsolete content
eral pages. This element provides the header and buttons along the bottom, and also handles navigation between the pages. Each page should be constructed using a wizardpage. The pages are displayed in the order that they are placed in the wizard, unless you use the next and pageid attributes on the pages to change the sequence. The wizard will rendered in a manner suitable for the user's selected
theme and platform. In newer versions of Mozilla, a statusbar may be placed directly inside the wizard element which will be shared among all pages. More information is available in the XUL tutorial. Attributes firstpage, lastpage, pagestep, title, windowtype Properties canAdvance, canRewind, currentPage, onFirstPage, onLastPage, pageCount, pageIndex, pageStep, title, wizardPages Methods ...
XUL Application Packaging - Archive of obsolete content
ault value is any XULRunner less than XULRunner 2 Example: MaxVersion=1.8.0.* The [XRE] section The XRE section specifies various features of XULRunner startup that can be enabled EnableExtensionManager Specifies whether to enable extensions and extension management. Legal values are 1 and 0. OPTIONAL - default is 0 Note: This option does not add menu items that make the extension/
theme manager available in the UI; that is the responsibility of the application author. Example: EnableExtensionManager=1 EnableProfileMigrator Specifies whether, when the application is launched for the first time and there are no profiles, to enable profile migration code through the nsIProfileMigrator interface. Legal values are 1 and 0. OPTIONAL - default is 0 Note: The application a...
Mozilla.dev.apps.firefox-2006-09-29 - Archive of obsolete content
nning the Bon Echo 20060921 nightly build will be offered the chance to upgrade to a "new version"' Firefox Start up Performance Boris Zbarsky recently performed some profiling of Firefox's start up - these are some of the details Discussions Problem Handling dmg Files on Mac Discussion about why sometimes dmg files are not mounted correctly after they are downloaded. Binding tab bar to new
theme Discussion about how to bind a new
theme to a tab bar without losing its original binding. The Distributor University students working on Cache Distribution project - looking for help for how to tap the http requests. There have been no responses so far. Can't view Keith Olbermann Videos A user inability to launch videos, worked fine for others, ended up being a Flash version problem. Firefox ...
Mozilla.dev.apps.firefox-2006-10-06 - Archive of obsolete content
Summary: mozilla.dev.apps.firefox - September 30 - October 6, 2006 Announcements Vista Compatibility Lab Mike Schroepfer announced the current work being done testing mozilla products with Vista. A wiki and IRC channel have been created to track their progress. Discussions Firefox trunk and rc1 slowdown using tabs Discussion regarding certain
theme components (specifically alpha-transparency) creating a high CPU load on OS/2. Title case capitalization rules in Firefox Discussion regarding rules for capitalizing the first letter of Firefox menu items in the FF UI. Engineering Student Project - Industry Coach Paul Betts from Ohio State University is looking for someone from Mozilla to be his "Industry Coach" for Engineering 494 - How Great Ideas Turn into Great Products. Mozilla...
2006-09-29 - Archive of obsolete content
nning the Bon Echo 20060921 nightly build will be offered the chance to upgrade to a "new version"' Firefox Start up Performance Boris Zbarsky recently performed some profiling of Firefox's start up - these are some of the details Discussions Problem Handling dmg Files on Mac Discussion about why sometimes dmg files are not mounted correctly after they are downloaded. Binding tab bar to new
theme Discussion about how to bind a new
theme to a tab bar without losing its original binding. The Distributor University students working on Cache Distribution project - looking for help for how to tap the http requests. There have been no responses so far. Can't view Keith Olbermann Videos A user inability to launch videos, worked fine for others, ended up being a Flash version problem. Firefox ...
2006-10-06 - Archive of obsolete content
Summary: mozilla.dev.apps.firefox - September 30 - October 6, 2006 Announcements Vista Compatibility Lab Mike Schroepfer announced the current work being done testing mozilla products with Vista. A wiki and IRC channel have been created to track their progress. Discussions Firefox trunk and rc1 slowdown using tabs Discussion regarding certain
theme components (specifically alpha-transparency) creating a high CPU load on OS/2. Title case capitalization rules in Firefox Discussion regarding rules for capitalizing the first letter of Firefox menu items in the FF UI. Engineering Student Project - Industry Coach Paul Betts from Ohio State University is looking for someone from Mozilla to be his "Industry Coach" for Engineering 494 - How Great Ideas Turn into Great Products. Mozilla...
2006-10-13 - Archive of obsolete content
way to recover the toolbars from popup windows that hide it A suggestion for a way to recover toolbars from a popup window that disables it. User suggests 3 ways, and suggests a default. (No responses as of yet) Selected Tab looks too close to unselected tab Discussion about how to change the colour of a selected tab and an unselected tab. It's suggested that its a OS problem in the desktop
theme, as opposed to problem with Firefox. nsAppRunner.o compile error: SOME_CONST not declared in scope Compile error while compiling first build. User was conservative on what libraries they used, but now they have a compile error and can't make sense of it. No responses as of yet. Firefox browser problem: width:30ex does not respect font Discussion about a font rendering problem with Firefox...
2006-10-20 - Archive of obsolete content
ities for RC3 has been completed. There are a few concerns with the software updates, and a decision is required on this before a "Go" for RC3 release can be given. Announced by Tim on Friday October 13, 2006. Help required designing new Home for Quality.Mozilla.Org - Talented Web Designers and/or Artists interested in helping the design for Quality.Mozilla.Org please read this posting. If your
theme is chosen you will be placed on the hall of fame and will receive a gift from Mozilla. Posted by Jay Patel on October 18th, 2006. Discussions None for this week Meetings Upcoming Firefox Test Day - Testing will be emphasized on AJAX/Web 2.0, DHTML, and Plugin heavy sites! Meet in IRC chat room #testday on Friday October 20, 2006 7am-5pm Pacific Time. Posted by Jay Patel on October 18th, 2006.
Shipping a plugin as a Toolkit bundle - Archive of obsolete content
that once the plugin is installed, it might be difficult for users to upgrade, uninstall, or disable the plugin. As of Firefox 3 (and any Gecko 1.9 based application) the use of install.js scripts is no longer supported and plugins must either be shipped as an executable installer or in a bundle as described here. Bundle structure Toolkit bundles can be used for all add-ons including extensions,
themes and plugins. Plugin packages should only need to package a small set of files in the following structure in the xpi file: install.rdf plugins/ pluginlib.dll plugintypes.xpt The install.rdf file contains an install manifest that describes the plugin to the user. The library and scripting interfaces are held in the plugins directory. Platform-specific files Gecko 1.9.2 (Firefox 3.6) and e...
Creating a Skin for Firefox - Archive of obsolete content
ge, but you can change the look of the right click menu (Make it blue with pink polka dots, for example). If you want to change the functionality of Firefox, you'll have to look into modifying the chrome, which is beyond the scope of this document. Contents Getting Started Original Document Information Author(s): Neil Marshall and Tucker Lee Other Contributors: Brent Marshall, CDN (http://
themes.mozdev.org), JP Martin, Boris Zbarsky, Asa Dotzler, WeSaySo, David James, Dan Mauch, Anders Conbere, Tim Regula (http://www.igraphics.nn.cx) Copyright Information: Copyright 2002-2003 Neil Marshall, permission given to MDC to migrate into the wiki April 2005 via email. Original Location: http://www.eightlines.com/neil/mozskin ...
:-moz-system-metric(images-in-menus) - Archive of obsolete content
The :-moz-system-metric(images-in-menus) CSS pseudo-class matches an element if the computer's user interface supports images in menus. This selector is intended for use mainly by
theme developers. Note: Since Firefox 58, this pseudo-class is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. ...
:-moz-system-metric(scrollbar-end-backward) - Archive of obsolete content
The :-moz-system-metric(scrollbar-end-backward) CSS pseudo-class will match an element if the computer's user interface includes a backward arrow button at the end of scrollbars. This selector is intended for use mainly by
theme developers. Note: Since Firefox 58, this pseudo-class is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Specifications Not part of any specification. ...
:-moz-system-metric(scrollbar-end-forward) - Archive of obsolete content
The :-moz-system-metric(scrollbar-end-forward) CSS pseudo-class will match an element if the computer's user interface includes a forward arrow button at the end of scrollbars. This selector is intended for use mainly by
theme developers. Note: Since Firefox 58, this pseudo-class is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Specifications Not part of any specification. ...
:-moz-system-metric(scrollbar-start-backward) - Archive of obsolete content
The :-moz-system-metric(scrollbar-start-backward) CSS pseudo-class will match an element if the computer's user interface includes a backward arrow button at the start of scrollbars. This selector is intended for use mainly by
theme developers. Note: Since Firefox 58, this pseudo-class is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Specifications Not part of any specification. ...
:-moz-system-metric(scrollbar-start-forward) - Archive of obsolete content
The :-moz-system-metric(scrollbar-start-forward) CSS pseudo-class will match an element if the computer's user interface includes a forward arrow button at the start of scrollbars. This selector is intended for use mainly by
theme developers. Note: Since Firefox 58, this pseudo-class is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Specifications Not part of any specification. ...
-moz-maemo-classic - Archive of obsolete content
The -moz-maemo-classic Gecko-only CSS media feature can be used to apply styles based on whether the user agent is using the original Maemo
theme. Syntax <integer> If the user agent is using Maemo with the original
theme, this is 1. If it's using the newer Fremantle
theme, this is 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-windows-classic - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the user is using Windows un
themed (in classic mode instead of using ux
theme), this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-windows-glass - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the user is using Windows Glass
theme, this is 1; otherwise it's 0. Note that this only exists for Windows 7 and earlier. Media: media/visual Accepts min/max prefixes: no ...
The Business Benefits of Web Standards - Archive of obsolete content
HTML documents permits a complete change of presentation for all these documents in a snap. Strict HTML (as opposed to the often-used transitional HTML markup), forces the designer not to use presentation tags in the HTML documents, naturally enforcing the separation of content from presentation. By locating all the style and design issues in one document - the style sheet - whole sites can be re
themed in one go. The blogging community are particularly dynamic in this respect where on many platforms including WordPress, TextPattern and Habari, the site
theme is a complete and discrete entity in its own right. Improved User Experience: Less Bandwidth and Fast Loads HTML code is often much more compact (therefore easier to read and maintain) when used in conjunction with CSS. According to vari...
Community - Extensions
If you know of useful mailing lists, newsgroups, forums, or other communities related to extension development, please link to them here. ...
Examples - Game development
rom 1979. Star Citadel A new take on Star Castle, Cinematronics' classic 1980 arcade game, built with canvas 2D. Classic Platformer Canvas 2D game based on `Visual-ts game engine` - physics based on Matter.js Commercial games Oort Online A MMO exploration, building, and battle game (currently in development.) A Wizard's Lizard Top down Zelda-esque exploration/RPG. QbQbQb A sci-fi
themed arcade puzzle game. Bullet Force 3D multiplayer first-person shooter. Elliot Quest 8-bit graphic retro adventure game. RPG MO Isometric MMORPG with similarities to RuneScape Classic and Ultima. Katan.io HTML5 and canvas implementation of Settlers of Catan. Pyramid Solitaire Ancient Egypt Pyramid solitaire app ported to WebAssembly with Emscripten Assorted demos WaveGL We...
Game promotion - Game development
od game for a competition and win some prizes in the process your game will automatically be promoted by the organizers and other attendees. You'll be rich and famous, or so they say. Many great games get started as a quick, sloppy demo submitted to a competition. If both the idea and the execution are good enough, you will succeed. Plus competitions generally require games to follow a mandatory
theme, so you can get creative around a
theme if you are stuck for ideas. Website and blog You should definitely create your own website containing all the information about your games, so people can see what you've worked on. The more information you can include the better -- you should include screenshots, description, trailer, press kit, requirements, available platforms, support details and more.
Implementing controls using the Gamepad API - Game development
various different button layouts that more or less work across browser implementations. The code discussed in this article was tested with a few gamepads, but the author's favorite configuration is a wireless Xbox 360 controller and the Firefox browser on Mac OS X. Case Study: Hungry Fridge The GitHub Game Off II competition ran in November 2013 and Enclave Games decided to take part in it. The
theme for the competition was "change", so they submitted a game where you have to feed the Hungry Fridge by tapping the healthy food (apples, carrots, lettuces) and avoid the "bad" food (beer, burgers, pizza.) A countdown changes the type of food the Fridge wants to eat every few seconds, so you have to be careful and act quickly. The second, hidden "change" implementation is the ability to transform...
Index - MDN Web Docs Glossary: Definitions of Web-related terms
(which would otherwise be interpreted as HTML code), and invisible characters (like non-breaking spaces). You can also use them in place of other characters that are difficult to type with a standard keyboard. 134 Entity header Glossary, WebMechanics An entity header is an HTTP header that can be used in an HTTP request or response, and describes the content of the body of
themessage. Headers like Content-Length, Content-Language, Content-Encoding are entities headers. 135 Event CodingScripting, Glossary Events are assets generated by DOM elements, which can be manipulated by a Javascript code. 136 Exception Beginner, CodingScripting, Glossary An exception is a condition that interrupts normal code execution. In JavaScript syntax...
Mozilla Firefox - MDN Web Docs Glossary: Definitions of Web-related terms
Mozilla Firefox is a free open-source browser whose development is overseen by the Mozilla Corporation. Firefox runs on Windows, OS X, Linux, and Android. First released in November 2004, Firefox is completely customizable with
themes, plug-ins, and add-ons. Firefox uses Gecko to render webpages, and implements both current and upcoming Web standards. Learn more General knowledge Mozilla Firefox official website Technical reference Firefox developer documentations on MDN ...
TLD - MDN Web Docs Glossary: Definitions of Web-related terms
level domains with three or more characters. unsponsored top-level domains Domains that operate directly under policies established by ICANN processes for the global Internet community, for example "com" and "edu". sponsored top-level domains (sTLD) These domains are proposed and sponsored by private organizations that decide whether an applicant is eligible to use the TLD, based on community
theme concepts. infrastructure top-level domain This group consists of one domain, the Address and Routing Parameter Area (ARPA). Learn more General knowledge TLD on Wikipedia List of top-level domains ...
HTML: A good basis for accessibility - Learn web development
understanding of HTML (see Introduction to HTML), and an understanding of what accessibility is. Objective: To gain familiarity with the features of HTML that have accessibility benefits and how to use them appropriately in your web documents. HTML and accessibility As you learn more about HTML -- read more resources, look at more examples, etc. -- you'll keep seeing a common
theme: the importance of using semantic HTML (sometimes called POSH, or Plain Old Semantic HTML). This means using the correct HTML elements for their intended purpose as much as possible. You might wonder why this is so important. After all, you can use a combination of CSS and JavaScript to make just about any HTML element behave in whatever way you want. For example, a control button to play a vide...
HTML: A good basis for accessibility - Learn web development
understanding of HTML (see Introduction to HTML), and an understanding of what accessibility is. Objective: To gain familiarity with the features of HTML that have accessibility benefits and how to use them appropriately in your web documents. HTML and accessibility As you learn more about HTML -- read more resources, look at more examples, etc. -- you'll keep seeing a common
theme: the importance of using semantic HTML (sometimes called POSH, or Plain Old Semantic HTML). This means using the correct HTML elements for their intended purpose as much as possible. You might wonder why this is so important. After all, you can use a combination of CSS and JavaScript to make just about any HTML element behave in whatever way you want. For example, a control button to play a vide...
Organizing your CSS - Learn web development
s something like a list item or a title that is tied to the block it is in. A modifier is a flag on a block or element that changes the styling or behavior. You will be able to recognise code that uses BEM due to the extensive use of dashes and underscores in the CSS classes. For example, look at the classes applied to this HTML from the page about BEM Naming conventions: <form class="form form--
theme-xmas form--simple"> <input class="form__input" type="text" /> <input class="form__submit form__submit--disabled" type="submit" /> </form> The additional classes are similar to those used in the OOCSS example, however they use the strict naming conventions of BEM. BEM is widely used in larger web projects and many people write their CSS in this way. It is likely that you will come ac...
Advanced form styling - Learn web development
dardizes form markup, styling it with CSS. It also offers a few additional features when used with jQuery, but that's optional. Formalize is an extension to common JavaScript frameworks (such as jQuery, Dojo, YUI, etc.) that helps to normalize and customize your forms. Niceforms is a standalone JavaScript method that provides complete customization of web forms. You can use some of the built in
themes, or create your own. The following libraries aren't just about forms, but they have very interesting features for dealing with HTML forms: jQuery UI offers customizable widgets such as date pickers (with special attention given to accessibility). Twitter Bootstrap can help normalize your forms. WebShim is a huge tool that can help you deal with browser HTML5 support. The web forms part ca...
What will your website look like? - Learn web development
raphic designers put together the visuals of the website. UX designers have a somewhat more abstract role in addressing how users will experience and interact with the website. Choosing your assets At this point, it's good to start putting together the content that will eventually appear on your webpage. Text You should still have your paragraphs and title from earlier. Keep these close by.
Theme color To choose a color, go to the Color Picker and find a color you like. When you click on a color, you'll see a strange six-character code like #660066. That's called a hex code (short for hexadecimal), and represents your color. Copy the code down somewhere safe for now. Images To choose an image, go to Google Images and search for something suitable. When you find the image you want,...
Introduction to web APIs - Learn web development
lity into your app, sending SMS/MMS from your apps, and more. The Mastodon API enables you to manipulate features of the Mastodon social network programmatically. Note: You can find information on a lot more 3rd party APIs at the Programmable Web API directory. How do APIs work? Different JavaScript APIs work in slightly different ways, but generally, they have common features and similar
themes to how they work. They are based on objects Your code interacts with APIs using one or more JavaScript objects, which serve as containers for the data the API uses (contained in object properties), and the functionality the API makes available (contained in object methods). Note: If you are not already familiar with how objects work, you should go back and work through our JavaScript objects...
Working with Svelte stores - Learn web development
3.2 Dealing with our app state We have already seen how our components can communicate with each other using props, two-way data binding, and events. In all these cases we were dealing with communication between parent and child components. But not all application state belongs inside your application's component hierarchy. For example, information about the logged in user, or whether the dark
theme is selected or not. Sometimes, your app state will need to be accessed by multiple components that are not hierarchically related, or by a regular JavaScript module. Moreover, when your app becomes complicated and your component hierarchy gets complex, it might become too difficult for components to relay data between each other. In that case, moving to a global data store might be a good optio...
Software accessibility: Where are we today?
Additionally, text-to-speech is used by those who cannot speak, in place of their own voice. Finally, this technology could be useful to mainstream users, on portable information appliances, or to access information when the eyes are busy elsewhere. Magnification Enlarges the screen's contents: For those with low vision, it may suffice to use a larger font, a built-in high contrast
theme, or even just an an extra large screen. Otherwise, screen magnification programs may be used, which allow zooming in to portions of the screen, while following the mouse or the current focus. Screen magnifiers also have some built-in text-to-speech and the ability to filter text and images through various color palettes, such as black on yellow for high contrast, or green on blue for low contrast...
Obsolete
This page contains
theme documents and resources that we don't expect will ever be updated, but which we're keeping for the time being as potential source material for updated docs. Creating a Skin for Firefox UUID contents.rdf install.rdf
Theme changes in Firefox 2
Theme changes in Firefox 3
Theme changes in Firefox 3.5
Theme changes in Firefox 4 Building a
Theme Common
Theme Issues and Their Solutions Making Sure Your
Theme Works with RTL Locales Creating a Skin for SeaMonkey 2 DOM Inspector InspectorWidget Force RTL Yet Another
Theme Tutorial ...
Add-ons
ns for Firefox and give your users simple, yet powerful ways to customize their browsing experience. You'll find: Overview of the Firefox extension features Tools and processes for developing and testing How to publish your extension on addons.mozilla.org or distribute it yourself How to manage your published extension An enterprise guide for developing and using extensions How to develop
themes for Firefox Firefox developer communities Extensions for Firefox for Android In 2020, Mozilla will release a new Firefox for Android experience. This new, high-performance browser for Android has been rebuilt from the ground up using GeckoView, Mozilla's mobile browser engine. We are currently building support for the WebExtensions API on GeckoView. Migrate an existing extension If you mai...
mozbrowserloadend
cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A custom object. detail The detail property returns an anonymous JavaScript object with the following properties: backgroundColor A DOMString representing the main background color of the browser <iframe> content, expressed as an RGB value. Can be used to make the
theme of the surrounding UI complement the
theme of the currently loaded content, for example. Example In this example the mozbrowserloadstart and mozbrowserloadend events are used to change the icon shown on the stop/reload button between stop (x) and reload (R), as appropriate. In addition, the background of the controls UI bar is changed to the background color of the site that has just loaded, t...
mozbrowsermetachange
y Boolean Whether the event normally bubbles or not. cancelable Read only Boolean Whether the event is cancellable or not. details Read only Object A custom object. details The details property returns an anonymous JavaScript object with the following properties: name A DOMString representing the <meta> name attribute value. This can be viewmode,
theme-color,
theme-group, or application-name. content A DOMString representing the <meta> content attribute value, i.e. the content of the meta tag. type A DOMString representing the type of meta change that this event object represents. This can be added, changed, removed, or undefined. lang Optional A DOMString representing the <meta> name attribute value, if included. If not included, the val...
Addon
ting to be performed for this add-on. Operations are generally deferred when a restart is necessary to accomplish them. permissions Read only integer A bitfield holding all the the operations that can be performed on this add-on. Operations my be restricted based on system policies (e.g., the system administrator may not allow certain add-ons to be uninstalled), add-on type (e.g.,
themes may not be disabled), or add-on state (e.g., an incompatible add-on cannot be enabled). providesUpdatesSecurely Read only boolean True if the add-on has a secure means of updating or cannot be updated at all. scope Read only integer Indicates what scope the add-on is installed in, per profile, user, system, or application. type Read only string The...
AddonManager
to the method. The callbacks will be called just once but that may be before or after the method returns. One of the forces of the AddonManager is that it deals with any kind (type) of add-on in a generic manner. To do so many methods of the AddonManager take the add-on types as parameters. The existing add-on types are defined in XPIProvider.jsm and are, at this time, the following: extension,
theme, locale, multipackage, dictionary and experiment. To import the AddonManager object in the Add-on SDK, use: const { AddonManager } = require("resource://gre/modules/AddonManager.jsm"); To import it in a normal bootstrapped extension or similar, use: Cu.import("resource://gre/modules/AddonManager.jsm"); Method Overview Promise? getInstallForURL(in string url, in InstallCallback? ca...
AddonType
ame for the type. uiPriority integer A number used to determine the order of types displayed in the user interface. The lower the number the higher in the list the type will appear. Built-in Values: Value Category 2000 Locale 4000 Extension 5000
Theme 6000 Plugin viewType integer The type of UI to use to display this type of add-on in the UI. If undefined the type will not appear in the UI. flags integer Additional behavior flags for the type. ...
Generating GUIDs
Add-ons can (and should) be identified with IDs of the form extensionname@organization.tld since Firefox 1.5. Warning: If you just want an ID for your add-on, generating a GUID is almost definitely not what you want to do. ...
nsIInstallLocation
1.0 66 Introduced Gecko 1.8 Obsolete Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Note: While this API still works, Firefox 4 no longer extracts XPIs by default, so this will now point to the XPI file instead of to the directory. Any nsIFile operations that assume a directory and plain files will fail in Firefox 4, unless you specify <em:unpack>. ...
nsITreeBoxObject
ginUpdateBatch() Notify the tree that the view is about to perform a batch update, that is, add, remove or invalidate several rows at once. This must be followed by calling endUpdateBatch(), otherwise the tree will get out of sync. void beginUpdateBatch(); endUpdateBatch() Notify the tree that the view has completed a batch update. void endUpdateBatch(); clearStyleAndImageCaches() Called on a
theme switch to flush out the tree's style and image caches. void clearStyleAndImageCaches(); Other references Tree Widget Changes (applies to Gecko 1.8.0 and later) XUL Tutorial:Tree Box Sorting and filtering a custom tree view XUL Tutorial:Tree View Details nsITreeView ...
nsIUpdateItem
ants Item type constants Constants representing types of update checks. Constants that callers can use to indicate the reason for an add-on update check. Internal code uses other constants in nsExtensionManager.js.in. Constant Gecko version Description 1.8 1.8.1 1.9 1.9.1 1.9.2 TYPE_APP 0x01 TYPE_EXTENSION 0x02 TYPE_
THEME 0x04 TYPE_LOCALE 0x08 TYPE_MULTI_XPI 0x20 TYPE_ADDON TYPE_EXTENSION + TYPE_
THEME + TYPE_LOCALE + TYPE_PLUGIN TYPE_EXTENSION + TYPE_
THEME + TYPE_LOCALE TYPE_ANY TYPE_APP + TYPE_ADDON 0xff TYPE_PLUGIN 0x10 Methods init() Initializes the object. void init( in AString id, in AString v...
XPCOM
ial for making a simple JavaScript or C++ component (implementing the nsISimple interface). Here is how to make the same component in Python using PyXPCOM.Fun With XBL and XPConnectGenerating GUIDsGUIDs are used in Mozilla programming for identifying several types of entities, including XPCOM Interfaces (this type of GUIDs is callled IID), components (CID), and legacy add-ons--like extensions and
themes--that were created prior to Firefox 1.5. Add-ons can (and should) be identified with IDs of the form extensionname@organization.tld since Firefox 1.5.Generic factoryMost XPCOM factories can be very simple. Rick Potts wrote a templated-based generic factory (nsFactory<t>) that simplifies the factory creation process that just requires writing a CreateInstance() method. The new nsIGenericFactory i...
DB Views (message lists)
reference) are. These are the values filed in nsIDBFolderInfo to remember the view settings for the folder. View Interaction with nsITreeView The nsITreeView methods in nsMsgDBView.cpp control the appearance of the thread pane. Properties These nsMsgDBView methods set properties, nsITreeView.getRowProperties (implementation) nsITreeView.getCellPropreties (implementation) Theming The
theme uses these properties to style the thread pane. See the tutorial for information about styling trees using css, and the Thunderbird source for some example css. Text nsITreeView.getCellText (implementation) Tells the nsITreeView what text to display for a particular row and text column. ...
Building a Thunderbird extension 6: Adding JavaScript
Warning: This content is for older versions of Thunderbird. Much of it may no longer be relevant. See developer.thunderbird.net for newer information. In this step we will create a small piece of JavaScript code that inserts the current date into our statusbar widget. The statusbar is usually displayed at the bottom of the Thunderbird window. Depending on the installed
theme the result will look something like this: Modify XUL elements with JavaScript Save the following JavaScript code into the content/ folder next to your myhelloworld.xul file and name it overlay.js. window.addEventListener("load", function(e) { startup(); }, false); window.setInterval( function() { startup(); }, 60000); //update date every minute function startup() { var myPanel = document.getElementById...
Thunderbird extensions
Community / Communications Thunderbird specific : Add-ons section on developer.thunderbird.net Thunderbird communication channels Add-on Developers forum/mailing list #maildev IRC channel More general : MozillaZine Extension Development forum General developer channels Related Topics XUL, JavaScript, XPCOM,
Themes, Developing Mozilla Categori ...
XPI
An XPI contains installation instructions (install.js or install.rdf) as well as the actual software to install, which is often itself packaged as a JAR file. ...
Mozilla
changes only apply to XUL extensions and XUL applications. They do not apply to web applications. XPI Cross-Platform Installer Module (XPI) is a ZIP file used to install packages, utilizing the XPInstall technology. XPI modules (so called " Bundles") are employed to install a wide variety of software, including Plugins, Extensions,
Themes, and Thunderbird dictionaries. Zombie compartments This page tells you how to detect and avoid zombie compartments, which are a particular kind of memory leak. They can be caused by bugs in Firefox itself, or by bugs in Firefox add-ons. ...
Introduction to DOM Inspector - Firefox Developer Tools
orner of the the object pane. In order to find out what the actual name of the file is being used to provide the search go icon, you can select the CSS Rules viewer from this menu and see the various selectors and rules that have been applied. The rule that applies the search icon to the element uses a class simple selector and uses a list-style-image property to point to a file in the current
theme. The list of viewers available from the viewer menu gives you some idea about how extensive the DOM Inspector's inspecting capabilities are. The following descriptions provide an overview of what these viewers are about: The DOM Nodes viewer shows attributes of nodes that can take them, or the text content of text nodes, comments, and processing instructions. The attributes and text contents ma...
Settings - Firefox Developer Tools
n icon in the Toolbox's toolbar. As of Firefox 62, if the option to "Select an iframe as the currently targeted document" is checked, the icon will appear in the toolbar while the Settings tab is displayed, even if the current page doesn't include any iframes. Note that in Firefox 52 we removed the checkbox to toggle the "Select element" button. The "Select element" button is now always shown.
Themes This enables you to choose one of two
themes. There's a light
theme, which is the default: A dark
theme: Common preferences Settings that apply to more than one tool. There's just one of these: Enable persistent logs A setting to control whether or not the Web Console and Network Monitor clear their output when you navigate to a new page. If Common Preferences is...
Tips - Firefox Developer Tools
General Screenshots: Entire page: Click the screenshot button (; needs to be enabled first). Viewport: Click the screenshot button () in Responsive Design Mode. Node: Right-click a node within the Inspector and click "Screenshot Node". Via Web Console command: screenshot <filename.png> --fullpage. Settings: Choose between a light and a dark
theme for the developer tools. Change the keyboard bindings to Vim, Emacs or Sublime Text if you're used to different shortcuts. Check or uncheck the different tools to enable or disable them. (There are more than the default tools!) Page Inspector In the markup view: Press H with a node selected to hide/show it. Press Backspace or Del with a node selected to delete it. Alt + click on a node to expand or collapse it and all its descend...
compareVersion - Web APIs
In particular plugin developers should see how to package a plugin as an extension. compareVersion Compares the version of a file or package with the version of an existing file or package. ...
getVersion - Web APIs
In particular plugin developers should see how to package a plugin as an extension. getVersion Returns an object representing the version number from the Client Version Registry for the specified component. It is used in both trigger scripts and installation scripts. ...
installChrome - Web APIs
and Mozilla. Method of InstallTrigger object Syntax int installChrome( TYPE, url, name ) Parameters The installChrome method has the following parameters: TYPE TYPE can be InstallTrigger.SKIN or InstallTrigger.LOCALE. url url is a string containing a full or relative URL to download name name is displayed in the dialog, but is also used to *select* the
theme somust match exactly the name in the internal manifest.rdf file. Returns A boolean value indicating False if the software install feature has been turned off, and True if it's on. Note that this return value does not indicate anything about the success of the installation. Description installChrome is a special method for installing new chrome in Netscape 6 and Mozilla. The method performs a sim...
Window.open() - Web APIs
e browser window. The new window cannot be initially positioned offscreen. If the windowFeatures parameter is non-empty and if no position features are defined, then the left and top coordinates of the new window dimension will be 22 pixels from where the most recently rendered window was. An offset is universally implemented by browser manufacturers (it is 29 pixels in IE6 SP2 with the default
theme) and its purpose is to help users to notice new windows opening. If the most recently used window was maximized, then there is no offset: the new window will be maximized as well. Size If only one of them is specified, the behavior is implementation-dependent, and web author should not rely on it. width or innerWidth Specifies the width of the content area, viewing area of the new seconda...
Using the aria-labelledby attribute - Accessibility
al authority and accompanied by excommunication</dd> <dd role="definition" aria-labelledby="anathema">a vigorous denunciation : cursor</dd> <dt id="homily">homily</dt> <dd role="definition" aria-labelledby="homily">a usually short sermon</dd> <dd role="definition" aria-labelledby="homily">a lecture or discourse on or of a moral
theme</dd> </dl> Example 7: Menus In the example below, a popup menu is associated with its label using the aria-labelledby attribute: <div role="menubar"> <div role="menuitem" aria-haspopup="true" id="fileMenu">File</div> <div role="menu" aria-labelledby="fileMenu"> <div role="menuitem">Open</div> <div role="menuitem">Save</div> <div role="menuitem">Save as ...</div...
:-moz-broken - CSS: Cascading Style Sheets
The :-moz-broken CSS pseudo-class is a Mozilla extension that matches elements representing broken image links. Note: This selector is mainly intended to be used by
theme developers. Syntax :-moz-broken Examples HTML <img src="broken.jpg" alt="This image is broken. :-("> CSS :-moz-broken { background: bisque; padding: 8px; } Result Specifications Not part of any standard. ...
:-moz-loading - CSS: Cascading Style Sheets
The :-moz-loading CSS pseudo-class is a Mozilla extension that matches elements that can't be displayed because they have not started loading, such as images that haven't started to arrive yet. Note that images that are in the process of loading are not matched by this pseudo-class. Note: This selector is mainly intended to be used by
theme developers. Syntax :-moz-loading Examples Setting a background for images that are loading :-moz-loading { background-color: #aaa; background-image: url(loading-animation.gif) center no-repeat; } Specifications Not part of any standard. ...
:-moz-locale-dir(ltr) - CSS: Cascading Style Sheets
The :-moz-locale-dir(ltr) CSS pseudo-class is a Mozilla extension that matches an element if the user interface is being displayed left-to-right. This is determined by the preference intl.uidirection.locale (where locale is the current locale) being set to "ltr". Note: This selector is mainly used by extensions and
themes to adapt the user interface based on the user's locale. (This can vary from window to window, and even from tab to tab.) It also allows extensions to work even when they don't support the user's default locale, since they can support both left-to-right and right-to-left layouts regardless of locale specifics. This selector does not work properly from HTML; it always matches, regardless of whether the UI locale is left-to-right or right-to-left. Syntax :-moz-...
:-moz-locale-dir(rtl) - CSS: Cascading Style Sheets
The :-moz-locale-dir(rtl) CSS pseudo-class is a Mozilla extension that matches an element if the user interface is being displayed right-to-left. This is determined by the preference intl.uidirection.locale (where locale is the current locale) being set to "rtl". Note: This selector is mainly used by extensions and
themes to adapt the user interface based on the user's locale. (This can vary from window to window, and even from tab to tab.) It also allows extensions to work even when they don't support the user's default locale, since they can support both left-to-right and right-to-left layouts regardless of locale specifics. This selector does not work properly from HTML; it never matches, no matter whether the UI locale is left-to-right or right-to-left. Syntax :-moz-local...
:-moz-suppressed - CSS: Cascading Style Sheets
The :-moz-suppressed CSS pseudo-class is a Mozilla extension that matches elements representing images that were suppressed because loading images from the specified site has been blocked. Note: This selector is mainly intended to be used by
theme developers. Syntax :-moz-suppressed Examples Styling elements that have been blocked :-moz-suppressed { background: yellow; padding: 8px; } Specifications Not part of any standard. ...
:-moz-user-disabled - CSS: Cascading Style Sheets
The :-moz-user-disabled CSS pseudo-class is a Mozilla extension that matches elements representing images that were not loaded because images have been entirely disabled by the user's preferences. Note: This selector is mainly intended to be used by
theme developers. Syntax :-moz-user-disabled Examples Styling user-disabled elements :-moz-user-disabled { background-color: lightgray; padding: 8px; } Specifications Not part of any standard. ...
Color picker tool - CSS: Cascading Style Sheets
width: 80%; height: 80%; border: 2px dashed #FFF; border-radius: 5px; background: url('https://mdn.mozillademos.org/files/6085/trash-can.png') no-repeat center; position: absolute; top: 10%; left: 10%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; transition: all 0.2s; } #delete[drag-state='enter'] { background-color: #999; } /** * Color
Theme */ #color-
theme { margin: 0 8px 0 0; border: 1px solid #EEE; display: inline-block; float: right; } #color-
theme .box { width: 80px; height: 92px; float: left; } /** * Color info box */ #color-info { width: 360px; float: left; } #color-info .title { width: 100%; padding: 15px; font-size: 18px; text-align: center; background-image: url('https://mdn.mozillademos.org/files/6071/...
Shorthand properties - CSS: Cascading Style Sheets
Shorthand properties are CSS properties that let you set the values of multiple other CSS properties simultaneously. Using a shorthand property, you can write more concise (and often more readable) style sheets, saving time and energy. The CSS specification defines shorthand properties to group the definition of common properties acting on the same
theme. For instance, the CSS background property is a shorthand property that's able to define the values of background-color, background-image, background-repeat, and background-position. Similarly, the most common font-related properties can be defined using the shorthand font, and the different margins around a box can be defined using the margin shorthand. Tricky edge cases Even if they are very convenient to use, there are a few edge cases t...
appearance (-moz-appearance, -webkit-appearance) - CSS: Cascading Style Sheets
The -moz-appearance and -webkit-appearance properties are non-standard versions of this propery, used (respectively) by Gecko (Firefox) and by WebKit-based (e.g., Safari) and Blink-based (e.g., Chrome, Opera) browsers to achieve the same thing. Note that Firefox and Edge also support -webkit-appearance, for compatibility reasons. The source for this interactive example is stored in a GitHub repository. ...
overflow - CSS: Cascading Style Sheets
Opera) browsers. Mozilla extensions -moz-scrollbars-none [1] Use overflow: hidden instead. -moz-scrollbars-horizontal [1] Use overflow-x: scroll and overflow-y: hidden, or overflow: hidden scroll instead. -moz-scrollbars-vertical [1] Use overflow-x: hidden and overflow-y: scroll, or overflow: scroll hidden instead. -moz-hidden-unscrollable Intended mainly for internal use and by
themes. Disables scrolling of XML root elements, <html>, and <body> with the keyboard's arrow keys and the mouse wheel. [1] As of Firefox 63, this feature is behind a feature preference setting. In about:config, set layout.css.overflow.moz-scrollbars.enabled to true Description Overflow options include clipping, showing scrollbars, or displaying the content flowing out of its container into the su...
HTML5 - Developer guides
ly. Multimedia: making video and audio first-class citizens in the Open Web. 2D/3D graphics and effects: allowing a much more diverse range of presentation options. Performance and integration: providing greater speed optimization and better usage of computer hardware. Device access: allowing for the usage of various input and output devices. Styling: letting authors write more sophisticated
themes. Semantics Sections and outlines in HTML5 A look at the new outlining and sectioning elements in HTML5: <section>, <article>, <nav>, <header>, <footer> and <aside>. Using HTML5 audio and video The <audio> and <video> elements embed and allow the manipulation of new multimedia content. Forms improvements A look at the constraint validation API, several new attributes, new values for t...
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
nput's placeholder text. It can be styled with a limited subset of CSS properties. ::placeholder { color: blue; } Only the subset of CSS properties that apply to the ::first-line pseudo-element can be used in a rule using ::placeholder in its selector. appearance The appearance property enables the displaying of (almost) any element as a platform-native style based on the operating system's
theme as well as the removal of any platform-native styling with the none value. You could make a <div> look like a radio button with div {appearance: radio;} or a radio look like a checkbox with [type="checkbox] {appearance: checkbox;}, but don't. Setting appearance: none removes platform native borders, but not functionality. caret-color A property specific to text entry-related elements is the C...
Standard metadata names - HTML: Hypertext Markup Language
. Otherwise, send no referrer. unsafe-URL Send the full URL (stripped of parameters) for same-origin or cross-origin requests. Notes: Dynamically inserting <meta name="referrer"> (with document.write() or appendChild()) makes the referrer behaviour unpredictable. When several conflicting policies are defined, the no-referrer policy is applied.
theme-color: indicates a suggested color that user agents should use to customize the display of the page or of the surrounding user interface. The content attribute contains a valid CSS <color>. Standard metadata names defined in other specifications The CSS Color Adjustment specification defines the following metadata name: color-scheme: specifies one or more color schemes with which the doc...
HTML documentation index - HTML: Hypertext Markup Language
ed by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>. 158 Standard metadata names Attribute, HTML, HTML document metadata, Reference, metadata The <meta> element can be used to provide document metadata in terms of name-value pairs, with the name attribute giving the metadata name, and the content attribute giving the value. 159
theme-color Attribute, HTML, HTML document metadata, Reference, metadata The
theme-color value for the name attribute of the <meta> element indicates a suggested color that user agents should use to customize the display of the page or of the surrounding user interface. If specified, the content attribute must contain a valid CSS <color>. 160 <meter>: The HTML Meter element Ele...
Using HTTP cookies - HTTP
ater requests to the same server. Typically, it's used to tell if two requests came from the same browser -- keeping a user logged-in, for example. It remembers stateful information for the stateless HTTP protocol. Cookies are mainly used for three purposes: Session management Logins, shopping carts, game scores, or anything else the server should remember Personalization User preferences,
themes, and other settings Tracking Recording and analyzing user behavior Cookies were once used for general client-side storage. While this was legitimate when they were the only way to store data on the client, it is now recommended to use modern storage APIs. Cookies are sent with every request, so they can worsen performance (especially for mobile data connections). Modern APIs for client stora...
Web app manifests
n comments? It is a JSON-formatted file, with one exception: it is allowed to contain "//"-style comments. Members Web manifests can contain the following keys. ...