Search completed in 1.24 seconds.
Simple Thunderbird build
Good internet connection for the initial source download. Build prerequisites Depending on your Operating System you will need to carry out a different process to prepare your machine. ...
... Good internet connection for the initial source download. Build prerequisites Depending on your Operating System you will need to carry out a different process to prepare your machine. ...
...es, that is C:\Program Files (x86)\Windows Kits\10\Include\10.0.nnnnn.0\shared, where nnnnn is the highest number present on the system. Note that the downloaded Outlook 2010 MAPI Header Files contain 18 fies, of which only 17 are needed. Do not copy MAPI.h, it is already in C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um\MAPI.h. As of April 2019, 10.0.17134.0 is needed to compile
Thunderbird. Assuming standard installation locations, copy these 17 files to C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\shared. 18/10/2010 16:11 7,334 MAPIAux.h 02/06/2009 17:02 7,938 MAPICode.h 02/06/2009 17:02 22,960 MAPIDbg.h 02/06/2009 17:02 84,644 MAPIDefS.h 02/06/2009 17:02 27,840 MAPIForm.h 02/06/2009 17:02 11...
...And 8 more matches
Thunderbird extensions
Building a
Thunderbird extension Step-by-step explanation on how to build an extension for
Thunderbird. The following documentation provides help for creating extensions for the
Thunderbird email client. There are similarities with Firefox extensions, but there are also differences that may confound the starting
Thunderbird developer. This documention series focuses on
Thunderbird. Need personalized help? See Community / Communications. Warning: This content is for older versions of
Thunderbird. Much of it may no longer be relevant. See developer.
thunderbird.net for newer information. Documentation Getting started with
Thunderbird A brave, young developer wants to develop an add-on for
Thunderbird. These links to help through this journey. St...
...ing: This content is for older versions of
Thunderbird. Much of it may no longer be relevant. See developer.
thunderbird.net for newer information. Documentation Getting started with
Thunderbird A brave, young developer wants to develop an add-on for
Thunderbird. These links to help through this journey. Start by reading the tutorial and learn how to build a
Thunderbird extension. Also see
Thunderbird 57-60 add-ons guide for changes introduced in
Thunderbird 60. Read about the main windows to learn about << thread pane >>, << preview pane >>, and << folder pane >>. ...
...hunderbird. These links to help through this journey. Start by reading the tutorial and learn how to build a
Thunderbird extension. Also see
Thunderbird 57-60 add-ons guide for changes introduced in
Thunderbird 60. Read about the main windows to learn about << thread pane >>, << preview pane >>, and << folder pane >>. Play with a demo add-on that exercises some more advanced
Thunderbird-specific features Want to do even more? Don't reinvent the wheel: steal from the
thunderbird-stdlib project (doc here). Functions for dealing with messages (delete, archive, change tags, etc.) are included. MailUtils.js. Haven't found what you need? Read the
Thunderbird how-tos; they contain many recipes for things extensions want to do. Still stuck? Ask in a community communicati...
...And 8 more matches
Thunderbird Configuration Files
Warning: The content of this article may be out of date. It was imported from mozilla.org. Config Editor Many of the tips and tricks mentioned on this site can be applied by using the built-in Config Editor. To access the Config Editor, go to Tools > Options or do
Thunderbird > Preferences. If you are on Mac OS X, and on Linux do Edit > Preferences on, select the Advanced options panel, click on the General tab, and click on Config Editor. ...
...ced options panel, click on the General tab, and click on Config Editor. This will display a list of used preferences, as well as a search bar at the top. Double-click on a preference to change its value. To do add a new preference, open the context menu (right-click) on any existing preference, go to the New menu, and select the type of preference. Some preferences may require that you restart
Thunderbird in order to take effect. Configuration Files Some tips and tricks require that you edit configuration files manually. There are three files you should know about: userChrome.css Used to change the appearance of the browser. userContent.css Used to change the appearance of web pages. user.js Used to change various preferences. All these files are plain text files you need to create in ...
...e the appearance of web pages. user.js Used to change various preferences. All these files are plain text files you need to create in your profile folder and can be edited using a standard text editor, such as Notepad on Windows and gedit or kate on Linux. ...
...And 7 more matches
Autoconfiguration in Thunderbird
Author: Ben Bucksch Please do not change this document without consulting the author
Thunderbird 3.1 and later (and 3.0 to some degree) includes mail account autoconfiguration functionality. The goal of autoconfiguration is to make it very easy for users to configure the connection of
Thunderbird to their email servers. In many cases, people should be able to download and install
Thunderbird, enter their real name, email address and password in the Account Setup Wizard and have a fully functioning mail client and get and send their mail as securely as possible. See also: for instructions for users, see Automatic Account Configuration on the
Thunderbird Knowledge Base. the configuration file description and definition the original project page on the Mozilla wiki for background, design...
...y functioning mail client and get and send their mail as securely as possible. See also: for instructions for users, see Automatic Account Configuration on the
Thunderbird Knowledge Base. the configuration file description and definition the original project page on the Mozilla wiki for background, design, implementation and project details This document describes how Autoconfiguration in
Thunderbird works, and what to do to allow mail servers to be autoconfigured. Mechanisms
Thunderbird gets the server settings via different means, each of which is intended for different cases: ISPDB The ISPDB is a central database, currently hosted by the
Thunderbird project, but free to use for any client. It contains settings for the world's largest ISPs. Most ISPs with a market share of more than ...
... Configuration server at ISP ISPs have the option to provide their configuration information themselves directly to users, by setting up a web server at autoconfig.<domain>, which simply returns a static XML file with the configuration, as described below. ...
...And 6 more matches
Thunderbird Binaries
Described below are three types of generally available
Thunderbird packages - Releases, Early Preview Releases, and Nightly Builds (including trunk development builds) - and their downloaded locations. Additionally, ad-hoc packages called try builds are made available on an as-needed basis to allow for testing of certain patches, and are typically announced in related bug reports. Releases
Thunderbird releases have been extensively tested and are made available for anyone to download and use it. ...
...eases, and Nightly Builds (including trunk development builds) - and their downloaded locations. Additionally, ad-hoc packages called try builds are made available on an as-needed basis to allow for testing of certain patches, and are typically announced in related bug reports. Releases
Thunderbird releases have been extensively tested and are made available for anyone to download and use it.
Thunderbird current release can be downloaded from https://www.mozilla.org/
thunderbird/ Past
Thunderbird releases can be downloaded from https://releases.mozilla.org/pub/
thunderbird/releases/ Early Preview Releases Whilst writing new versions of
Thunderbird, developers release preview versions, known as Betas. These builds are made to get feedback from testers and extension developers. Note: While Beta b...
...ions of
Thunderbird, developers release preview versions, known as Betas. These builds are made to get feedback from testers and extension developers. Note: While Beta builds have had some testing, they should be considered preview only and should not be used in a production environment. Please read the release notes before downloading. Preview Releases are available from http://www.mozilla.org/
thunderbird/channel/ Nightly Builds Nightly builds are cutting-edge builds. They are built every 24 hours by the tinderboxes from the very latest source code. There are various sorts of nightly builds available for download. If you wish to download nightly builds to help us test for the next release, please read the testing page for where we need help. Warning: Whilst developers try to ensure that ni...
...And 6 more matches
Old Thunderbird build
Good internet connection for the initial source download. Build prerequisites Depending on your Operating System you will need to carry out a different process to prepare your machine. So firstly complete the instructions for your OS and then continue following these build instructions. ...
... Good internet connection for the initial source download. Build prerequisites Depending on your Operating System you will need to carry out a different process to prepare your machine. So firstly complete the instructions for your OS and then continue following these build instructions. ...
...ternet connection for the initial source download. Build prerequisites Depending on your Operating System you will need to carry out a different process to prepare your machine. So firstly complete the instructions for your OS and then continue following these build instructions. To build on Windows, please read the prerequisites so you don't skip preparing the MAPI headers needed to compile
Thunderbird. Windows Build Prerequisites GNU/Linux Build Prerequisites Mac OS X Build Prerequisites Get the source Note: On Windows, you won't be able to build the
Thunderbird source code if it's under a directory with spaces in the path (e.g., don't use "Documents and Settings"). You can pick any other location, such as a new directory C:/
thunderbird-src (where "C:/", with a forward slash, is inten...
...And 5 more matches
Building a Thunderbird extension 1: introduction
Thunderbird is a community managed open-source email application. It shares many of the technologies used by Mozilla Firefox, including JavaScript, the Gecko layout engine, the XUL XML User Interface Language and the XPCOM Cross-Platform Component Object Model. Similar to Firefox,
Thunderbird functionality can be enhanced and customized via extensions. Warning: This content is for older versions of
Thunderbird. Much of it may no longer be relevant. See developer.
thunderbird.net for newer information. This tutorial will introduce you to the components of a
Thunderbird extension and will show you how to build your own. The tutorial has the following pages: Introduction (this page) The extension filesystem (setting up your local system) Install manifest (the install.rdf file that contains ...
...ts of a
Thunderbird extension and will show you how to build your own. The tutorial has the following pages: Introduction (this page) The extension filesystem (setting up your local system) Install manifest (the install.rdf file that contains meta-information about the extension) Chrome manifest (list of packages and overlays) XUL (the XML user interface language that is used to modify the
Thunderbird user interface) Adding JavaScript (explains how to add some simple JavaScript to your
Thunderbird extension) Installing locally (enabling the extension on your local
Thunderbird instance) Packaging (making a distribution package that contains the extension) Distributing (from your own site or from http://addons.mozilla.org/) This tutorial is compatible with
Thunderbird versions 2,3 and 5. A...
...At a minimum you will need: Text editor: Any editor that is capable of writing plain text can be used to write extensions. ...
...And 3 more matches
Thunderbird
Thunderbird is a mail/messaging application managed and developed by the
Thunderbird community. These pages document
Thunderbird and the MailNews backend which is also used in other projects such as Seamonkey and Postbox.
Thunderbird is built on the same technical platform as the Firefox web browser. Currently one of the most popular open source email clients, it is used by tens of millions of people around the world to bring together all their email accounts, chat, newsgroup and feed reading in a familiar high-productivity environment. (From early 2007 to early 2011
Thunderbird was developed by Mozilla Messaging, a subsidiary owned by Mozilla.) Documentation Building
Thunderbird Information about building
Thunderbird with the comm-central repository. There's a...
... Building
Thunderbird Information about building
Thunderbird with the comm-central repository. There's also information about how the review process works and how to use the Mozilla symbol server to help with debugging. MailNews Protocols Rough documentation about mail protocols.. Database views Backend information about nsIMsgDBView and related interfaces.
Thunderbird API documentation
Thunderbird API documentation Extension documentation Tutorials and tips for building
Thunderbird extensions View All... ...
...r to help with debugging. MailNews Protocols Rough documentation about mail protocols.. Database views Backend information about nsIMsgDBView and related interfaces.
Thunderbird API documentation
Thunderbird API documentation Extension documentation Tutorials and tips for building
Thunderbird extensions View All... ...
...And 3 more matches
How Thunderbird and Firefox find their configuration files - Archive of obsolete content
The configuration itself is stored in the specified directory, in a file named prefs.js. This is a readable file of javascript commands. ...
...The configuration itself is stored in the specified directory, in a file named prefs.js. This is a readable file of javascript commands. ...
...ngst other information, a pointer to the directory where the profile is stored (usually located in %APPDATA%\
Thunderbird\Profiles\profileName). Likewise, Firefox uses a similar file, located in %APPDATA%\Mozilla\Firefox\profiles.ini. The value contained in this key is a litteral value, no variables (such as %USERPROFILE%/MozProfile) allowed. We chose to point this to the user's home directory (H:\
Thunderbird). The configuration itself is stored in the specified directory, in a file named prefs.js. This is a readable file of javascript commands. All other files in that directory are dynamically created by Mozilla on first start. Unlike Mozilla's binary registry.dat file,
Thunderbird's and Firefox' profiles.ini file is a readable text file. Here is an example of what this may look like: [General] Star...
...And 2 more matches
Building a Thunderbird extension 3: install manifest
Much of it may no longer be relevant. See developer.
thunderbird.net for newer information. The install.rdf file is an XML file that provides general information about the extension. ...
...on and must be in lowercase; the last portion is a two-part period-delimited value such as your first and last name or the top-level domain of your website. While this value is in email address format, it is not an email address. It should, however, be a unique value so that it does not conflict with other extensions. <em:name>My First Extension</em:name>: The extension name is displayed in the
Thunderbird add-on Manager. <em:version>1.0</em:version>: This is the version number of your extension. It must be updated each time you release a new version of your extension. It is not the
Thunderbird version number (which is stored in the minVersion and maxVersion fields). <em:creator>jenzed</em:creator>: This optional value is used to store the extension author's name. <em:id>{3550f703-e582-4d05-9a08...
...or>jenzed</em:creator>: This optional value is used to store the extension author's name. <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>: This element contains the version id of the application that this add on is developed for. It is defined by Mozilla. A list of valid application ids can be found here. Normally the id does not change and is always the same even for different versions of
Thunderbird. ...
...And 2 more matches
Building a Thunderbird extension 5: XUL
Warning: This content is for older versions of
Thunderbird. Much of it may no longer be relevant. See developer.
thunderbird.net for newer information.
Thunderbird's user interface is written in XUL and JavaScript. XUL is an XML grammar that provides user interface widgets like buttons, menus, toolbars, trees etc. We add widgets by inserting new XUL DOM elements into the application window and modify them using scripts and attaching event handlers. While XUL provides the elements of the user interface, actions are written in JavaScript. For our first extension, we will add some text to the
Thunderbird status bar. The status bar is implemented in a XUL file called messenger.xul, which can be found in the chrome/messenger/content/messenger folder which is packaged inside the omni.ja archive. T...
...omni.ja can be easily browsed by copying the file to a different location and renaming it to omni.zip. If you have trouble with one zip manager (like 7zip) try another (like WinRAR). In messenger.xul we find the status bar, which looks something like this.: <statusbar id="status-bar" ...> ... <statusbarpanel>s ... ...
...aching other UI widgets to a XUL document at run time. A XUL Overlay is a .xul file that specifies XUL fragments to insert at specific merge points within a "master" document. These fragments can specify widgets to be inserted, removed or modified. In this example you are adding a line to the indented statusbar. Therefore it becomes an item owned by the id called "status-bar". This shows how the
Thunderbird architecture allows extensions to modify the user experience without modifying the installation files. This also enables version independence between
Thunderbird and
Thunderbird extensions. Example XUL Overlay Document Create a new file called myhelloworld.xul within the content folder you created earlier with the following content: <?xml version="1.0"?> <overlay id="sample" xmlns="http://www.
...ion window that we want to attach to. When parsing our overlay file, the XUL engine will take all child elements of the <statusbar> tag and merge them with the original XUL document's <statusbar> tag. In the example above we have defined a new <statusbarpanel> item (that can be referred to as my-panel) which will create a new instance of this widget type and add it at the end of the statusbar. In
Thunderbird it will appear as a label at the right side of
Thunderbird's statusbar and display "Date". We have also added a <script> tag that contains a reference to the JavaScript file overlay.js. In the next section you will learn how to use JavaScript to modify your label so that it shows the current date. The overlay.js file will be created in a later section and your add-on will still work if the file...
Building a Thunderbird extension 6: Adding JavaScript
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. ...
...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. ...
...The event listener then calls our startup function which gets our <statusbarpanel>-element with the id my-panel from the document's DOM tree. It then uses JavaScript's Date class to get the current date, which it converts into a string that has the format of YYYY.MM.DD. Because the month is zero-based we also need to add one to the month. Finally the label of our panel is set to "Date: " a...
...s DOM tree. It then uses JavaScript's Date class to get the current date, which it converts into a string that has the format of YYYY.MM.DD. Because the month is zero-based we also need to add one to the month. Finally the label of our panel is set to "Date: " and concatenated with the date string that contains the formatted date. We use the function window.setInterval to update the date in case
Thunderbird is left running for more than one day. This allows us to call the startup function repeatedly with an interval of 60000ms (every minute). Further Documentation More functions for the dom objects are listed on: DOM/Window (API reference for the Window object) DOM/Document (API reference for the Document object) Gecko DOM Reference (overview of all DOM objects in Gecko) You may also find t...
nsIAbCard/Thunderbird3
Documentation for the old nsIAbCard interface is currently at nsIAbCard. The nsIAbCard interface is used to represent and manipulate cards in the address book. In a big change from the original nsIAbCard, properties are now stored in a hash table instead of as attributes on the interface, allowing it to be more flexible. ...
Thunderbird API documentation
Much of it may no longer be relevant. See developer.
thunderbird.net for newer information. These pages have been moved from mozilla.org, and may or may not be relevant. ...
Building a Thunderbird extension 2: extension file layout
Much of it may no longer be relevant. See developer.
thunderbird.net for newer information. Extensions are packaged and distributed in archive files (also known as Bundles), with the XPI (pronounced "zippy") file extension. At a minimum, they contain an install.rdf, the chrome.manifest and a chrome/ folder. A content/ folder sometimes contains the actual content files. These files contain the code that makes your extension actually do something. ...
Access Thunderbird Window Areas
An alternative to these methods is to directly access the element by it's ID as in the Detect When a Folder Opens example. ...
Get Thunderbird version
On
Thunderbird version 3.0b3pre and later, you can use the following snippet to get the
Thunderbird version. (Version 3.0b3pre was the first build to include STEEL.) var versionChecker = Components.classes["@mozilla.org/xpcom/version-comparator;1"].getService(Components.interfaces.nsIVersionComparator); if (versionChecker.compare(Application.version, "3.0b4") >= 0) // code for >= 3.0b4 else // code for < 3.0b4 For versions prior to 3.0b3pre, you can use something like this: var version; if ( "@mozilla.org/xre/app-info;1" in Components.classes ) version = Components.classes["@mozilla.org/xre/app-info; 1"].getService(Components.interfaces.nsIXULAppInfo).version; else version = Components.classes["@mozilla.org/preferences-service; 1"].getService(Components.interfaces.nsIPrefBranch).getCha...
Index
The Account Provisioner gives the user the chance to search for and order a vanity email account from a list of partner providers. If the user already has an email account, the user can switch to the original account setup wizard. ...
... and summary 1
Thunderbird thunderbird Thunderbird is a mail/messaging application managed and developed by the
Thunderbird community. These pages document
Thunderbird and the MailNews backend which is also used in other projects such as Seamonkey and Postbox. 2 Account Provisioner The Account Provisioner is the dialog that first comes up when starting
Thunderbird. The Account Provisioner gives the user the chance to search for and order a vanity email account from a list of partner providers. If the user already has an email account, the user can switch to the original account setup wizard. 3 Account examples Extensions,
thunderbird This article provides examples on accessing and manipulating
Thunderbird accounts. Account interfaces p...
...and order a vanity email account from a list of partner providers. If the user already has an email account, the user can switch to the original account setup wizard. 3 Account examples Extensions,
thunderbird This article provides examples on accessing and manipulating
Thunderbird accounts. Account interfaces provides an overview of the related interfaces. See An overview of
Thunderbird components for a general description of the
Thunderbird user interface and related programmatic interfaces. 4 Account interfaces Code snippets, Extension Development,
thunderbird This page contains a list of the interfaces that you'll will most likely use when writing extensions that work with email or other accounts. See Account examples for examples and code snippets. ...
...And 60 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
Abstract This document is a concrete example of a centralized auto-configuration of Mozilla apps, that are; Firefox,
Thunderbird, Mozilla Suite 1.x.x, Seamonkey and for the record, old Netscape 4.x. Its original inspiration comes from http://www.alain.knaff.lu/howto/MozillaCustomization/ and http://mit.edu/~firefox/www/maintain...utoconfig.html. For history, I've kept Mozilla and Netscape chapters, as certain points are complementary to the web-based AutoConfig file. This MCD (aka autoconfig here), is not to be confused with https://wiki.mozilla.org/
Thunderbird...oconfiguration . It's Mission is to enable completely automatic configuration of mozilla's apps preferences based on users properties either retrieved from system environement variables or on an organisation ldap directory. Situa...
...preferences. This centralized preference file can lock preferences (lockPref) or initialize them (defaultPref) based on environment variables (USER, HOME...) and/or LDAP queries (fetch email address, Common Name , language, homepage etc...) from the enterprise directory. Central Configuration File That feature is provided through a JavaScript file. ...
...or LDAP queries (fetch email address, Common Name , language, homepage etc...) from the enterprise directory. Central Configuration File That feature is provided through a JavaScript file. File Location (not tested since 2012 ...) In
Thunderbird , FireFox, the javascript preference file that calls the centralized preference file is located in $INSTALL_DIR_MOZ_APP/defaults/pref, for example in
thunderbird this would be repectively for windows/linux: C:\Program Files\Mozilla
Thunderbird\defaults\pref /usr/lib/
thunderbird/default/pref ( it used to be in /usr/lib/
thunderbird-version#/default/pref as in /usr/lib/
thunderbird-5/default/pref ) For the record/history purpose ... the old Netscape 4.x the file is encoded (byte-shift/rotary is 7), and the presence of the file (netscape.cfg) in the MOZILL...
...And 47 more matches
Index
g nsIDirectoryService Extensions, Guide, XPCOM nsDirectoryService implements the nsIProperties interface. This implementation will allow you to Get(), Set(), Define(), and Undefine() nsIFile. 86 Using nsIPasswordManager Guide, Interfaces, Login Manager, Security The code on this page will work with applications using Toolkit 1.8 and below such as Firefox 2.0.0.x and
Thunderbird 2.0.0.x. For similar functionality in Toolkit 1.9, see Using nsILoginManager. 87 Using nsISimpleEnumerator No summary! 88 Using the Gecko SDK Add-ons, Developing Mozilla, Extensions, Gecko, NeedsContent No summary! 89 Using the clipboard Add-ons, Clipboard, Extensions, Guide, Mozilla, XPCOM This section provides information about cut...
...nates use of XPCOM in the calling process. 139 nsresult Errors, Mozilla, Reference, Reference(2), XPCOM, XPCOM API Reference The nsresult data type is a strongly-typed enum used to represent a value returned by an XPCOM function; these are typically error or status codes. For a list of defined result values, see Error codes returned by Mozilla APIs. 140 Folders
thunderbird The folder classes all implement the nsIMsgFolder interface. There are currently three folder classes - nsLocalMailFolder, nsImapMailFolder, and nsNewsFolder. They all inherit from nsMsgDBFolder, which implements a lot of the core functionality. RSS feeds are implemented by nsLocalMailFolder. 141 NS ENSURE SUCCESS XPCOM, XPCOM_Macros Macro 142 NS ENSURE TRUE ...
... mozIVisitStatusCallback Interfaces, Interfaces:Scriptable, Places, Reference, XPCOM Interface Reference Called when the mozIAsyncHistory.isURIVisited() method's check to determine whether a given URI has been visited has completed. Implement this method to determine the results of the request. 228 nsIAbCard Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference,
thunderbird The nsIAbCard interface is used to represent and manipulate cards in the addressbook. Following a huge refactoring of the address book code, most of the documentation below is out of date. Properties aren't stored anymore on the card, except for a handful of them. Complex properties are expected to be accessed through a call to getProperty. See //github.com/RealityRipple/UXP/blob/master//ma...
...And 34 more matches
Index - Archive of obsolete content
t components, and enforcing logical boundaries between them. Unfortunately, JavaScript does not yet have native support for modules: it has to rely on the host application to provide it with functionality such as loading subscripts, and exporting/ importing names. We will show how to do each of these things using the built-in Components object provided by Xulrunner application such as Firefox and
Thunderbird. 28 Private Properties People have come up with several ways to emulate private properties using existing language features. This article discusses two common techniques: one using prefixes, the other closures. 29 Firefox Compatibility Add-on SDK No summary! 30 Module structure of the SDK Add-on SDK No summary! 32 Porting ...
... in a Firefox extension. This feature is particularly useful for vendors who wish to deploy the plugin even if Firefox is not currently installed, or who want to use the automatic extension update mechanism to update their plugin to a newer version. 229 Developing add-ons Add-ons 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. 230 Displaying web content in an extension without security issues Extensions, Security, XMLHttpRequest, XUL One of the most common security issues with extensions is execution of remote code in privileged context. A typical example is an RSS reader extension that would take the conte...
... it open for styling by custom themes. 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 SeaMonkey 2 Alpha 1 SeaMonkey supports toolkit/-style extensions. These type of extensions have many advantages for both users and developers compared to the old xpinstall/-style extensions. 241 Firefox addons developer guide The original document is in Japanese and distributed via the xuldev.org website. So there may be still some reference to the xuldev...
...And 23 more matches
Textbox (XPFE autocomplete) - Archive of obsolete content
sAt, getSessionValueAt, removeSession, select, setSelectionRange, syncSessions Examples (example needed) Attributes accesskey Type: 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. ...
...The components are created using the name @mozilla.org/autocomplete/search;1?name= where name is listed in this attribute. ...
... nsIAutoCompleteSearch interface. The components are created using the name @mozilla.org/autocomplete/search;1?name= where name is listed in this attribute. search-autocomplete Requires SeaMonkey 2.1 The user's default search engine's suggestions are searched. places-tag-autocomplete Requires SeaMonkey 2.1 The user's Places tags are searched. ...
...And 21 more matches
imgIContainer
nts an image in the Gecko rendering engine. It provides access to frames as Thebes surfaces and lets users extract subregions as other imgIContainer objects. It also provides methods for drawing images onto Thebes contexts. Internally, this interface also manages animation of images. 66 Introduced Gecko 1.0 Inherits from: nsISupports Last changed in Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11) Implemented by: ?????????????????????????????????????. To create an instance, use: Implemented by: ????????????????????????????????????? as a service: var imgIContainer = Components.classes["@mozilla.org/????????????????????????????"] .createInstance(Components.interfaces.imgIContainer); Method overview void addRestoreData([array, size_is(aCou...
...ce Gecko 2.0 kDisposeRestorePrevious 3 Restore the previous(composited) frame. Obsolete since Gecko 2.0 kBlendSource 0 All color components of the frame, including alpha, const long kBlendOver = 1; // The frame should be composited onto the output buffer. Obsolete since Gecko 2.0 Methods Native code only!addRestoreData Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. void addRestoreData( [array, size_is(aCount), const] in char data, in unsigned long aCount ); Parameters data Missing Description aCount Missing Description Exceptions thrown Missing Exception ...
...its use is discouraged since it could be removed at any time. Try to avoid using it. void addRestoreData( [array, size_is(aCount), const] in char data, in unsigned long aCount ); Parameters data Missing Description aCount Missing Description Exceptions thrown Missing Exception Missing Description Native code only!appendFrame Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Adds to the end of the list of frames. void appendFrame( in PRInt32 aX, in PRInt32 aY, in PRInt32 aWidth, in PRInt32 aHeight, in gfxImageFormat aFormat, [array, size_is(imageLength)] out PRUint8 imageData, out...
...And 19 more matches
textbox (Toolkit autocomplete) - Archive of obsolete content
esearch="history"/> Attributes accesskey Type: 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. autocompletepopup Type: id The id of a popup element used to hold autocomplete results for the element. autocompletesearch New in
Thunderbird 2Requires SeaMonkey 1.1 Type: space-separated list of values A space-separated list of search component names, each of which implements the nsIAutoCompleteSearch interface. The components are created using the name @mozilla.org/autocomplete/search;1?name= where name is listed in this attribute. search-autocomplete Requires SeaMonkey 2.1 The user's default search eng...
... nsIAutoCompleteSearch interface. The components are created using the name @mozilla.org/autocomplete/search;1?name= where name is listed in this attribute. search-autocomplete Requires SeaMonkey 2.1 The user's default search engine's suggestions are searched. places-tag-autocomplete Requires SeaMonkey 2.1 The user's Places tags are searched. ...
...re searched. mydomain New in
Thunderbird 3 Requires SeaMonkey 2.0 The user's email domain is suggested. history Requires SeaMonkey 2.0 The user's URL history is searched. form-history Requires SeaMonkey 2.0 Search the values that the user has entered into form fields. file (Linux only) The local file system is searched. gloda New in
Thunderbird 3 addrbook New in
Thunderbird 3 Requires SeaMonkey 2.0 The user's address book is searched. ldap New in
Thunderbird 25 Requires SeaMonkey 2.22 The user's LDAP directory is searched. autocompletesearchparam New in
Thunderbird 2 Requires SeaMonkey 1.1 Type: string A string which is passed to the search component. completedefault...
...And 16 more matches
Setting up an extension development environment - Archive of obsolete content
Overview You'll create a new user profile to run your development specific Firefox session. This will utilize distinctive development preferences in about:config. Install Firefox development extensions specifically for this new developer user profile. Edit files in the extensions folder of this profile, and restart the application as this new developer profile. ...
... Note: you could run Firefox using your regular profile while developing. However, you won't enjoy the benefits of isolated resources, which we discussed earlier. The Parameter -P ProfileName doesn't imply -no-remote, therefore use them together. If you are already running a Firefox inst...
... Note: you could run Firefox using your regular profile while developing. However, you won't enjoy the benefits of isolated resources, which we discussed earlier. The Parameter -P ProfileName doesn't imply -no-remote, therefore use them together. If you are already running a Firefox instance without -no-remote, and you attempt to start anothe...
...And 15 more matches
nsINavBookmarksService
toolkit/components/places/nsINavBookmarksService.idlScriptable The BookmarksService interface provides methods for managing bookmarked history items. Bookmarks consist of a set of user-customizable folders. A URI in history can be contained in one or more such folders. 1.0 67 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11) Implemented by: @mozilla.org/browser/nav-bookmarks-service;1. To use this service, use: var navBookmarksService = Components.classes["@mozilla.org/browser/nav-bookmarks-service;1"] .getService(Components.interfaces.nsINavBookmarksService); Method overview void addObserver(in nsINavBookmarkObserver observer, in boolean ownsWeak); ...
... points at, which means all annotations, and so on are carried along. void changeBookmarkURI( in nsIURI oldURI, Obsolete since Gecko 1.9 in long long aItemId, in nsIURI aNewURI ); Parameters oldURI Obsolete since Gecko 1.9 The URI of the item to be changed. aItemId The item whose bookmark URI needs to be changed. aNewURI The new URI. Obsolete since Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This method creates a dynamic container under the given parent folder. long long createDynamicContainer( in long long aParentFolder, in AUTF8String aName, in AString aContractId, in long aIndex ); Parameters ...
...in the given URI. void getBookmarkIdsForURI( in nsIURI aURI, out unsigned long count, Optional [array, retval, size_is(count)] out long long bookmarks ); Parameters aURI The URI whose list of bookmark IDs is to be retrieved. count The count of bookmark IDs. bookmarks The list of bookmark IDs. Native code only!getBookmarkIdsForURITArray Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This method is a TArray version of getBookmarkIdsForURI() for ease of use in C++ code. Pass in a reference to a TArray; it will get cleared and filled with the resulting list of folder IDs. void getBookmarkIdsForURITArray...
...And 9 more matches
Configuring Build Options
most important of these is MOZ_OBJDIR, which controls where your application gets built (also known as the object directory). Options prefixed with ac_add_options are passed to configure, and affect the build process. Building with an objdir This means that the source code and object files are not intermingled in your directory system and you can build multiple applications (e.g., Firefox and
Thunderbird) from the same source tree. If you do not specify a MOZ_OBJDIR, it will be automatically set to @TOPSRCDIR@/obj-@CONFIG_GUESS@. If you need to re-run configure, the easiest way to do it is using ./mach configure; running configure manually is strongly discouraged. Adding the following line to your mozconfig allows you to change the objdir: mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUES...
...-j4" If your machine is overheating, you might want to try a lower value, e.g. -j1. Choose an application The --enable-application=application flag is used to select an application to build. Firefox is the default. ...
...ication to build. Firefox is the default. Choose one of the following options to add to your mozconfig file: Browser (Firefox) ac_add_options --enable-application=browser Note: This is the default Mail (
Thunderbird) ac_add_options --enable-application=comm/mail Mozilla Suite (SeaMonkey) ac_add_options --enable-application=suite Calendar (Lightning Extension, uses
Thunderbird) ac_add_options --enable-application=comm/mail ac_add_options --enable-calendar Selecting build options The build options you choose depends on what application you are building and what you will be using the build for. If you want to use the build regularly, you will want a release build without extra debugging information; if you are a developer who wants to hack the source code, you p...
...And 7 more matches
nsIAppShellService
xpfe/appshell/nsIAppShellService.idlScriptable Provides the AppShellService. ...
...isible. eConsiderQuit 1 Attempt to quit if all windows are closed. Obsolete since Gecko 1.8 eAttemptQuit 2 Try to close all windows, then quit if successful. Obsolete since Gecko 1.8 eForceQuit 3 Force all windows to close, then quit. Obsolete since Gecko 1.8 Methods closeTopLevelWindow() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Close a window. void closeTopLevelWindow( in nsIXULWindow aWindow ); Parameters aWindow A window. Native code only!createHiddenWindow Creates a hidden window. void createHiddenWindow( in nsIAppShell aAppShell ); Parameters aAppShell A widget "appshell" (event processor) to associate with the new window. createStartupState() O...
... window. void closeTopLevelWindow( in nsIXULWindow aWindow ); Parameters aWindow A window. Native code only!createHiddenWindow Creates a hidden window. void createHiddenWindow( in nsIAppShell aAppShell ); Parameters aAppShell A widget "appshell" (event processor) to associate with the new window. createStartupState() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Creates the initial state of the application by launching tasks specfied by "general.startup.*" prefs. Note: SIZE_TO_CONTENT may be used for width or height. boolean createStartupState( in long aWindowWidth, in long aWindowHeight ); Parameters aWindowWidth The width to make the initial window(s) opened. aWindowHeight The height to make the initial wind...
...And 7 more matches
Command line options
n quotes, such as "Joel User". Command actions are case insensitive. Command parameters, except profile names, are case insensitive. Blank spaces ( ) separate commands and parameters. Each message option follows the syntax field=value, for example: to=foo@nowhere.net subject=cool page attachment=www.mozilla.org attachment='file:///c:/test.txt' body=check this page or also in
Thunderbird 52 and newer: body=c:\path\to\file.txt Separate multiple message options by comma (,), for example: "to=foo@nowhere.net,subject=cool page" . Comma separators must not follow or precede spaces ( ). To assign multiple values to a field, enclose the values in single quotes ('), for example: "to='foo@nowhere.net,foo@foo.de',subject=cool page" . Using command line options Command line option...
...cases, option arguments must be enclosed in quotation marks (this is noted in the option descriptions below). Multiple command line options can be specified. In general, the syntax is as follows: application -option -option "argument" -option argument Examples The following examples show the use of the "-ProfileManager" command, which will open the profile manager prior to starting Firefox or
Thunderbird: Windows Select run from Windows start menu. Enter the following command: firefox -ProfileManager Mac OS X Go to applications > utilities. Open terminal and enter the following command: cd /Applications/Firefox.app/Contents/MacOS ./firefox -ProfileManager If you use Firefox Nightly, you can enter: cd /Applications/FirefoxNightly.app/Contents/MacOS ./firefox -ProfileManager Linux Open...
... Enter the following command: firefox -ProfileManager Mac OS X Go to applications > utilities. Open terminal and enter the following command: cd /Applications/Firefox.app/Contents/MacOS ./firefox -ProfileManager If you use Firefox Nightly, you can enter: cd /Applications/FirefoxNightly.app/Contents/MacOS ./firefox -ProfileManager Linux Open terminal and enter the following command: cd
Thunderbird installation directory ./
thunderbird -ProfileManager The example above invokes the "-ProfileManager" command line option with Mozilla's
Thunderbird mail client. User profile -allow-downgrade Firefox 67's downgrade protection prevents accidentally starting Firefox in a profile running a later version of Firefox. Depending on changes between the two versions, some files in a profile may not be...
...And 6 more matches
nsIFaviconService
toolkit/components/places/public/nsIFaviconService.idlScriptable Stores favicons for pages in bookmarks and history. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 22.0 (Firefox 22.0 /
Thunderbird 22.0 / SeaMonkey 2.19) Implemented by: @mozilla.org/browser/favicon-service;1. To use this service, use: var faviconService = Components.classes["@mozilla.org/browser/favicon-service;1"] .getService(Components.interfaces.nsIFaviconService); Method overview void addFailedFavicon(in nsIURI aFaviconURI); void expireAllFavicons(); void getFaviconData(in nsIURI aFaviconURI, out AUTF8String aMimeType, [optional] out unsigned long aDataLen, [array,retval,size_is(aDataLen)] out octet aData); Obsol...
...RI of an icon in the favicon service. Can be null. expireAllFavicons() Expires all known favicons, removing them from the database. Note: This is an asynchronous operation; when it completes, a "places-favicons-expired" notification is dispatched through the observer's service. void expireAllFavicons(); Parameters None. getFaviconData() Obsolete since Gecko 22.0 (Firefox 22.0 /
Thunderbird 22.0 / SeaMonkey 2.19) Note: This method was removed in Gecko 22.0. You should use the new async API mozIAsyncFavicons.getFaviconDataForPage() instead. This method retrieves the given favicon data. Throws an exception if we don't have data. If there is no data but we have an entry for this favicon, aDataLen will be "0" and aData will be null. void getFaviconData( in nsIURI aFaviconU...
...rameter where the size of the binary data will be placed. aData Output parameter where the binary favicon data will be placed. This will be null if we have this URI but have no data associated with it. Exceptions thrown NS_ERROR_NOT_AVAILABLE Thrown when we have never heard of this favicon URL. getFaviconDataAsDataURL() Obsolete since Gecko 22.0 (Firefox 22.0 /
Thunderbird 22.0 / SeaMonkey 2.19) Note: This method was removed in Gecko 22.0. You should use the new async API mozIAsyncFavicons.getFaviconDataForPage() instead. This method retrieves the given favicon data, returning it as a data URL Throws an exception if we don't have data. If there is no data but we have an entry for this favicon, returns null. AString getFaviconDataAsDataURL( in nsIURI a...
...And 6 more matches
Custom toolbar button - Archive of obsolete content
(For SeaMonkey 1.x, see the page Custom Toolbar Button:SeaMonkey.) You do not need any special technical skills or tools, and almost all the information you need is on this page. Introduction The technique described here does not involve any hacking. Instead, you make your custom button as a self-contained extension in your profile. You can use the sample code provided here to make buttons that do various useful things. If you know how to program in JavaScript, then you can write your own code that does other things. ...
.... Use other tutorials and articles to find out more--the main Extensions page here is a good starting point. In particular, the articles Creating toolbar buttons and Building an Extension explain the process in more detail. Supported applications You can use the steps on this page with any or all of these Mozilla applications: Firefox 1.5 or a later version SeaMonkey 2.0 or a later version
Thunderbird 1.5 or a later version Sunbird 0.3 or a later version Pre-release versions of these (alphas, betas and release candidates) are also OK. In the rest of this page, the term application means the Mozilla application where you want to add the button. Note: There is a similar tutorial for SeaMonkey 1.x on the page: Custom Toolbar Button:SeaMonkey Earlier versions and other Mozilla applications...
...com" em:version="1.0" em:homepageURL="http://developer.mozilla.org/en/docs/Custom_Toolbar_Button" em:iconURL="chrome://custombutton/content/icon.png" > <em:targetApplication><!-- Firefox --> <Description em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" em:minVersion="1.4" em:maxVersion="*" /> </em:targetApplication> <em:targetApplication><!--
Thunderbird --> <Description em:id="{3550f703-e582-4d05-9a08-453d09bdfdc6}" em:minVersion="1.5" em:maxVersion="51.0" /> </em:targetApplication> <em:targetApplication><!-- Sunbird --> <Description em:id="{718e30fb-e89b-41dd-9da7-e25a45638b28}" em:minVersion="0.2.9" em:maxVersion="99" /> </em:targetApplication> <em:file> <Descr...
...And 5 more matches
Extentsions FAQ - Archive of obsolete content
workarounds to this restriction by messing around with overflow or negative margins but I forgot offhand how to do that. How to create a dynamic drop down menu that may have submenus using JavaScript for an extension? These two links should give you a starting point: http://www..xulplanet.com/tutorials/...u/advmenu.html http://www.xulplanet.com/tutorials/x...dommodify.html Request for a
Thunderbird extension that can automatically detect the default domain when composing e-mails via autodetect. <https://bugzilla.mozilla.org/show_bug.cgi?id=312818> "
Thunderbird requires domain in addresses and doesn't always add default" There is an extension that allows what you want attached to one of the comments in this bug. How to get the value of a text box when a button is clicked? Read http://de...
...the html-code of the current URL/site? Yes, this is possible. Use the DOM API (http://www.w3schools.com/dom/default.asp has a good tutorial). Not the best answer but a good starting point for the question asker to do some research towards the answer. Why does his extension not able to read the contents of a folder and then produce a segmentation fault after his extension reads preferences in
Thunderbird? The person was missing a method call to getService. Are there any built in libraries that can be used to encrypt data? Yes. You can use nsISecretDecoderRing.encryptString() and nsISecretDecoderRing.decryptString(). However, I'm not sure how/if that works if the user hasn't defined a master password in Options->Security->Use a master password. You can AES-128 or AES-256 symmetr...
...h doesn't work in XUL, last I checked. Take a look at the bottom of http://svn.dojotoolkit.org/dojo/trunk/dojo.js see what it's trying to load and write out the script element by hand. Could someone write an extension that would collapse the current sidebar in Firefox? These are called "Grippies" <https://addons.mozilla.org/firefox/2242/> This extension brings grippies back to Firefox (and
Thunderbird!) Is there any way to write a regular extension that returns a "dummy" object when an Instance of "@mozilla.org/helperapplauncherdialog;1" is created? You can write a dummy XPCOM component implementing the necessary interfaces and register it with the sane contract id. http://developer.mozilla.org/en/docs...PCOM_Component Would anyone be able to suggest the best way to do source level deb...
...And 5 more matches
Runtime Directories
pplication Data\Mozilla\Firefox\ (or %APPDATA%\Mozilla\Firefox\) C:\Documents and Settings\<username>\Local Settings\Application Data\Mozilla\Firefox\ OS X /Applications/Firefox.app ~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/ ~/Library/Caches/Firefox/Profiles/xxxxxxxx.default/ Linux ???? ...
...refox\ OS X /Applications/Firefox.app ~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/ ~/Library/Caches/Firefox/Profiles/xxxxxxxx.default/ Linux ???? ...
... ~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/ ~/Library/Caches/Firefox/Profiles/xxxxxxxx.default/ Linux ???? ...
...And 5 more matches
Mozilla Quirks Mode Behavior
around the contents of style attributes (bug 99554). This behavior is being removed in Firefox 27, for interoperability. (bug 915053) An empty string for the background attribute sets the background URL to empty only in quirks mode. The topmargin, bottommargin, leftmargin, and rightmargin attributes on BODY are supported only in quirks mode (bug 9258). Obsolete since Gecko 35 (Firefox 35.0 /
Thunderbird 35.0 / SeaMonkey 2.32) (bug 95530) This quirk is now HTML5 conform and has been adopted in standards mode. The scrollLeft, scrollTop, scrollWidth, and scrollHeight properties are relative to BODY in quirks mode (instead of HTML) (bug 211030). HTML (1-7) and CSS (xx-small - xx-large) font sizes are calculated slightly differently (see bug 18136). The :hover and :active pseudo-classes will only...
...ks mode (instead of HTML) (bug 211030). HTML (1-7) and CSS (xx-small - xx-large) font sizes are calculated slightly differently (see bug 18136). The :hover and :active pseudo-classes will only be applied to links, and only if there is no other pseudo-class in the selector. To match other elements, the selector must include a tag name, id, class or attribute. Prior to Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3), there was no class check, so the :hover pseudoclass was not applied to class selectors; for example, .someclass:hover did not work. Prior to Gecko 36, it also applied to images, and form controls but the quirk has been adapted to match the behavior of other browser (bug 783213). Prior to Gecko 36, the quirk was also applied if another pseudo-class was used in the same se...
...other pseudo-class was used in the same selector, if a pseudo-element was used in the selector, or if it was part of a pseudo-class argument (bug 783213). Quirks mode has document.all support (undetected). Images (IMG elements) without alt attributes sometimes display placeholder icons in quirks mode. Obsolete since Gecko 2.0 HTML colors were parsed differently up to Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) (bug 121738). In quirks mode, the URL fragment #top scrolls to the top of the page when there is no such anchor. Obsolete since Gecko 10.0 However, HTML5 requires this behavior, and starting in Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7), this also works in standards mode (bug 80784, bug 93077). Block and Inline layout [This quirk is present in almost st...
...And 5 more matches
nsIEditorIMESupport
editor/idl/nsIEditorIMESupport.idlScriptable Please add a summary to this article. ...
...ce Gecko 2.0 void setCompositionString(in DOMString aCompositionString, in nsIPrivateTextRangeListPtr aTextRange, in nsTextEventReplyPtr aReply); Native code only! Obsolete since Gecko 2.0 Attributes Attribute Type Description composing boolean whether this editor has active IME transaction. Read only. ...
...void endComposition(); Parameters None. forceCompositionEnd() Force the composition end. void forceCompositionEnd(); Parameters None. Native code only!getPreferredIMEState Get preferred IME status of current widget. ...
...And 5 more matches
Mozilla
curity. These articles provide important guides and references to ensuring the code you write is secure, including both design recommendations and testing guidelines. Bugzilla bugzilla.mozilla.org (often abbreviated b.m.o) is Mozilla.org's bug-tracking system, a database for recording bugs and enhancement requests for Firefox,
Thunderbird, SeaMonkey, Camino, and other mozilla.org projects. Building Mozilla In this article, we list documents that will guide you in building Firefox or other projects based upon Mozilla code. Building SpiderMonkey with UBSan 1. Compile a recent version of LLVM & Clang. C++ portability guide This document has migrated to Usin...
...ewhere so that the build system knows about it. How to get a process dump with Windows Task Manager When tracking down the causes of process hangs, it is often helpful to obtain a process dump while the process is experiencing a hang. This article describes how to get a process dump with Task Manager on Windows. (To get a process dump for
Thunderbird or some other product, substitute the product name where ever you see Firefox in these instructions.) How to get a stacktrace for a bug report If you file a bug report in Bugzilla about a crash you should include a stacktrace (call stack) in your report. A stacktrace will tell Mozilla developers what crashed and provide a starting point for investiga...
...native ways to get a stacktrace if you can't get a crash ID. How to get a stacktrace with WinDbg Sometimes you need to get a stacktrace (call stack) for a crash or hang but Breakpad fails because it's a special crasher or a hang. This article describes how to get a stacktrace in those cases with WinDbg on Windows. ...
...And 5 more matches
List of Mozilla-Based Applications - Archive of obsolete content
lla NSS and NPAPI libraries eMusic Download Manager music downloader for emusic eMusic Remote music manager Enlis Genome Personal genome browser ESXX JavaScript application server Uses Mozilla Rhino Etna XML wysiwyg editor Eudora mail and news application The upcoming version 8 will be based on
Thunderbird Evergreen library automation system Evolution email client Uses NSS eXe eLearning XHTML editor Seems to be using XUL for some of their webui Facebook Open Platform Facebook Open Platform The FBML parser used in the platform is based on Mozilla code Fennec Browser for mobiles As Mark notes: Fennec is not Firefox, it's a co...
... mobiles As Mark notes: Fennec is not Firefox, it's a completely different application FindThatFont! ...
...ino Phloneme publishing tool for Vocab Collab PhpED PHP Editor Embedded Mozilla browser in product Pidgin IM client Uses NSS Plain Old Webserver extension and standalone webserver 5,000 users and 30,000 downloads POE::XUL framework for remote XUL application in POE Postbox email client Started as a fork of
Thunderbird Printgroove JT Suite print process software Uses XULRunner and Spidermonkey Prism (was WebRunner) single-site browser XULRunner application Pro/ENGINEER Wildfire CADCAM product PsycRunner Chat, Messenger, Multicast toolkit About 1,000 users - XULRunner version of PsycZilla extension Pyjamas-Desktop a Python Web Widget toolki...
...And 4 more matches
Updating an extension to support multiple Mozilla applications - Archive of obsolete content
<< PreviousNext >> 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
Thunderbird and Sunbird (previous versions worked only in Firefox). If you haven't already created an extension, or would like to refresh your memory, take a look at the previous articles in this series: Creating a status bar extension Creating a dynamic status bar extension Adding preferences to an extension Localizing an extension Download the sample You can download this article's sample code so you can look at it side-by-side with the article, or to use it as a basis for your own extension. Download the sam...
...atus bar extension Adding preferences to an extension Localizing an extension Download the sample You can download this article's sample code so you can look at it side-by-side with the article, or to use it as a basis for your own extension. ...
...mple code so you can look at it side-by-side with the article, or to use it as a basis for your own extension. Download the sample Updating the install manifest The first step is to revise the extension's install manifest to indicate that it can be installed in
Thunderbird and Sunbird. ...
...And 4 more matches
nsIDBFolderInfo
nsIDBFolderInfo - careful, pulled from the wrong (cvs) repo! mailnews/db/msgdb/public/nsIDBFolderInfo.idlScriptable ??? Add brief description of Interface ??? Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Implemented by: ?????????????????????????????????????. To create an instance, use: Implemented by: ????????????????????????????????????? as a service: var dBFolderInfo = Components.classes["@mozilla.org/????????????????????????????"] .createInstance(Components.interfaces.nsIDBFolderInfo); Method overview long AndFlags(in long flags); void ChangeExpungedBytes(in long delta); void ChangeNumMessages(in long delta); void ChangeNumUnreadMessages(in long ...
...Return value Missing Description Exceptions thrown Missing Exception ...
...Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. void getLocale( in nsString result ); Parameters result Missing Description Exceptions thrown Missing Exception Missing Description Native code only!getMailboxName Obsolete since Gecko 1...
...And 4 more matches
nsIDocumentLoader
uriloader/base/nsIDocumentLoader.idlScriptable This interface responsible for tracking groups of loads that belong together (images, external scripts, and so on.) and subdocuments (iframe, frame, and so on.). It is also responsible for sending nsIWebProgressListener notifications. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Implemented by: @mozilla.org/docloaderservice;1. To create an instance, use: var documentLoader = Components.classes["@mozilla.org/docloaderservice;1"] .createInstance(Components.interfaces.nsIDocumentLoader); Method overview void clearParentDocLoader(); Obsolete since Gecko 1.8 void createDocumentLoader(out nsIDocumentLoader anInstance); Obsolete since Gecko 1.8 ...
...olete since Gecko 1.8 boolean isBusy(); Obsolete since Gecko 1.8 void stop(); Attributes Attribute Type Description container nsISupports Read only. documentChannel nsIChannel Read only. loadGroup nsILoadGroup Read only. ...
...iner nsISupports Read only. documentChannel nsIChannel Read only. loadGroup nsILoadGroup Read only. Methods clearParentDocLoader() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) void clearParentDocLoader(); Parameters None. ...
...And 4 more matches
nsIScrollable
/docshell/base/nsIScrollable.idlScriptable This interface can be implemented by a control that supports scrolling. This is a generic interface without concern for the type of content that may be inside. ...
.... Constant Value Description Scrollbar_Auto 1 Scrollbars visible only when needed. Scrollbar_Never 2 Scrollbars never visible, even when scrolling is still possible. Scrollbar_Always 3 Scrollbars always visible, even when scrolling is not possible. Methods getCurScrollPos() Obsolete since Gecko 29.0 (Firefox 29.0 /
Thunderbird 29.0 / SeaMonkey 2.26) long getCurScrollPos( in long scrollOrientation ); Parameters scrollOrientation An integer representing the orientation of the scrollbar. Return value getDefaultScrollbarPreferences() long getDefaultScrollbarPreferences( in long scrollOrientation ); Parameters scrollOrientation An integer representing the orientation of the scrollbar. Retu...
... the scrollbar. getScrollbarVisibility() void getScrollbarVisibility( out boolean verticalVisible, out boolean horizontalVisible ); Parameters verticalVisible Boolean specifying the visibility of the vertical scrollbar. horizontalVisible Boolean specifying the visibility of the horizontal scrollbar. getScrollRange() Obsolete since Gecko 29.0 (Firefox 29.0 /
Thunderbird 29.0 / SeaMonkey 2.26) void getScrollRange( in long scrollOrientation, out long minPos, out long maxPos ); Parameters scrollOrientation An integer representing the orientation of the scrollbar. minPos Minimal position of the scroll range. maxPos Maximal position of the scroll range. setCurScrollPos() Obsolete since Gecko 29.0 (Firefox 2...
...And 4 more matches
Address Book examples
How do I get all address books? Use the Address Book Manager to get an nsISimpleEnumerator, then progress through the enumerator, looking for nsIAbItem, nsIAbCollection or nsIAbDirectory interfaces as you require. ...
... How do I get all address books? Use the Address Book Manager to get an nsISimpleEnumerator, then progress through the enumerator, looking for nsIAbItem, nsIAbCollection or nsIAbDirectory interfaces as you require. ...
... How do I get all address books? Use the Address Book Manager to get an nsISimpleEnumerator, then progress through the enumerator, looking for nsIAbItem, nsIAbCollection or nsIAbDirectory interfaces as you require. ...
...And 4 more matches
nsIBrowserHistory
toolkit/components/places/public/nsIBrowserHistory.idlScriptable A browser-specific interface to global history. It adds functions used by the basic browser like, marking pages as typed in the URL bar, and removing pages as from the history interface. Inherits from: nsIGlobalHistory2 Last changed in Gecko 22.0 (Firefox 22.0 /
Thunderbird 22.0 / SeaMonkey 2.19) Implemented by: @mozilla.org/browser/nav-history-service;1. To use this service, use: var browserHistory = Components.classes["@mozilla.org/browser/nav-history-service;1"] .getService(Components.interfaces.nsIBrowserHistory); Method overview void addPageWithDetails(in nsIURI aURI, in wstring aTitle, in long long aLastVisited); Obsolete since Gecko 15.0 void markPageAsFollowedLink(in nsI...
...e Gecko 10.0 AUTF8String The last page that was visited in a top-level window. Read only. Note: The count attribute was removed in Gecko 15.0 because it was only used to determine if there were any entries at all anyway, so the nsINavHistoryService.hasHistoryEntries attribute is better for this. Methods addPageWithDetails() Obsolete since Gecko 15.0 (Firefox 15.0 /
Thunderbird 15.0 / SeaMonkey 2.12) Note: This method was removed in Gecko 15.0. You should use mozIAsyncHistory.updatePlaces() instead. This method adds a page to the history with specific time stamp information. It is called by history importing code and is used in the History migration tool. void addPageWithDetails( in nsIURI aURI, in wstring aTitle, in long long aLastVisited ); Param...
...sed in the History migration tool. void addPageWithDetails( in nsIURI aURI, in wstring aTitle, in long long aLastVisited ); Parameters aURI The page that will be added to the history. aTitle The title of the page. aLastVisited When the page was last visited, in microseconds since the Unix epoch. markPageAsFollowedLink() Obsolete since Gecko 22.0 (Firefox 22.0 /
Thunderbird 22.0 / SeaMonkey 2.19) Note: This method was moved to another interface in Gecko 22.0. You should use nsINavHistoryService.markPageAsFollowedLink() instead. This function was originally added in Gecko 2.0 (Firefox 4/
Thunderbird 3.3/SeaMonkey 2.1). Designates the specified URL as coming from a link explicitly followed by the user (for example by clicking on it). void markPageAsFollow...
...And 3 more matches
nsIDownloadManager
. Please use Downloads.jsm instead. toolkit/components/downloads/public/nsIDownloadManager.idlScriptable This interface lets applications and extensions communicate with the Download Manager, adding and removing files to be downloaded, fetching information about downloads, and being notified when downloads are completed. Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Implemented by: @mozilla.org/download-manager;1. To get the service, use: var downloadManager = Components.classes["@mozilla.org/download-manager;1"] .getService(Components.interfaces.nsIDownloadManager); Method overview nsIDownload addDownload(in short aDownloadType, in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in nsIMIM...
..._ERROR_FAILURE The download is not in progress. cleanUp() Removes completed, failed, and canceled downloads from the list. Also notifies observers of the "download-manager-remove-download" topic with a null subject to allow any Download Manager consumers to react to the removals. void cleanUp(); Parameters None. endBatchUpdate() Obsolete since Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Indicate that a batch update is ending. void endBatchUpdate(); Parameters None. flush() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Flush the download datasource to disk. void flush(); Parameters None. getDownload() Retrieves a download managed by the download manager. This can be one that is in prog...
...is can be one that is in progress, or one that has completed in the past and is stored in the database. nsIDownload getDownload( in unsigned long aID ); Parameters aID The unique ID of the download. Return value The download with the specified ID. Exceptions thrown NS_ERROR_NOT_AVAILABLE The download is not in the database. onClose() Obsolete since Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Called when the download manager front end is closed. Useful for third party managers to let us know when they've closed. void onClose(); Parameters None. open() Obsolete since Gecko 1.9.1 (Firefox 3.
...And 3 more matches
nsIXPConnect
js/src/xpconnect/idl/nsIXPConnect.idlNot scriptable Provides the XPConnect service. ...
...rn the caller object of the current call from JS. [noscript,notxpcom] void getCaller( out JSContextPtr aJSContext, out JSObjectPtr aObject ); Parameters aJSContext Missing Description aObject Missing Description Return value Missing Description Exceptions thrown Missing Exception Missing Description Native code only!getCOWForObject Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Wrap a jsval in a chrome object wrapper. JSVal getCOWForObject( in JSContextPtr aJSContext, in JSObjectPtr aParent, in JSObjectPtr aWrappedObj ); Parameters aJSContext A context to use to create objects. aPar...
...Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Returns an XPCNativeWrapper, XPCSafeJSObjectWrapper, or XPCCrossOriginWrapper for the given object based on the principal, scope, and filename flags that are passed in. Note: In C++, the out jsval parameter must already b...
...And 3 more matches
XPCOM reference
RRORThrows a assertion (NS_ASSERTION) with the text "Error: (error text)", so writes this text to console (stderr) and to debug logs (NSPR logging). This macro is meant for critical errors; like assertions, NS_ERRORs should not be reachable.NS_IF_ADDREFMacroNS_IF_RELEASEMacroNS_RELEASEMacroNS_WARNINGMacronsGetModuleProcThis function prototype provides the XPCOM entry-point into a module.nsIAbCard/
Thunderbird3The nsIAbCard interface is used to represent and manipulate cards in the address book. In a big change from the original nsIAbCard, properties are now stored in a hash table instead of as attributes on the interface, allowing it to be more flexible.nsICookie2 MOZILLA 1 8 BRANCHnsIMsgSearchValueDefined in comm-central/ mailnews/ base/ search/ public/ nsIMsgSearchValue.idl nsMsgMessageFlagsThe nsMs...
...t to be more flexible.nsICookie2 MOZILLA 1 8 BRANCHnsIMsgSearchValueDefined in comm-central/ mailnews/ base/ search/ public/ nsIMsgSearchValue.idl nsMsgMessageFlagsThe nsMsgMessageFlags interface describes possible flags for messages. Equivalent flags are also defined in nsMsgMessageFlags.h. nsMsgNavigationTypeThe nsMsgNavigationType interface contains constants used for message navigation in
Thunderbird. ...
...sgMessageFlags.h. nsMsgNavigationTypeThe nsMsgNavigationType interface contains constants used for message navigation in
Thunderbird. For example to move forward a message, you would call:nsMsgSearchOpValueDefined in comm-central/ mailnews/ base/ search/ public/ nsMsgSearchCore.idl nsMsgViewCommandCheckStateThe nsMsgViewCommandCheckState interface contains constants used for command status in
Thunderbird. It is (as far as I can tell) not currently used anywhere in
Thunderbird.nsMsgViewCommandTypeThe nsMsgViewCommandType interface contains constants used for commands in
Thunderbird. For example to mark a message read, you would call:nsMsgViewFlagsTypeThe nsMsgViewFlagsType interface contains constants used for view flags in
Thunderbird. This interface isn't ever implemented. It is only used to sto...
...And 3 more matches
LDAP Support
Mail Compose Typedown In mail compose, when typing a partial mail address, a typedown window appears listing possible matches against address books and LDAP directories. ...
... Mail Compose Typedown In mail compose, when typing a partial mail address, a typedown window appears listing possible matches against address books and LDAP directories. ...
... Mail Compose Typedown In mail compose, when typing a partial mail address, a typedown window appears listing possible matches against address books and LDAP directories. ...
...And 3 more matches
Main Windows
As such, I've always thought it would be nice to have a list of what xul, js, or other files are that are here, what they do, and where they overlay at different points within the client. Things appear confusing for several reasons: Much of the code is written to be portable, so instead of duplicating it, its been put in overlays that are loaded over many different types of windows. ...
...lient. Things appear confusing for several reasons: Much of the code is written to be portable, so instead of duplicating it, its been put in overlays that are loaded over many different types of windows. Some of the code was written based off of early Firefox code, but is not exactly the same. You'll sometimes see reimplementations of things that are already in toolkit, written specially for
Thunderbird. messenger.xul The base mail window that you see when you first open
Thunderbird is messenger.xul: messenger.xul itself doesn't contain a lot. Its main focus is on handling the folderpane, threadpane, and the message preview sections shown above. The rest is loaded from overlays: mailWindowOverlay.xul This is the red sections shown in the interface above (where?), including the toolbars, ...
...nger.xul itself doesn't contain a lot. Its main focus is on handling the folderpane, threadpane, and the message preview sections shown above. The rest is loaded from overlays: mailWindowOverlay.xul This is the red sections shown in the interface above (where?), including the toolbars, notification bars, and the status bar, but also includes most of the commands, keysets, and context menus of
Thunderbird, along with a whole lot of Javascript. mailOverlay.xul A really small overlay that only adds a few "New message" and "New Card" commands to the menus, along with their associated javascript. msgHdrViewOverlay.xul Shown in blue above (where?), this overlay consists of three boxes. Two are stacked showing either a brief or expanded view of the headers. The third is the attachment box which can ...
...And 3 more matches
Install Manifests - Archive of obsolete content
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. The format of the Install Manifest is RDF/XML. The file must be called install.rdf and live at the top level of an add-on's XPI file. ...
...xtension author to specify which versions of Firefox an extension has been tested with. id, minVersion, and maxVersion are all required. Note: Extensions compatible with Firefox 3.5 should specify a maxVersion of 3.5.*, so that they are automatically compatible with security and stability updates. For Firefox 3.0, a maxVersion of 3.0.* should be used. Extensions compatible only with Firefox or
Thunderbird 2 should specify a maxVersion of 2.0.0.*. The Install Manifest must specify at least one of these objects, and may specify more if the add-on targets multiple applications that support the Add-on Manager (e.g. Firefox and
Thunderbird). Examples <em:targetApplication> <Description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!--Firefox--> <em:minVersion>1.5</em:minVersion>...
...riment 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 Firefox 3 this has been removed. version A version string identifying the version of the add-on being supplied. For Firefox/
Thunderbird 1.0, the format must conform to the rules specified in Extension Versioning, Update and Compatibility. For Firefox/
Thunderbird 1.5, see Toolkit version format. Examples <em:version>2.0</em:version> <em:version>1.0.2</em:version> <em:version>0.4.1.2005090112</em:version> Firefox 1.5 / XULRunner 1.8 - add-ons that do not use a valid version format will not be installed. The version format is d...
...And 2 more matches
Extensions support in SeaMonkey 2 - Archive of obsolete content
There are exceptions, but these are few and far between. SeaMonkey also uses different IDs for the menu items. Some important menu IDs are listed below, menu IDs are based on Firefox 3 source code: Menu id in Firefox Menu id in SeaMonkey 1.x and 2.0 SeaMonkey 2.1 Overlays menu_FilePop...
.... ...
...hem so they either need to be expanded to their proper forms or matching constants/variables need to be defined in custom code. Shorthand Expansion Cc Components.classes Ci Components.interfaces Cr Components.results Cu Components.utils Multi-browser compatibility To make an extension compatible with SeaMonkey as well as Firefox/
Thunderbird, you may need to do different things depending on which application is running the extension. In JavaScript code You can use the following technique to detect the application: const FIREFOX_ID = "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"; const
THUNDERBIRD_ID = "{3550f703-e582-4d05-9a08-453d09bdfdc6}"; const SEAMONKEY_ID = "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}"; var appInfo = Components.classe...
...And 2 more matches
Download Manager preferences - Archive of obsolete content
rtOnEXEOpen A boolean value that indicates whether the UI Should alert the user about the dangers of opening (executing) an EXE. The user may check a "don't ask" box on the UI to toggle this. Default value is true. browser.download.manager.closeWhenDone A boolean value indicating whether or not the Downloads window should close automatically when downloads are completed. In
Thunderbird the default value is true. In Other Applications the default value is false. browser.download.manager.flashCount Indicates the number of times the appropriate user interface element should be "flashed" to get the user's attention when a download completes. Default value is 2. browser.download.manager.focusWhenStarting A boolean value that indicates whether or not t...
...false. browser.download.manager.flashCount Indicates the number of times the appropriate user interface element should be "flashed" to get the user's attention when a download completes. Default value is 2. browser.download.manager.focusWhenStarting A boolean value that indicates whether or not to focus the Download Manager window when a download begins. In Firefox,
Thunderbird and SeaMonkey the default value is false. In Other Applications the default value is true. browser.download.manager.quitBehavior Indicates what should happen to in-progress downloads if the application is quit while they're ongoing. 0 indicates that the downloads should be paused and resumed automatically the next time Firefox is run; 1 indicates that the downloads should be pause...
...etention Indicates how long downloads are retained in the Download Manager's queue after the download is completed successfully. 0 indicates that the download should be removed upon completion; 1 indicates that completed and canceled downloads should be removed on quit; 2 indicates that downloads should never be removed automatically. In Firefox and SeaMonkey the default value is 2. In
Thunderbird the default value is 1; If the preference is missing, the value 0 is used. browser.download.manager.scanWhenDone A boolean value that indicates whether or not to perform virus scans after downloads are complete. On Windows XP SP2 and Windows Vista, this value also indicates whether downloaded files trigger a security warning upon launch. Default value is true. browser...
...And 2 more matches
Creating toolbar buttons (Customize Toolbar Window) - Archive of obsolete content
Its intended audience is extension developers with a basic knowledge of XUL and CSS. We assume that you're also familiar with the basics of creating Firefox extensions and have the Hello World extension working. Another tutorial, which walks you through the entire process from the beginning, is also available. Creating an overlay The first step is to create an overlay for the document containing the toolbar you wish to enhance. Explaining overlays is beyond the scope of this tutorial -- you can read about them in the XUL Tutorial. ...
...rent sizes -- big and small. This means you'll need to provide two icons for each of your toolbar buttons. ...
...yextension"/> </Seq> </chrome:packages> </Description> <Seq about="urn:mozilla:stylesheets"> <li resource="chrome://global/content/customizeToolbar.xul"/> </Seq> <Seq about="chrome://global/content/customizeToolbar.xul"> <li>chrome://myextension/skin/toolbar-button.css</li> </Seq> </RDF> The skin/contents.rdf file is denigrated in developing for later releases of Firefox. Extensions for Firefox/
Thunderbird 1.5 and above should instead use something like this in their chrome.manifest: skin myextension classic/1.0 chrome/skin/ style chrome://global/content/customizeToolbar.xul chrome://myextension/skin/toolbar-button.css ia Take note of the Packaging section in this article; you may need to include .jar references if you are delivering your extension as an .xpi file. Common mistakes This is a lis...
...And 2 more matches
Gecko versions and application versions
The following table shows the various versions of Gecko and what versions of common applications are based on them. Note that after Gecko 2.0, both Firefox and
Thunderbird versions are from then on the same as the Gecko version number, at Gecko 5.0. Gecko version Applications based on it Gecko 55 Firefox 55, SeaMonkey 2.52 Gecko 52 Firefox 52, SeaMonkey 2.49 Gecko 49 Firefox 49, SeaMonkey 2.46 Gecko 43 Firefox 43, SeaMonkey 2.40 Gecko 42 Firefox 42, SeaMonkey 2.39 Gecko 41 Firefox 41, SeaMonkey 2.38 Gecko 38 Firefox 38, SeaMonkey 2.35 Gecko 36 Firefox 36, SeaMonkey 2.33 Gecko 35 Firefox 35, SeaMonkey 2.32 Gecko 34 Firefox 34, SeaMonkey 2.31 Gecko 33 ...
... Firefox 34, SeaMonkey 2.31 Gecko 33 Firefox 33, SeaMonkey 2.30 Gecko 32 Firefox 32, SeaMonkey 2.29 Gecko 29 Firefox 29, SeaMonkey 2.26 Gecko 28 Firefox 28, SeaMonkey 2.25 Gecko 27 Firefox 27, SeaMonkey 2.24 Gecko 26 Firefox 26, SeaMonkey 2.23 Gecko 25 Firefox 25, SeaMonkey 2.22 Gecko 24 Firefox 24,
Thunderbird 24, SeaMonkey 2.21 Gecko 23 Firefox 23, SeaMonkey 2.20 Gecko 22 Firefox 22, SeaMonkey 2.19 Gecko 21 Firefox 21, SeaMonkey 2.18 Gecko 20 Firefox 20, SeaMonkey 2.17 Gecko 19 Firefox 19, SeaMonkey 2.16 Gecko 18 Firefox 18, Firefox OS 1.0, SeaMonkey 2.15 Gecko 17 Firefox 17,
Thunderbird 17, SeaMonkey 2.14 Gec...
... Gecko 23 Firefox 23, SeaMonkey 2.20 Gecko 22 Firefox 22, SeaMonkey 2.19 Gecko 21 Firefox 21, SeaMonkey 2.18 Gecko 20 Firefox 20, SeaMonkey 2.17 Gecko 19 Firefox 19, SeaMonkey 2.16 Gecko 18 Firefox 18, Firefox OS 1.0, SeaMonkey 2.15 Gecko 17 Firefox 17,
Thunderbird 17, SeaMonkey 2.14 Gecko 16 Firefox 16,
Thunderbird 16, SeaMonkey 2.13 Gecko 15 Firefox 15,
Thunderbird 15, SeaMonkey 2.12 Gecko 14 Firefox 14,
Thunderbird 14, SeaMonkey 2.11 Gecko 13 Firefox 13,
Thunderbird 13, SeaMonkey 2.10 Gecko 12 Firefox 12,
Thunderbird 12, SeaMonkey 2.9 Gecko 11 Firefox 11,
Thunderbird 11, SeaMonkey 2.8 Gecko 10 Firefox 10,
Thunderbird 10, SeaMonkey 2.7...
...And 2 more matches
How to implement a custom autocomplete search component
The XUL textbox element supports an autocomplete mechanism that is used to create a textbox with a popup containing a list of possible completions for what the user has started to type. There are actually two autocomplete mechanisms: An older mechanism that is part of the "xpfe" codebase and is used in older applications such as
Thunderbird and SeaMonkey. A newer and slightly simplified mechanism that is used in "toolkit" applications such as Firefox and XULRunner.
Thunderbird 2.x and SeaMonkey 1.1.x support the toolkit interfaces, although they do not use the same autocomplete widget. To use autocomplete with a XUL textbox, all you need to do is set some attributes: <textbox type="autocomplete" autocompletesearch="history"/> The type="autocomplete" turns on the autocomplete mechanism a...
...more options and features, see XUL:textbox_(Firefox_autocomplete) for more details. The toolkit mechanism has built-in support for several autocomplete sources, including: history: Search the browser's URL history (Firefox: 1.0+; SeaMonkey: 1.1+) form-history: Search the values that the user has entered into form fields. (Firefox: 1.0+; SeaMonkey: 2.0+) file: Search file names (Firefox: 2.0+;
Thunderbird: 2.0+; SeaMonkey: 1.1+; GTK builds only). The component uses the autocompletesearchparam attribute or searchParam property to allow the developer to define the default directory otherwise only paths beginning with / or ~/ will be autocompleted. Building your custom autocomplete search components Sometimes, you may want to build your own autocomplete source. To do so you need the following: Cre...
...necessary interfaces. Note: When copying the examples below, change the UUID that uniquely identifies the component, otherwise you might have problems if your component gets installed along another component derived from those same examples. That can happen! So, get a UUID from http://www.famkruithof.net/uuid/uuidgen, for example, and paste it in. ...
...And 2 more matches
Index
se pk12util to export it to the PKCS#12 file format. If you require it in PEM format, you could use the openssl pkcs12 command (that's not NSS) to convert the PKCS#12 file to PEM. This line is a placeholder for how to prepare a database, how to dump a cert, and how to convert data. You might have been motivated to work with NSS because it is used by the Mozilla applications such as Firefox,
Thunderbird, etc. If you build the Mozilla application, it will automatically build the NSS library, too. However, if you want to work with the NSS command line tools, you will have to follow the standalone NSS build instructions, and build NSS outside of the Mozilla application sources. The key database file will contain at least one symmetric key, which NSS will automatically create on demand, and which...
...ype as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be set added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared database by default, but they can be configured to use them. ...
...ype as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be set added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared database by default, but they can be configured to use them. For example, this how-to article covers how to configure Firefox and
Thunderbird to use the new shared NSS databases: o https://wiki.mozilla.org/NSS_Shared_DB_Howto For an engineering draft on the changes in the shared NSS databases, see the NSS project wiki: o https://wiki.mozilla.org/NSS_Shared_DB See Also certutil (1) modutil (1) The NSS wiki has information on the new database design and how to configure applications to use it. o h...
...And 2 more matches
nsIAccessibleRetrieval
accessible/public/nsIAccessibleRetrieval.idlScriptable An interface for in-process accessibility clients wishing to get an nsIAccessible or nsIAccessNode for a given DOM node. ...
...t already exists. nsIAccessible getAccessibleInShell( in nsIDOMNode aNode, in nsIPresShell aPresShell ); Parameters aNode The DOM node to get an accessible for. aPresShell The presentation shell which contains layout info for the DOM node. Return value The nsIAccessible for the given DOM node. getAccessibleInWeakShell() Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Return an nsIAccessible for a DOM node in the given weak shell. Create a new accessible of the appropriate type if necessary, or use one from the accessibility cache if it already exists. nsIAccessible getAccessibleInWeakShell( in nsIDOMNode aNode, in nsIWeakReference aPresShell ); Parameters aNode The DOM node to get an accessible for. aPresShell ...
...eady exists. nsIAccessible getAccessibleInWeakShell( in nsIDOMNode aNode, in nsIWeakReference aPresShell ); Parameters aNode The DOM node to get an accessible for. aPresShell The presentation shell which contains layout info for the DOM node. Return value The nsIAccessible for the given DOM node. getAccessibleInWindow() Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Return an nsIAccessible for a DOM node in present shell for this DOM window. Create a new accessible of the appropriate type if necessary, or use one from the accessibility cache if it already exists. nsIAccessible getAccessibleInWindow( in nsIDOMNode aNode, in nsIDOMWindow aDOMWin ); Parameters aNode The DOM node to get an accessible for. aDOMWin ...
...And 2 more matches
nsIAppStartup
toolkit/components/startup/public/nsIAppStartup.idlScriptable This interface is intended to be used as application startup service. It also helps in quitting applications as well. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6) Implemented by: @mozilla.org/toolkit/app-startup;1. To use the service: var appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"] .getService(Components.interfaces.nsIAppStartup); Method overview void createHiddenWindow(); boolean createStartupState(in long aWindowWidth, in long aWindowHeight); Obsolete since Gecko 1.9.1 void destroyHiddenWindow(); void doProfileStartup(in nsICmdLineS...
... eRestartNotSameProfile 0x100 Restart the application after quitting. The application will be restarted with an empty command line and the normal profile selection process will take place on startup. Methods createHiddenWindow() Create the hidden window. void createHiddenWindow(); Parameters None. createStartupState() Obsolete since Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Creates the initial state of the application by launching tasks specfied by "general.startup.*" prefs. Note: SIZE_TO_CONTENT may be used for width or height. boolean createStartupState( in long aWindowWidth, in long aWindowHeight ); Parameters aWindowWidth The width to make the initial window(s) opened. aWindowHeight The height to make the initial wind...
...to make the initial window(s) opened. aWindowHeight The height to make the initial window(s) opened. Return value TRUE if a window was opened. destroyHiddenWindow() Destroys the hidden window. This will have no effect if the hidden window has not yet been created. void destroyHiddenWindow(); Parameters None. ...
...And 2 more matches
nsIContentViewer
docshell/base/nsIContentViewer.idlScriptable Handles displaying content. Inherits from: nsISupports Last changed in Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7) Implemented by: ?????????????????????????????????????. To create an instance, use: var contentViewer = Components.classes["@mozilla.org/????????????????????????????"] .createInstance(Components.interfaces.nsIContentViewer); Method overview void clearHistoryEntry(); void close(in nsISHEntry historyEntry); void destroy(); [noscript,notxpcom,nostdcall] nsIViewPtr findContainerView(); void getBounds(in nsIntRectRef aBounds); Native code only! [noscript,notxpcom] nsIDocumentPtr getDocument(); void hide(); void init(in nsIW...
... enableRendering boolean Obsolete since Gecko 2.0 historyEntry nsISHEntry Get the history entry that this viewer will save itself into when destroyed. Can return null. Read only. isTabModalPromptAllowed boolean Read only. presContext nsPresContextPtr Read only. Native code only! Note: Prior to Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7), this attribute was part of nsIDocumentViewer. presShell nsIPresShellPtr Read only. Native code only! Note: Prior to Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7), this attribute was part of nsIDocumentViewer. previousViewer nsIContentViewer The previous content viewer, which has been closed but not destroy...
...called on the viewer's document The content viewer will set the contentViewer property on the history entry, and release its reference (ownership reversal). Hide() will be called, and no further destruction will happen. destroy() void destroy(); Parameters None. findContainerView() Finds the view to use as the container view for MakeWindow. Note: Prior to Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7), this attribute was part of nsIDocumentViewer. [noscript,notxpcom,nostdcall] nsIViewPtr findContainerView(); Parameters None. Return value The container view, or null if this content viewer is the root of a view manager hierarchy. Note: If this container is the root of a view manager hierarchy (that is, this method returns null), and mParentWidget is also null, then this ...
...And 2 more matches
nsILocalFileMac
xpcom/io/nsILocalFileMac.idlScriptable Please add a summary to this article. ...
...ect. Native code only!getFSSpec Note: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is true, returns the target of the alias. If followLinks is false, returns the unresolved alias file. FSSpec getFSSpec(); Parameters None. Return value The FSSpec of the file object. Native code only!initToAppWithCreatorCode Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Init this object to point to an application having the given creator code. If this app is missing, this will fail. It will first look for running application with the given creator. void initToAppWithCreatorCode( in OSTyp...
... /a/b/c, at least a/b must exist beforehand. void initWithCFURL( in CFURLRef aCFURL ); Parameters aCFURL The CoreFoundation URL. Native code only!initWithFSRef Init this object with an FSRef. Note: Supported only for XP_MACOSX. void initWithFSRef( [const] in FSRefPtr aFSRef ); Parameters aFSRef The native FSRef. Native code only!initWithFSSpec Obsolete since Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Init this object with an FSSpec Legacy method - leaving in place for now. void initWithFSSpec( [const] in FSSpecPtr aFileSpec ); Parameters aFileSpec The native file spec. isPackage() boolean isPackage(); Parameters None...
...And 2 more matches
nsIPluginHost
dom/plugins/base/nsIPluginHost.idlScriptable Please add a summary to this article. ...
...cription pluginCount unsigned long Read only. Native code only! Methods Native code only!createTempFileToPost To create temp file with Content len header in, it will use by http POST. nsIFile createTempFileToPost( in string aPostDataURL ); Parameters aPostDataURL Return value Native code only!createTmpFileToPost Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. To create temp file with Content len header in, it will use by http POST. void createTmpFileToPost( in string aPostDataURL, out string aTmpFileName ); Parameters aPostDataURL aTmpFileName Native code onl...
... 111.111.111.111;SOCKS 112.112.112.112".... Which proxy/SOCKS to use is determined by the plugin. void findProxyForURL( in string aURL, out string aResult ); Parameters aURL aResult Native code only!getPlugin nsIPlugin getPlugin( in string aMimeType ); Parameters aMimeType Return value getPluginCount() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) void getPluginCount( out unsigned long aPluginCount ); Parameters aPluginCount Native code only!getPluginFactory Obsolete since Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. nsIPlugin ge...
...And 2 more matches
Creating a Custom Column
Adding A Column By far the easiest part is the physical addition of the column. ...
... Adding A Column By far the easiest part is the physical addition of the column. ...
... Adding A Column By far the easiest part is the physical addition of the column. ...
...And 2 more matches
Preferences - Archive of obsolete content
For more details on preferences in Mozilla, see Preferences System. If you haven't yet, read other documents about Mozilla preferences on MDN (links below in Resources section). Note: This article doesn't cover all available methods for manipulating preferences; please refer to the XPCOM reference pages listed in Resources section for the complete list of methods. ...
...ption is thrown. If the branch is from the default tree, the get method doesn't check the tree with current values at all. (This is not exactly how it's coded in libpref, but it's equivalent) Where the default values are read from All Mozilla-based applications read (application directory)/defaults/preferences/*.js In addition to that, recent versions of Toolkit applications (Firefox 1.0,
Thunderbird 1.0, and the like but not the Mozilla Suite) read extension defaults -- usually located in (profile folder)/extensions/(ID)/defaults/preferences/ These files use simple JavaScript-like syntax. To add a default value for a preference, you should add a line like this to your default preferences file: pref("extensions.extensionname.preferencename", false); How to install an extension's defaults...
...e) read extension defaults -- usually located in (profile folder)/extensions/(ID)/defaults/preferences/ These files use simple JavaScript-like syntax. To add a default value for a preference, you should add a line like this to your default preferences file: pref("extensions.extensionname.preferencename", false); How to install an extension's defaults files For Mozilla Suite (not Firefox and
Thunderbird), copy them to (appdir)/defaults/pref in your install script. For Firefox/
Thunderbird, just put them in myext.xpi/defaults/preferences/. They will be copied and registered with the preferences system automatically. More about preferences "branches" Preference names consist of a few strings separated with dots, and related preferences usually share the same prefix. For example, most accessibili...
...exist - no exception will be thrown. So you could use, for instance: alert(prefs.getCharPref("mypref", "no value stored")); Be careful with this technique because prior to Firefox 54, the additional (default) value will be ignored and an exception would still be thrown in this case. Using preferences in extensions If you're writing your extension for one of the Toolkit applications (Firefox,
Thunderbird, Nvu), you should provide default values for your extension's preferences (see above for information on how to do it). It has the following benefits: You don't have to duplicate default values in various parts of your code. The code for reading preferences is simplified, since you don't need to worry about the get methods throwing exceptions. JavaScript wrappers for preferences system Ther...
Index - Archive of obsolete content
sing the XUL toolbar element, are containers for toolbar buttons and other user interface objects. The following articles provide details about implementing and working with toolbars. 956 Creating toolbar buttons (Customize Toolbar Window) Add-ons, Extensions, Firefox 3, Toolbars, XUL This article explains how to add a toolbar button to a Toolkit application (such as Firefox,
Thunderbird, or Kompozer) using overlays. Its intended audience is extension developers with a basic knowledge of XUL and CSS. 957 Custom toolbar button Add-ons, Extensions, SeaMonkey, Toolbars, XUL,
thunderbird This page tells you step-by-step how to make a custom toolbar button in Firefox, SeaMonkey 2.0,
Thunderbird or Sunbird. (For SeaMonkey 1.x, see the page Custom Toolbar Button:Sea...
...r button in Firefox, SeaMonkey 2.0,
Thunderbird or Sunbird. (For SeaMonkey 1.x, see the page Custom Toolbar Button:SeaMonkey.) 958 Code Samples Add-ons, Extensions This page contains sample code that you can use with the Custom Toolbar Button tutorial. 959 Complete This page is for readers who have followed the Custom Toolbar Button tutorial for Firefox,
Thunderbird and Sunbird, or the Custom Toolbar Button:SeaMonkey tutorial for SeaMonkey, and who want to learn more about developing extensions. 960 SeaMonkey - making custom toolbar (SM ver. 1.x) Add-ons, Extensions, SeaMonkey This page tells you step-by-step how to make a custom toolbar button in SeaMonkey 1.x. ...
...You can use window.addEventListener() to listen for these events in order to keep abreast of changes to toolbars. ...
...s 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.xpm or mywindow16.xpm (Linux), where mywindow is the id of the <window> you want to attach the icon to, in the chrome/icons/default subfolder of your bundle. 973 Writing Skinnable XUL and CSS CSS, XUL No summary! 974 XML XUL No s...
Using nsIXULAppInfo - Archive of obsolete content
plication. This is not useful for scripts on webpages, which should continue using the navigator object when it's not possible to rely on feature-detection. nsIXULAppInfo interface To distinguish between different Mozilla-based applications, use the frozen nsIXULAppInfo interface. The following sections provide a few examples of using nsIXULAppInfo from JavaScript. Note that while Firefox 1.5,
Thunderbird 1.5, and XULRunner 1.8-based applications support nsIXULAppInfo, older applications, such as Firefox and
Thunderbird 1.0, do not support it. You'll need to have additional code for those older versions. Getting nsIXULAppInfo To get a component implementing nsIXULAppInfo use this code: var appInfo = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components...
...tained the app info component, you can read its properties to get the application's ID, human-readable name, version, platform version, etc. For complete list of nsIXULAppInfo's properties, please see nsIXULAppInfo interface description. ID You can tell which application you're running under using the nsIXULAppInfo.ID property. ...
...EFOX_ID = "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"; const
THUNDERBIRD_ID = "{3550f703-e582-4d05-9a08-453d09bdfdc6}"; const SEAMONKEY_ID = "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}"; var appInfo = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULAppInfo); if(appInfo.ID == FIREFOX_ID) { // running under Firefox } else if(appInfo.ID ==
THUNDERBIRD_ID) { // running under
Thunderbird } else if(appInfo.ID == SEAMONKEY_ID) { // running under SeaMonkey } else { // another app } Note: you could also use nsIXULAppInfo.name, which is a human-readable name for the application, such as "Firefox", "
Thunderbird" or "SeaMonkey", but who knows, maybe they'll rename it again! Version Sometimes you need to know the version of the application you...
...ll tests. See Bug 809920, and in summary: // Work around the fact that xpcshell doesn't have a proper app-info XPCOM object. Cu.import("resource://testing-common/AppInfo.jsm"); updateAppInfo(); Older versions As stated above, older Mozilla 1.7-based applications do not support nsIXULAppInfo. You'll have to write additional code if you choose to support those versions. ...
textbox - Archive of obsolete content
e Pastes the text with newlines and adjacent whitespace removed onblur Type: script code This event is sent when a textbox loses keyboard focus. Note: The behavior of this event has evolved over time. Prior to Gecko 1.9 (Firefox 3), the script code would execute in the context of the anonymous HTML <input> element inside the textbox binding. From Gecko 1.9 to Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9), the script code would actually execute twice, once in the context of the anonymous HTML <input> element and once in the context of the <textbox> element itself. As of Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10), the script code only runs in the context of the <textbox> element, matching the behavior of all other event handlers. onchange Type: script ...
... event is not sent until the focus is moved to another element. onfocus Type: script code This event is sent when a textbox receives keyboard focus. Note: The behavior of this event has evolved over time. Prior to Gecko 1.9 (Firefox 3), the script code would execute in the context of the anonymous HTML <input> element inside the textbox binding. From Gecko 1.9 to Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9), the script code would actually execute twice, once in the context of the anonymous HTML <input> element and once in the context of the <textbox> element itself. As of Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10), the script code only runs in the context of the <textbox> element, matching the behavior of all other event handlers. oninput Type: scrip...
...e user types another character, the timer resets. type Type: one of the values below You can set the type attribute to one of the values below for a more specialized type of textbox. Don't set the type if you wish to use a regular textbox. autocomplete A textbox that supports autocomplete. For more information about autocomplete textboxes, see the autocomplete documentation (XPFE [
Thunderbird/SeaMonkey]) (Firefox) number A textbox that only allows the user to enter numbers. In addition, arrow buttons appear next to the textbox to let the user step through values. There are several attributes that allow the number textbox to be configured, including decimalplaces, min, max, increment, wraparound, hidespinbuttons, and textbox.value. password A textbox that hides what is typed, ...
... only property holds a reference to this inner input element. label Type: string Sets the label attribute. Gets the label attribute if it is present and not empty. Otherwise it returns the value of the associated label element, if applicable. Otherwise it returns the placeholder or emptyText property. The getter is mostly useful for screen readers. Note: Prior to Firefox 3, and always in
Thunderbird and SeaMonkey, the label property of an autocomplete textbox returns its value, for compatibility with the menulist element. max Type: integer Gets and sets the value of the max attribute. maxLength Type: integer The maximum number of characters that the textbox allows to be entered. min Type: integer Gets and sets the value of the min attri...
Application Translation with Mercurial
nt products and branches which are currently in translation. gaia-* denotes branches of Firefox OS, the operating system for mobile devices. Firefox and fx-* denote branches of Firefox for Desktop, the browser for desktops and notebooks running, Windows, Mac OS or Linux. Fennec and fennec-* denote branches of Firefox for Mobile, the Firefox browser for the Android operating system.
Thunderbird and tb-* denote branches of
Thunderbird, the mail client, newsgroup and feed reader and chat client. The localization of the Lightning calendar add-on also takes place on these branches. SeaMonkey and sea-* denote branches of SeaMonkey, the suite consisting of browser, mail and chat client and more. Lightning and cal-* denote branches of Lightning, the calendar add-on for
Thunderbird. The l...
..., the mail client, newsgroup and feed reader and chat client. The localization of the Lightning calendar add-on also takes place on these branches. SeaMonkey and sea-* denote branches of SeaMonkey, the suite consisting of browser, mail and chat client and more. Lightning and cal-* denote branches of Lightning, the calendar add-on for
Thunderbird. The localization of Lightning now happens on
Thunderbird's tb-* branches, the cal-* branches have been retired. In this example, we assume Firefox for Desktop shall be localized and that the localization branch is aurora. Scroll to the fx_aurora text. Read the text next to it. If it is 'Translated', the branch has already been translated. Either translate a different product now or contact the person responsible for localization from the ...
...ization from the team's page (see above) so he can notify you by mail when the next strings for translation become available. If it is a red text consisting of a number and the word 'missing', then there are untranslated texts and you can move on with this guide. Required Tools Build pre-requisites First, get the required programs to compile Mozilla applications like Firefox and
Thunderbird from Build Instructions. This is only necessary once. MozillaBuild must be installed into an absolute file path without whitespaces, else it will break. File comparison program For the translation, it is recommend to use file comparison program to compare the English file (containing the new texts) with the file of your locale (which is still missing the new strings). This example uses WinMe...
...ocale Obtaining the English texts with the source code Get the source code by downloading the following file: Firefox Desktop or Firefox for Android: Download the mozilla-<branch>.hg file (e.g. mozilla-aurora.hg) from https://ftp.mozilla.org/pub/mozilla.org/firefox/bundles/ The file is not small, but after initially downloading it, you only need to download the latest changes in the future.
Thunderbird, Lightning or SeaMonkey: Download the comm-<branch>.hg file (e.g. comm-aurora.hg) from https://ftp.mozilla.org/pub/mozilla.org/
thunderbird/bundles/ In the next step, we will unpack the source code: Open an input shell, e.g. by pressing the Windows key and R on the keyboard or by calling the "Run..." command from the Windows "Start" button, and then typing cmd and pressing the Enter key. La...
Fonts for Mozilla 2.0's MathML engine
For the latest version see, this page. Quick Instructions Try this test page to quickly determine whether you need to install additional fonts and to follow the instructions below. You may also want to check out the Mozilla MathML torture test to test your installation against concrete examples. On Windows: Use this MathML fonts installer. On Mac OS X Lion (10.7) and higher versions, STIX fonts are already installed and can be used for MathML. ...
... fonts are already installed and can be used for MathML. On most Linux distributions and similar open source platforms, you can install math fonts (STIX, Asana or MathJax fonts) from your package manager or get them from this zip archive. On Android, Firefox OS and other platforms where the instructions above do not work: install the MathML-fonts add-on. This requires Gecko 15.0 (Firefox 15.0 /
Thunderbird 15.0 / SeaMonkey 2.12) or higher. Overview Mathematical formulas make use of various symbols represented by specific Unicode characters. Mozilla can display any of these symbols provided suitable Unicode fonts are installed. Furthermore, in accordance with the W3C CSS2 recommendation on fonts, authors can specify an ordered list of particular fonts which they prefer (using the font-family proper...
...tem then Mozilla tries to stretch symbols using scale transforms, but that may result in a less pleasant rendering. To see MathML as intended, you need sufficient font support, which may mean installing some fonts. Note that some Web sites may provide the required mathematical fonts as Web fonts. In that case, you will see the correct rendering on these pages if you use Gecko 15.0 (Firefox 15.0 /
Thunderbird 15.0 / SeaMonkey 2.12) or greater. Recommended Fonts The STIX Fonts Project has been developing a comprehensive set of fonts that cover all the symbols in MathML and also contains glyphs to stretch mathematical operators. They are available under the SIL Open Font License and should be installed for best MathML rendering. Note that currently, only the fonts in /Fonts/STIX-General/ are used for st...
...matical operators. They are available under the SIL Open Font License and should be installed for best MathML rendering. Note that currently, only the fonts in /Fonts/STIX-General/ are used for stretching mathematical operators with STIX fonts. Asana Math is also freely available under the SIL Open Font License and has good support for mathematical characters. Starting in Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4), Mozilla can also use the glyphs contained in that font for stretchy operators. Starting in Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10), MathJax fonts are used as the default fonts for mathematical text and symbol stretching. These fonts are freely available under the Apache License. They are close to LaTeX rendering and should look more familiar to scientis...
nsIDOMNSHTMLDocument
dom/interfaces/html/nsIDOMNSHTMLDocument.idlScriptable This interface defines methods and properties supported by Gecko on the document object that are not part of DOM Level 2. ...
...mmand to execute. See Rich-Text Editing in Mozilla for a list of supported commands. doShowUI This is not implemented in Gecko. value Some commands require an argument. You can pass null for those commands that do not need an argument. Return value true if the command was recognized, false otherwise. execCommandShowHelp() Obsolete since Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11) This method never did anything but throw an exception, and was removed entirely in Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11). boolean execCommandShowHelp( in DOMString commandID ); Parameters commandID The name of the command. Return value This method is not supported and always throws an exception. getSelection() DOMString getSelec...
... stateful commands, returns true if the command has is active, false otherwise. queryCommandSupported() boolean queryCommandSupported( in DOMString commandID ); Parameters commandID The name of the command to query. Return value Returns true if the command is supported on the current range, false otherwise. queryCommandText() Obsolete since Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11) This method never did anything but throw an exception, and was removed entirely in Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11). DOMString queryCommandText( in DOMString commandID ); Parameters commandID The name of the command to query. Return value This method is not supported and always throws an exception. queryCommandValue() DOMSt...
...leaseEvents() Provided for compatibility with Netscape 4.x, but does not actually do anything. void releaseEvents( in long eventFlags ); Parameters eventFlags routeEvent() Provided for compatibility with Netscape 4.x, but does not actually do anything. void routeEvent( in nsIDOMEvent evt ); Parameters evt write() Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) void write( [optional] in DOMString text ); Parameters text The string to write to the document. writeln() Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) void writeln( [optional] in DOMString text ); Parameters text The string to write to the document. A newline is automatically appended. Imp...
nsIEditorSpellCheck
editor/idl/nsIEditorSpellCheck.idlNot scriptable Provides spell checking commands for nsIEditor instances. Inherits from: nsISupports Last changed in Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6) Implemented by: @mozilla.org/editor/editorspellchecker;1. To create an instance, use: var editorSpellCheck = Components.classes["@mozilla.org/editor/editorspellchecker;1"] .createInstance(Components.interfaces.nsIEditorSpellCheck); Method overview void AddWordToDictionary(in wstring word); boolean canSpellCheck(); void checkCurrentDictionary(); boolean CheckCurrentWord(in wstring suggestedWord); boolean CheckCurrentWordNoSuggest(in wstring suggestedWord); AString GetCurrentDictionary(); void GetD...
..., in wstring replaceWord, in boolean allOccurrences ); Parameters misspelledWord The word to replace. replaceWord The word with which to replace the misspelledWord. allOccurrences If true, all occurrences of misspelledWord are replaced with replaceWord. If false, only the first occurrence is replaced. saveDefaultDictionary() Obsolete since Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Saves the currently selected dictionary as the default. The function UninitSpellChecker() will also do this, but that function may not be called in some situations. This function allows the caller to force the default immed...
... work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Saves the currently selected dictionary as the default. The function UninitSpellChecker() will also do this, but that function may not be called in some situations. This function allows the caller to force the default immediately. Note: This method was removed in Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6). Since spelling dictionaries can now be selected per-site, this method is no longer needed. void saveDefaultDictionary(); Parameters None. SetCurrentDictionary() Selects the main dictionary to use. void SetCurrentDictionary( in AString dictionary ); Parameters dictionary The name of the dictionary to use. Typically, this is an ISO language code such as "en-US". ...
... called CanSpellCheck() but not InitSpellChecker(), you can still call this function to clear the cached spell check object, and no preferences are saved. void UninitSpellChecker(); Parameters None. UpdateCurrentDictionary() Updates the dictionary in use to be sure it corresponds to what the editor needs. void UpdateCurrentDictionary(); Parameters None. Remarks Prior to Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6), this method took one parameter, a reference to the nsIEditor for which to update the spell checker. Now that spell checker settings are per-site, this method takes no parameters. ...
nsIMsgDBHdr
oid setReferences(in string references); ACString getStringReference(in long refNum); void setRecipientsArray(in string names, in string addresses,in unsigned long numAddresses); void setCCListArray(in string names, in string addresses,in unsigned long numAddresses); void setBCCListArray(in string names, in string addresses,in unsigned long numAddresses);New in
Thunderbird 3.1 [noscript] void getAuthorCollationKey(out octetPtr key, out unsigned long len); [noscript] void getSubjectCollationKey(out octetPtr key, out unsigned long len); [noscript] void getRecipientsCollationKey(out octetPtr key, out unsigned long len); Attributes Attribute Type Description isRead boolean Readonly: Indicates whether or n...
...yEnumerator nsIUTF8StringEnumerator Readonly: Enumerator for names of all database properties in the header. (new in 3.1?) Methods getProperty() AString getProperty(in string propertyName); Parameters propertyName The name of the property to retrieve. Return Value The value of the property. setProperty() Sets a property on the header. For the currently selected message,
Thunderbird provides a utility function: setMsgHdrPropertyAndReload(aProperty, aValue); which duplicates this functionality without requiring you to grab the current header. void setProperty(in string propertyName, in AString propertyStr); Parameters propertyName The name of the property to set. propertyStr The value of the property. setStringProperty() void setStringProperty(...
...rty() string getStringProperty(in string propertyName); Parameters propertyName The name of the property to retrieve. Return Value The value of the property. getUint32Property() Get an integer property. Usually you would use this to store your own properties. unsigned long getUint32Property(in string propertyName); Parameters propertyName The name of the property to retrieve.
Thunderbird stored Uint32 properties (not a complete list): indexed Used for Spotlight integration on OSX. notAPhishMessage Indicates whether phisihing filters have been run on a message yet. Return Value The value of the property. setUint32Property() void setUint32Property(in string propertyName, in unsigned long propertyVal); Parameters propertyName The n...
...ishMessage Indicates whether phisihing filters have been run on a message yet. Return Value The value of the property. setUint32Property() void setUint32Property(in string propertyName, in unsigned long propertyVal); Parameters propertyName The name of the property to set. propertyVal The value of the property. markRead() Marks this header as read.
Thunderbird provides a utility function which performs this for the currently selected message: MarkCurrentMessageAsRead(). void markRead(in boolean read); Parameters read If true, mark as read. If false mark as undread. markFlagged() void markFlagged(in boolean flagged); Parameters flagged If true, mark as flagged. If false remove flag. markHasAttachments() void markHasAttachments(in b...
nsINavHistoryResultObserver
toolkit/components/places/nsINavHistoryService.idlScriptable Lets clients observe changes to a result as the result updates itself according to bookmark and history system events. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 11.0 (Firefox 11.0 /
Thunderbird 11.0 / SeaMonkey 2.8) Note: In Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1), this interface replaced the older nsINavHistoryResultViewer interface, which only allowed one client at a time. Method overview void batching(in boolean aToggleMode); void containerClosed(in nsINavHistoryContainerResultNode aContainerNode); Deprecated since Gecko 2.0 Obsolete since Gecko 11.0 void containerOpened(in nsINavHistoryContainerResultNode aContainerNode); Deprecated since G...
...ecially useful when updating user interfaces, to avoid flicker or continuous selection changes, which may result in performance degradation (for example, if updating a view for each update). void batching( in boolean aToggleMode ); Parameters aToggleMode Specify true to start batch mode or false to finish the batch. containerClosed() Obsolete since Gecko 11.0 (Firefox 11.0 /
Thunderbird 11.0 / SeaMonkey 2.8) Called when a container node's state changes from opened to closed. Note: This method was deprecated in Gecko 2.0 and removed in Gecko 11.0 (Firefox 11.0 /
Thunderbird 11.0 / SeaMonkey 2.8). Implement the containerStateChanged() method instead. void containerClosed( in nsINavHistoryContainerResultNode aContainerNode ); Parameters aContainerNode The container ...
...Implement the containerStateChanged() method instead. ...
...Implement the containerStateChanged() method instead. ...
nsIPlacesImportExportService
The interface name has been kept for compatibility reasons for code using the export service. ...
...le() Backs up the bookmarks.html file. void backupBookmarksFile(); Parameters None. exportHTMLToFile() Saves the current bookmarks hierarchy to a bookmarks.html file. void exportHTMLToFile( in nsILocalFile aFile ); Parameters aFile An nsILocalFile indicating where to save the new bookmarks.html file. importHTMLFromFile() Obsolete since Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11) Note: This method has been removed; use the BookmarkHTMLUtils.jsm JavaScript code module instead. Loads the given bookmarks.html file and replaces it with the current bookmarks hierarchy (if aIsInitialImport is true) or appends it (if aIsInitialImport is false). Three nsIObserverService notifications are fired as a result of the import. "bookmarks-restore-begin"...
...InitialImport is false or "html-initial" if aIsInitialImport is true. The observer subject will be null. void importHTMLFromFile( in nsILocalFile aFile, in boolean aIsInitialImport ); Parameters aFile The HTML file to import into Places. aIsInitialImport Whether this is an initial import or not. importHTMLFromFileToFolder() Obsolete since Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11) Note: This method has been removed; use the BookmarkHTMLUtils.jsm JavaScript code module instead.Loads the given bookmarks.html file and puts it in the given folder. Three nsIObserverService notifications are fired as a result of the import. "bookmarks-restore-begin" is fired just before the import is started. "bookmarks-restore-success" is fired right after the ...
...pportsPRInt64 whose value is aFolder. void importHTMLFromFileToFolder( in nsILocalFile aFile, in PRInt64 aFolder, in boolean aIsInitialImport ); Parameters aFile The file to import. aFolder The ID of the bookmarks folder into which to import the bookmarks. aIsInitialImport Whether or not this is an initial import. importHTMLFromURI() Obsolete since Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Note: This method has been removed; use the BookmarkHTMLUtils.jsm JavaScript code module instead. Same thing as importHTMLFromFile(), but takes a URI instead. void importHTMLFromURI( in nsIURI aURI, in boolean aIsI...
nsITreeView
Further information about creating treeviews is given in the XUL Tutorial. ...
...dex of the row. orientation The position around the given row. Defined in constants. dataTransfer This parameter, added in Gecko 1.9.2, provides the data being dragged, so that it can be examined to determine if a drop is possible. Return value true if a drop is allowed at the current location; otherwise false. canDropBeforeAfter() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method used by the drag feedback code to determine if a drag is allowable at the current location. To get the behavior where drops are only allowed on items, such as the mailNews folder pane, always return false from canDropBeforeAfter(). boolean canDropBeforeAfter( in long index, in boolean before ); Parameters index The index of the item. before true ...
... items, such as the mailNews folder pane, always return false from canDropBeforeAfter(). boolean canDropBeforeAfter( in long index, in boolean before ); Parameters index The index of the item. before true to test drop before. false to test drop after. Return value true if a drop event can occur. Otherwise false. canDropOn() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method used by the drag feedback code to determine if a drag is allowable at the current location. To get the behavior where drops are only allowed on items, such as the mailNews folder pane, always return false from canDropBeforeAfter(). boolean canDropOn( in long index ); Parameters index The index of the item. Return value true if a drop event can occ...
...rrent properties. Obsolete since Gecko 22 Return value A string of space-separated property names. Example Your function will not be provided with a properties array. (This is one way of detecting the version at run-time). Simply return a string of space-separated property names. For example: getRowProperties: function(index) { return "dummy"; } Obsolete since Gecko 22 (Firefox 22 /
Thunderbird 22 / SeaMonkey 2.19)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. To add properties for a particular row, you must use the nsIAtomService to create an nsIAtom string, which can then be appended to the array to alter the style (see also Styling a Tree) getRowProperties: function(index, pr...
Tips and Tricks from the newsgroups
Please feel free to add links to threads. We will add a categorization system as the link list grows. You can also help by creating how-tos from any of these topics. ...
...ons include useful tips for
Thunderbird add-on developers. Please feel free to add links to threads. We will add a categorization system as the link list grows. You can also help by creating how-tos from any of these topics. ...
...ks to threads. We will add a categorization system as the link list grows. You can also help by creating how-tos from any of these topics. ...
...r example, to create a symlink) Get extension metadata Call Java from
Thunderbird extensions (also an example here, written for Firefox but compatible with
Thunderbird 3.x) Define a custom protocol handler to call an external program Save Attachment and send it Repeat image display using CSS sprites Messages Use ReminderFox to open a message in the default
Thunderbird message window (when messageUri, folderUri and gDBView are unknown) Determine whether a message has been flagged as junk IMAP: Getting message key of copied message by nsIMsgCopyService::CopyFileMessage Access the plain text content of the email body Get information about attachment without selecting message Repeat image display using CSS sprites Scan for new messages at startup an...
DOM Inspector - Firefox Developer 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. This tool is an add-on for XUL-based applications such as Firefox and
Thunderbird. If you are looking for the DOM inspector that's built into Firefox, see the documentation for the Page Inspector. Documentation Introduction to DOM Inspector A guided tutorial that will help you get started with DOM Inspector. DOM Inspector FAQ Answers to common questions on DOM Inspector. DOM Inspector page at MozillaZine More information on the DOM Inspector. How to build the DOM Inspecto...
...nspector. Documentation Introduction to DOM Inspector A guided tutorial that will help you get started with DOM Inspector. DOM Inspector FAQ Answers to common questions on DOM Inspector. DOM Inspector page at MozillaZine More information on the DOM Inspector. How to build the DOM Inspector Blog post on building the DOM Inspector from source. ...
...will help you get started with DOM Inspector. DOM Inspector FAQ Answers to common questions on DOM Inspector. DOM Inspector page at MozillaZine More information on the DOM Inspector. How to build the DOM Inspector Blog post on building the DOM Inspector from source. Getting DOM Inspector Firefox &
Thunderbird You may download and install the DOM Inspector from the AMO web site. ...
...ector. DOM Inspector page at MozillaZine More information on the DOM Inspector. How to build the DOM Inspector Blog post on building the DOM Inspector from source. Getting DOM Inspector Firefox &
Thunderbird You may download and install the DOM Inspector from the AMO web site. (
Thunderbird users browsing AMO in Firefox should save the installation link, or visit the DOM Inspector for
Thunderbird page.)
Thunderbird 2 DOM Inspector for
Thunderbird 2 is available from
Thunderbird Add-ons. Or, build
Thunderbird yourself with the following options: ac_add_options --enable-extensions="default inspector" ac_add_options --enable-inspector-apis Mozilla Suite and SeaMonkey Select Tools > Web Development > DOM Inspector. You can install the Sidebar panel via Edit > Preferences > Advance...
Code Samples - Archive of obsolete content
Launch a file on your computer To launch a file on your computer, use code like this. Change the first line to specify the file that you want to launch. You can launch an executable file or some other file that your operating system knows how to open. Note: On operating systems that use backslash characters, double each backslash character. On operating systems that use forward-slash characters, specify the file in the normal way. ...
...nstance(Components.interfaces.nsILocalFile) file.initWithPath(path) file.launch() Open a web page If your button is in Firefox or SeaMonkey, use code like this to open a web page. Change the first line to specify the page that you want to open: const url = "http://www.mozilla.org/" document .getElementById("content") .webNavigation .loadURI(url, 0, null, null, null) If your button is in
Thunderbird or Sunbird, use code like this to open a web page. Change the first line to specify the page that you want to open: const url = "http://www.mozilla.org/" var uri = Components .classes["@mozilla.org/network/simple-uri;1"] .getService(Components.interfaces.nsIURI) uri.spec = url Components .classes["@mozilla.org/uriloader/external-protocol-service;1"] .getService(Components.interfaces.ns...
...ice(Components.interfaces.nsIWindowMediator) .getMostRecentWindow(name) if (w) w.focus() else Components .classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher) .openWindow(null, uri, name, "chrome,resizable", null) Change the first two lines to specify the window that you want to open. ...
SeaMonkey - making custom toolbar (SM ver. 1.x) - Archive of obsolete content
Introduction The technique described here does not involve any hacking. Instead, you make your custom button as a self-contained extension. You can use the sample code provided here to make buttons that do various useful things. If you know how to program in JavaScript, then you can write your own code that does other things. ...
...ery simplified. Use other tutorials and articles to find out more--the main Extensions page here is a good starting point. In particular, the articles Creating toolbar buttons and Building an Extension explain the process in more detail. Supported applications You can use the steps on this page only with SeaMonkey 1.x versions. ...
... Required tools You will need two tools. ...
2006-09-29 - Archive of obsolete content
He is also asking if there are developers out there who know the TB core and are willing to help him out. Discussions Developer documentation issues for
Thunderbird 2 Eric Shepherd has requested feedback for any developer documentation issues that might need dealing with for
Thunderbird 2. ...
... Meetings None for this week. ...
...ently putting the development of the extension on hold due to several issues (more details available at the website). He is also asking if there are developers out there who know the TB core and are willing to help him out. Discussions Developer documentation issues for
Thunderbird 2 Eric Shepherd has requested feedback for any developer documentation issues that might need dealing with for
Thunderbird 2. Meetings None for this week. ...
2006-10-06 - Archive of obsolete content
Hence, they are looking for a Mac user to test out the new features by building a mac.rdf file with all of the various .mac account properties mentioned in the document here. Discussions Is
Thunderbird using a valid W3C coding? Peter Lairo requested someone who are knowledgeable in W3C standards to confirm if the use of <blockquote type="cite"> is valid W3C code. ...
... needed Scott MacGregor announced that .mac support and a dynamically add ISP account feature has been added to the
Thunderbird account manager, however, testing is required before release can be issued. Hence, they are looking for a Mac user to test out the new features by building a mac.rdf file with all of the various .mac account properties mentioned in the document here. Discussions Is
Thunderbird using a valid W3C coding? Peter Lairo requested someone who are knowledgeable in W3C standards to confirm if the use of <blockquote type="cite"> is valid W3C code. Q & A Q: Walt experienced an unusual behaviour in his build and wanted to perform an experiment to figure out the problem, but he couldn't find the mozilla.org's config file. A: Robert Helmer pointed out the mozilla.org's config ...
...usual behaviour in his build and wanted to perform an experiment to figure out the problem, but he couldn't find the mozilla.org's config file. A: Robert Helmer pointed out the mozilla.org's config file could be found here and to look for -->mozconfig<---------------------------------------- -->end mozconfig<---------------------------------------- Updated: Developer documentation issues for
Thunderbird 2 Eric Shepherd has requested feedback for any developer documentation issues that might need dealing with for
Thunderbird 2. Discussion highlights: Ziga Sancin suggests writing an introductory article for potential developers containing basic project information (history, list of main developers, project goals, roadmap and available communication channels, etc), tools needed to start developi...
omni.ja (formerly omni.jar)
This change was needed to prevent Firefox from becoming corrupted. Inspecting and repacking omni.ja Note: When extracting omni.ja, you may incorrectly get false warnings from some virus protection software. ...
...This change was needed to prevent Firefox from becoming corrupted. Inspecting and repacking omni.ja Note: When extracting omni.ja, you may incorrectly get false warnings from some virus protection software. ...
...ection; editing extracted files won't affect Firefox, and repacking edited files may break Firefox if you do not use the right options when packing the extracted files. The correct command to pack omni.ja is: zip -0DXqr omni.ja * The working directory must be at the root directory of the files from the omni.ja file. zip -0DXqr omni.ja path/to/omni/* will not work. Note: Prior to Firefox 10 and
Thunderbird 10, omni.ja was called omni.jar. omni.ja contents The omni.ja file contains assorted application resources: chrome.manifest The chrome manifest file. /chrome/ User interface files for the application /chrome/localized.manifest Manifest of localized content; referenced by the main chrome manifest file. /chrome/nonlocalized.manifest Manifest of non-localized content; referenced by the m...
Obsolete Build Caveats and Tips
s not supported. Warning: Due to a bug in old versions of MozillaBuild (prior to 1.6), if you download version 7.1 of the Windows 7 SDK (which is the current version available), your build will fail, often while building cairo with "ocidl.h" errors. In order to fix this issue, you need to use the latest version of MozillaBuild. Windows Vista SDK Obsolete since Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This is the SDK that mozilla-1.9.1 (Firefox 3.5) builds used to be built against. Features that depend on this SDK include: Windows Vista parental controls File associations and application registration on Vista and a...
... it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This is the SDK that mozilla-1.9.1 (Firefox 3.5) builds used to be built against. Features that depend on this SDK include: Windows Vista parental controls File associations and application registration on Vista and above Ability to display the UAC shield icon in the UI
Thunderbird Windows Search integration Text Services Framework support There are two ways to obtain it: Download the Windows Vista SDK from the Microsoft Download Center. You may choose not to install the Sample Code and Documentation to save space and download time. If you are using Windows XP, you must have Windows XP Service Pack 2 and .NET Framework 2.0 installed before installing the Vis...
...oad time. If you are using Windows XP, you must have Windows XP Service Pack 2 and .NET Framework 2.0 installed before installing the Vista SDK. Use Visual Studio 2008 Professional. Gecko 1.9.2 through 11: If you would like to use this SDK, add ac_add_options --with-windows-version=600 to your .mozconfig. Windows Server 2003 R2 Platform SDK Obsolete since Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This is your only option if you're on Windows 2000. This also used to be necessary for building a default Gecko 1.9.2 through 8 with Visual C++ Express editions (see atlbase.h for more). You can download the SDK from the...
Index
ocalization (L10n) is the process of translating software user interfaces from one language to another and adapting it to suit a foreign culture. These resources are for anyone with an interest in the technical aspects involved in localization. 2 Application Translation with Mercurial Android, Draft, Editing, Firefox, Lightning, Localization, Mercurial, SeaMonkey, Translate, patch,
thunderbird First, get the required programs to compile Mozilla applications like Firefox and
Thunderbird from Build Instructions. This is only necessary once. 3 Bootstrapping a new locale Localization, Mercurial, Translate, bit bucket (see also https://developer.mozilla.org/en/Create_a_new_localization) 4 Encodings for localization files Internationalization, Locali...
...Build documentation, Internationalization, Localization In Mozilla, we use the the Mercurial version control system (Hg) to manage our source code and localizations. Mercurial allows localizers to work locally (on their machines) and then push (an Hg term) changes to a remote repository, which usually is hosted on the Mozilla servers (hg.mozilla.org). Localizing current versions of Firefox,
Thunderbird and SeaMonkey includes working with Mercurial. If the documentation is incomplete or you have questions, please drop by the #l10n or #hg channels on irc.mozilla.org. The Mercurial FAQ are also worth a read, should you run into trouble. 25 Localizing with Mozilla Translator Guide, Localization, Translator, l10n No summary! 26 Localizing with Pontoon Junk, Locali...
...n Localization Say you have found a problem with an existing localization. More specifically, it's a problem with an already released localization. What do you do now? Well, you have come to the right place! This page will walk you through creating a patch for an existing localization. The steps below are fairly generic; for the most part they apply to creating l10n patches for Firefox,
Thunderbird, SeaMonkey, or Calendar. 32 SVN for Localizers Intro, Localization, SVN, opensource Welcome to the SVN tutorial for localizers! Here you'll learn the process of using SVN to obtain Mozilla website source files from the Mozilla servers and pushing your localizations right back to them. First things first, we need to give you a brief introduction to what SVN is and where you ca...
Localizing with Mercurial
In Mozilla, we use the the Mercurial version control system (Hg) to manage our source code and localizations. Mercurial allows localizers to work locally (on their machines) and then push (an Hg term) changes to a remote repository, which usually is hosted on the Mozilla servers (hg.mozilla.org). Localizing current versions of Firefox,
Thunderbird and SeaMonkey includes working with Mercurial. If the documentation is incomplete or you have questions, please drop by the #l10n or #hg channels on irc.mozilla.org. The Mercurial FAQ are also worth a read, should you run into trouble. For the eager and quick, below you'll find instructions on installing and configuring Mercurial, instructions on receiving an Hg account commit priviledges, as well as a few tasks you can complete without account pri...
...am Files\Mercurial\. Now that you've installed and configured Mercurial, here are a few tasks you can do without Hg commit access priviledges. Cloning and updating repositories There are a couple of repostiories that contain en-US source files that most locales will want to deal with. mozilla-central contains the files for Firefox Nightly. comm-central contains the files for SeaMonkey and
Thunderbird which are not already part of Firefox. l10n-central contains all of the L10n repos for Firefox Nightly. When you get the comm-central repository, this will include the mozilla-central repository as well. You can therefore use the one set up for developing Firefox, SeaMonkey and
Thunderbird without having to pull mozilla-central a second time. Here's how to get (or clone) your en-US source f...
...en-US source files for the first time: Run the following command in the command line to get the source en-US files for Firefox: hg clone https://hg.mozilla.org/mozilla-central/ This will create a clone of the mozilla-central repository in the directory mozilla-central. Run the following commands in the command line to get the source en-US files for any combination of Firefox, SeaMonkey,
Thunderbird: hg clone https://hg.mozilla.org/comm-central/ cd comm-central python client.py checkout The first command will create a clone of the comm-central repository. The second command will move you into that directory. The third command will do a clone of mozilla-central, and pull some other hg repositories. The other directories are required for SeaMonkey and
Thunderbird. Cloning your localizat...
What every Mozilla translator should know
Here we can easily have a look into other languages translations. Bugzilla, the bug-tracking system You do need an account in Bugzilla You should configure the account to Watch the following addresses: firefoxl10n@hotmail...
...Here we can easily have a look into other languages translations. Bugzilla, the bug-tracking system You do need an account in Bugzilla You should configure the account to Watch the following addresses: firefoxl10n@hotmail.com calendar-l10n@mozilla.bugs (specific for calendar ...
...see the result of the build process. Once you have made some changes in Mercurial, as soon as the next build is done you can check the Tinderbox and see if something was wrong. ...
Signing Mozilla apps for Mac OS X
On Mac OS X, part of this infrastructure is automatic signing of the ".app" folder using Apple's codesign tool. ...
...On Mac OS X, part of this infrastructure is automatic signing of the ".app" folder using Apple's codesign tool. ...
... it. However, to modify Apple's automatic signing process (for example, to exclude a file or folder), you'll need to provide this file.. Once the application bundle is signed, this file will contain the hashes/checksums of all files that are included in the signature. If any file is subsequently changed, the folder will no longer validate. The CodeResources file used to sign official Firefox and
Thunderbird builds is available in mozilla-central. For more details on using the CodeResources file, refer to the Code Resources section on Erick Dransch's blog post about code signing. ...
extISessionStorage
Method overview These methods are usually accessed via Application.storage. ...
... Method overview These methods are usually accessed via Application.storage. ...
... aName The name of an item Return value get() Gets the value of a storage item with the given name. Returns a default value if the item does not exist. nsIVariant get(in AString aName, in nsIVariant aDefaultValue) Parameters aName The name of an item Return value value of the item or the given default value if no item exists with the given name. See also FUEL (Firefox), STEEL (
Thunderbird) and SMILE (SeaMonkey) ...
mozIVisitInfoCallback
void handleError( in nsresult aResultCode, in mozIPlaceInfo aPlaceInfo ); Parameters aResultCode nsresult indicating the reason why the ...
..., title change, or GUID change when passed to mozIAsyncHistory.updatePlaces(). If more than one operation is done for a given visit, this method is only called once (for all changes at once). void handleResult( in mozIPlaceInfo aPlaceInfo ); Parameters aPlaceInfo The information that was entered into the database. onComplete() Obsolete since Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5) Called for each visit added, title change, or GUID change when passed to mozIAsyncHistory.updatePlaces(). void onComplete( in nsresult aResultCode, in mozIPlaceInfo aPlaceInfo ); Parameters aResultCode nsresult of the change indicating success or failure reason. aPlaceInfo The information that was being entered into the database. Notes This met...
...o mozIAsyncHistory.updatePlaces(). void onComplete( in nsresult aResultCode, in mozIPlaceInfo aPlaceInfo ); Parameters aResultCode nsresult of the change indicating success or failure reason. aPlaceInfo The information that was being entered into the database. Notes This method was replaced by the separate handleResult() and handleError() methods in Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5). See also mozIVisitInfo mozIAsyncHistory ...
nsIAccessibleDocument
accessible/public/nsIAccessibleDocument.idlScriptable An interface for in-process accessibility clients that wish to retrieve information about a document. When accessibility is turned on in Gecko, there is an nsIAccessibleDocument for each document whether it is XUL, HTML or whatever. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) You can QueryInterface to nsIAccessibleDocument from the nsIAccessible or nsIAccessNode for the root node of a document. You can also get one from nsIAccessNode.GetAccessibleDocument() or nsIAccessibleEvent.GetAccessibleDocument() Method overview nsIAccessible getAccessibleInParentChain(in nsIDOMNode aDOMNode, in boolean aCanCreate); Obsolete since Gecko 2.0 nsIAccessNode getCachedAcces...
...Read only. window nsIDOMWindow The nsIDOMWindow that the document resides in. Read only. windowHandle voidPtr The window handle for the OS window the document is being displayed in. For example, in Windows you can static cast it to an HWND. Read only. Native code only! Methods getAccessibleInParentChain() Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Returns the first accessible parent of a DOM node. Guaranteed not to return null if the DOM node is in a document. nsIAccessible getAccessibleInParentChain( in nsIDOMNode aDOMNode, in boolean aCanCreate ); Parameters aDOMNode The DOM node we need an accessible for. aCanCreate If true, this method can create a new accessible. Otherwise, it will return th...
...oolean aCanCreate ); Parameters aDOMNode The DOM node we need an accessible for. aCanCreate If true, this method can create a new accessible. Otherwise, it will return the first cached accessible in the parent chain. Return value The first nsIAccessible found by crawling up the DOM node to the document root. Native code only!getCachedAccessNode Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Returns the access node cached by this document. nsIAccessNode getCachedAccessNode( in voidPtr aUniqueID ); Parameters aUniqueID The unique ID used to cache the node. This matches up with the uniqueID attribute on...
nsICacheService
netwerk/cache/public/nsICacheService.idlScriptable Handles visiting and evicting entries operations along with the creating of cache sessions and creation of temporary client IDs operations for offline caching. 66 Introduced Gecko 1.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) This interface is no longer supported and planned to be removed soon: use nsICacheStorageService instead. At the time of writing there is no documentation for nsICacheStorageService but comments are available in the source. Note: Starting in Gecko 2.0, cache I/O is handled asynchronously. Method overview nsICacheSession createSession(in string clientID, in nsCacheStoragePolicy storagePolicy, in boolean streamBased); ...
...om the returned session. streamBased Indicates whether or not the data being cached can be represented as a stream. The storagePolicy must be consistent with the value of this field. For example, a non-stream-based cache entry can only have a storage policy of STORE_IN_MEMORY. Return value Returns a new cache session. createTemporaryClientID() Obsolete since Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This method creates and returns a unique, temporary cache client ID. This is used by the offline cache. The offline cache lets clients accumulate entries in a temporary client and merge them in as a group using nsIOfflineCac...
... This method is deprecated. evictEntries() This method evicts all entries in all devices implied by the storage policy. Note: This function may evict some items but will throw if it fails to evict everything. void evictEntries( in nsCacheStoragePolicy storagePolicy ); Parameters storagePolicy The cache storage policy. init() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Initialize the cache service. void init(); Parameters None. Exceptions thrown Missing Exception Missing Description shutdown() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Shutdown() the cache service. void shutdown(); Parameters None. visitEntries() This method visits entries stored in the cach...
nsIDNSService
To access the service, use: var dnsService = Components.classes["@mozilla.org/network/dns-service;1"] .createInstance(Components.interfaces.nsIDNSService); Note: Starting in Gecko 7.0, the "happy eyeballs" strategy is used to reduce lengthy timeouts when attempting backup connections during attempts to connect from clients that have broken IPv6 connectivity. ...
...parameter (may be null). If not null, this parameter specifies the nsIEventTarget of the thread on which the listener's onLookupComplete should be called. If this parameter is null, then onLookupComplete will be called on an unspecified thread (possibly recursively). Return value An object that can be used to cancel the host lookup. init() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Called to initialize the DNS service. void init(); Parameters None. resolve() Called to synchronously resolve a host name. Warning this method may block the calling thread for a long period of time. It is extremely unwise to call this function on the User Interface thread of an application. nsIDNSRecord resolve( in AUTF8String aHostName, in unsigned long aFlags ...
...TF8String aHostName, in unsigned long aFlags ); Parameters aHostName The host name or IP-address-literal to resolve. aFlags A bitwise OR of the Resolve flag constants. Return value DNS record corresponding to the given host name. Exceptions thrown NS_ERROR_UNKNOWN_HOST If host could not be resolved. shutdown() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Called to shutdown the DNS service. Any pending asynchronous requests will be canceled, and the local cache of DNS records will be cleared. Note: The operating system may still have its own cache of DNS records, which would be unaffected by this method. void shutdown(); Parameters None. Example let DnsService = Components.classes["@mozilla.org/network/dns-service;1"...
nsIDOMWindowUtils
dom/interfaces/base/nsIDOMWindowUtils.idlScriptable This interface is a DOM utility interface that provides useful DOM methods and attributes. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 49.0 (Firefox 49.0 /
Thunderbird 49.0 / SeaMonkey 2.46) Implemented by: Window. To get this interface, use: var domWindowUtils = window.windowUtils; Method overview void activateNativeMenuItemAt(in AString indexString); void clearMozAfterPaintEvents(); PRUint32 compareCanvases(in nsIDOMHTMLCanvasElement aCanvas1, in nsIDOMHTMLCanvasElement aCanvas2, out unsigned long aMaxDifference); double computeAnimationDistance(in nsIDOMElement element, in AString property, in AString value1, in AString value2); ...
...inates outside the viewport. aFlushLayout If true, layout is flushed before hit testing begins. This ensures that the node list is current. If you don't need an absolutely up to date node list, you can set this to false. Return value An nsIDOMNodeList referencing all the nodes that intersect the specified rectangle. processUpdates() Obsolete since Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10) Force processing of any queued paints. void processUpdates(); Parameters None. purgePCCounts() Purge all accumulated profile information for scripts which was generated after a call to stopPCCountProfiling(). void purgePCCounts(); Parameters None. redraw() Force an immediate redraw of this window. The parameter specifies the number of times to redraw,...
...g aClickCount, in long aModifiers, in boolean aIgnoreRootScrollFrame Optional ); Parameters aType aX aY aButton aClickCount aModifiers Modifiers pressed. Using constants defined in nsIDOMNSEvent. Obsolete since Gecko 15.0 Using constants defined as MODIFIER_*. aIgnoreRootScrollFrame Optional sendMouseScrollEvent() Obsolete since Gecko 17.0 (Firefox 17.0 /
Thunderbird 17.0 / SeaMonkey 2.14)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Synthesize a mouse scroll event for a window. The event types supported are: DOMMouseScroll MozMousePixelScroll. Events are sent in coordinates offset by aX and aY from the window. Cannot be accessed from unprivileged ...
nsIDocShell
Do not create an instance directly. Instead, retrieve an nsIDocShell from a browser or other document container element. Note that out-of-process browsers do not have an nsIDocShell; instead you can access the nsIDocShell object from a frame script. ...
...). ENUMERATE_FORWARDS 0 Used by getDocShellEnumerator()to determine the direction of the enumeration. ENUMERATE_BACKWARDS 1 Used by getDocShellEnumerator()to determine the direction of the enumeration. APP_TYPE_UNKNOWN 0 This is the default value of the appType attribute. APP_TYPE_MAIL 1 This is the value of the appType attribute used by
Thunderbird and SeaMonkey to indicate that email messages are displayed in this window. APP_TYPE_EDITOR 2 This is the value of the appType attribute used by
Thunderbird and SeaMonkey to indicate that email messages or web pages are composed in this window. BUSY_FLAGS_NONE 0 Returned by the busyFlags attribute when the nsIDocShell is not loading a document. BUSY_FLAGS_BU...
...on Notify the associated content viewer and all child docshells that they are about to be hidden. If isUnload is true, then the document is being unloaded as well. void firePageHideNotification( in boolean isUnload ); Parameters isUnload If true, fire the unload event in addition to the pagehide event. Native code only!fireUnloadNotification Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Notify the associated content viewer and all child docshells that they are about to be unloaded. void fireUnloadNotification(); Parameters None. getDocShellEnumerator() Get an enumerator over this docShell and its children...
nsIDownloadProgressListener
/toolkit/components/downloads/nsIDownloadProgressListener.idlScriptable This interface gives applications and extensions a way to monitor the status of downloads being processed by the Download Manager. Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) To use simply implement this interface in your code, then call nsIDownloadManager.addListener() to start listening. When you no longer need to listen to the Download Manager's state, call nsIDownloadManager.removeListener() to stop listening. As the states of downloads change, the methods described here are called by the Download Manager so your code can take whatever steps it needs to. This interface works very similarly to the nsIWebProgress interface. It is important to note tha...
...short aState, in nsIDownload aDownload ); Parameters aState The previous state of the download. See nsIDownloadManager.Constants for a list of possible values. aDownload The nsIDownload object representing the file whose download status has changed. You can get the new state of the download from this object. onLocationChange() Obsolete since Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) void onLocationChange( in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI aLocation, in nsIDownload aDownload ); Parameters aWebProgress The nsIWebProgress instance used by the Download Manager to monitor downloads. aRequest The nsIChannel that changed state. This parameter will not be null. aLocation The URI of the file being downlo...
...nload's new state. This value is a combination of one of the nsIWebProgressListener.State_Transition_Flags. aStatus The new state information for the download. See nsIWebProgressListener.onStateChange() for details. This can also be one of the nsIDownloadManager.Constants. aDownload The download whose state changed. onStatusChange() Obsolete since Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Called when the status of a download request has changed. The received status message is intended to be displayed visibly to the user. Note: If source and destination are identical, which is possible in case of file URLs or chrome URLs, this is called even in Gecko 1.9.2. In such a situation no further event handlers are called and the stop flag is set; if there a...
nsIHttpChannel
aders( in nsIHttpHeaderVisitor aVisitor ); Parameters aVisitor An nsIHttpHeaderVisitor instance allowing to visit all original response headers. visitRequestHeaders() Call this method to visit all request headers. Warning: Calling setRequestHeader(), setReferrerWithPolicy() or setEmptyRequestHeader() while visiting request headers has undefined behavior until Gecko 47 (Firefox 47.0 /
Thunderbird 47.0 / SeaMonkey 2.44). Starting from Gecko 48 (Firefox 48.0 /
Thunderbird 48.0 / SeaMonkey 2.45) they will return a NS_ERROR_FAILURE. void visitRequestHeaders( in nsIHttpHeaderVisitor aVisitor ); Parameters aVisitor The header visitor instance. visitResponseHeaders() Call this method to visit all response headers. Warning: Calling setResponseHeader() while visiting response header...
... void visitResponseHeaders( in nsIHttpHeaderVisitor aVisitor ); Parameters aVisitor The header visitor instance. Exceptions thrown NS_ERROR_NOT_AVAILABLE If called before the response has been received (before onStartRequest()). ...
...URE. void visitRequestHeaders( in nsIHttpHeaderVisitor aVisitor ); Parameters aVisitor The header visitor instance. visitResponseHeaders() Call this method to visit all response headers. Warning: Calling setResponseHeader() while visiting response headers has undefined behavior until Gecko 48 (Firefox 48.0 /
Thunderbird 48.0 / SeaMonkey 2.45). Starting from Gecko 49 (Firefox 49.0 /
Thunderbird 49.0 / SeaMonkey 2.46) it will return a NS_ERROR_FAILURE. void visitResponseHeaders( in nsIHttpHeaderVisitor aVisitor ); Parameters aVisitor The header visitor instance. Exceptions thrown NS_ERROR_NOT_AVAILABLE If called before the response has been received (before onStartRequest()). Note: Starting from Firefox 49, empty headers will be returned in case the preference network.
nsIJSON
However, you should use native JSON instead if at all possible. Implemented by: @mozilla.org/dom/json;1. ...
... Note: This method is more flexible than it should be, and accepts some not-correctly-structured JSON. For that reason, it has been removed in Gecko 7.0. JSObject decode( in AString str ); Parameters str The JSON string to decode. Return value The original JavaScript object, reconst...
...esents. JSObject decodeFromStream( in nsIInputStream stream, in long contentLength ); Parameters stream The nsIInputStream from which to read the JSON string. contentLength The length of the JSON string to read. Return value A JSObject which is the original JavaScript object, reconstructed from the JSON string. encode() Obsolete since Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4) Encodes a JavaScript object into a JSON string. AString encode( in JSObject value ); Parameters value The JavaScript object to encode. Return value A JSON string representing the object. encodeFromJSVal() Note: This method may only be used from native code, and provides a way to encode a jsval to a JSON string for use in your native code. AString ...
nsIMemoryReporter
xpcom/base/nsIMemoryReporter.idlScriptable Reports memory usage information for a single area of the software. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5) Any piece of code that wishes to allow its memory use to be monitored may create an nsIMemoryReporter object and then register it by calling nsIMemoryReporterManager.registerReporter(). Once that has been done, the reporter will be found by any client accessing the enumerator returned by nsIMemoryReporterManager.enumerateReporters(). This includes the about:memory page. Note: This interface is undergoing heavy development, and is subject to rapid changes. Attributes Attribute Type Description amount ...
...out:memory page. Note: This interface is undergoing heavy development, and is subject to rapid changes. Attributes Attribute Type Description amount PRInt64 The numeric value reported by the memory reporter, specified in the units indicated by the units attribute. Read only. Note: This attribute was called memoryUsed prior to Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4), and its type was long long. description AUTF8String A human-readable description of this memory usage report. Read only. kind PRInt32 The memory kind, one of the Memory reporter kind constants below. Read only. path AUTF8String The path that this memory usage should be reported under. Paths are delimited with '/' characters t...
...d synonym for KIND_NONHEAP. Deprecated since Gecko 8.0 KIND_NONHEAP 0 Allocated directly by OS calls e.g. mmap, VirtualAlloc, vm_allocate etc. KIND_HEAP 1 Allocated by the heap allocator, e.g. malloc, new etc. KIND_OTHER 2 An allocation that does not fit into another KIND category. Unit type constants Requires Gecko 7.0(Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4) The amount reported by a memory reporter may use one of the following units. Constant Value Description UNITS_BYTES 0 The amount is specified as a number of bytes. UNITS_COUNT 1 The amount is an instantaneous count of things currently in existence. For example, the number of tabs currently open. UNITS_COUNT_CUMULATIVE ...
nsIMsgCustomColumnHandler
mailnews/base/public/nsIMsgCustomColumnHandler.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9 (Firefox 3) Inherits from: nsITreeView This interface is meant to be implemented by extensions, as shown in the tutorial. The interface inherits from nsITreeView, however when you're implementing a custom handler in Javascript its not necessary to implement all of nsITreeView's methods. ...
...r) { return ""; }, isString: function() {return true;}, getCellProperties: function(aRow, aCol, aProps) { }, getRowProperties: function(aRow, aProps) { }, getImageSrc: function(aRow, aCol) {return null;}, getSortLongForRow: function(aHdr) {return 0;} } to attach it use the nsIMsgDBView.addColumnHandler() method (recall gDBView is the global nsIMsgDBView in
Thunderbird): gDBView.addColumnHandler("newColumn", columnHandler); after which it can be retrieved using the nsIMsgDBView.getColumnHandler() method: var handler = gDBView.getColumnHandler("newColumn"); and removed using the nsIMsgDBView.removeColumnHandler() method: gDBView.removeColumnHandler("newColumn"); Method overview AString getSortStringForRow(in nsIMsgDBHdr aHdr); unsigned long getSortLon...
...ue The long value that sorting will be done with. ...
nsINavHistoryObserver
toolkit/components/places/nsINavHistoryService.idlScriptable This interface is similar to the nsIRDFObserver class, but is used to observe interactions on the global history. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 21.0 (Firefox 21.0 /
Thunderbird 21.0 / SeaMonkey 2.18) Warning: If you are in the middle of a batch transaction, there may be a database transaction active. You can still access the database in this situation but be careful (of what?). Method overview void onBeforeDeleteURI(in nsIURI aURI, in ACString aGUID); Obsolete since Gecko 21.0 void onBeginUpdateBatch(); void onClearHistory(); void onDeleteURI(in nsIURI aURI, in ACString aGUID); void onDeleteVisits(in nsIURI ...
...nsIURI aURI, in long long aVisitID, in PRTime aTime, in long long aSessionID, in long long aReferringID, in unsigned long aTransitionType, in ACString aGUID, out unsigned long aAdded); Constants Constant Value Description ATTRIBUTE_FAVICON 3 The page's favicon changed. Methods onBeforeDeleteURI() Obsolete since Gecko 21.0 (Firefox 21.0 /
Thunderbird 21.0 / SeaMonkey 2.18) Note: This method was removed in Gecko 21.0 as part of Bug 826409. The specified page and all its visits are about to be deleted. Note: The page does not necessarily have to have ever existed for this function to be called. Delete notifications aren't quite 100% accurate. Batch delete operations take place in two steps; the notifications come first, followed b...
...e been added yet. This needs to be clarified; what are TYPED and HIDDEN? void onPageChanged( in nsIURI aURI, in unsigned long aWhat, in AString aValue ); Parameters aURI The URI of the page on which an attribute changed. aWhat The attribute whose value changed. aValue The attribute's new value. onPageExpired() Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Note: This method was removed in Gecko 2.0. Use onDeleteVisits() instead. Called when a history entry expires. This notification is sent to indicate that a specific visit has expired, and includes the time of that visit. When the last visit for a history entry expires, the history entry itself is deleted and the aWholeEntry parameter is true. If your code only care...
Component; nsIPrefBranch
Component: nsIPrefBranch modules/libpref/public/nsIPrefBranch.idlScriptable This interface is used to manipulate the preferences data. This object may be obtained from the preferences service (nsIPrefService) and used to get and set default and/or user preferences across the application. Inherits from: nsISupports Last changed in Gecko 58 (Firefox 58 /
Thunderbird 58 / SeaMonkey 2.55) This object is created with a "root" value which describes the base point in the preferences "tree" from which this "branch" stems. Preferences are accessed off of this root by using just the final portion of the preference. For example, if this object is created with the root "browser.startup.", the preferences "browser.startup.page", "browser.startup.homepage", and "browser.startup.homepage_override" ...
... in string aPrefName, [optional] in string aDefaultValue ); Parameters aPrefName The string preference to retrieve. aDefaultValue Requires Gecko 54 Optional - a default value to use if the preference does not exist (instead of throwing an exception). Return value Returns string - The value of the requested string preference. getStringPref() Requires Gecko 58 (Firefox 58 /
Thunderbird 58 / SeaMonkey 2.55) Called to get the state of an individual UTF-8 string preference. utf8string getStringPref( in string aPrefName, [optional] in utf8string aDefaultValue ); Parameters aPrefName The string preference to retrieve. aDefaultValue Optional - a default value to use if the preference does not exist (instead of throwing an exception). Return value Returns utf8tring -...
...ondering what is the maximum amount of data you can store in a string preference, consider storing data separately, for example in a flat file or an sqlite database. void setCharPref( in string aPrefName, in string aValue ); Parameters aPrefName The string preference to set. aValue The string value to set the preference to. setStringPref() Requires Gecko 58 (Firefox 58 /
Thunderbird 58 / SeaMonkey 2.55) Called to set the state of an individual UTF-8 string preference. Note: The preferences system is not designed to store large amounts of data: all preferences are stored in a single file, which is read at the application startup. If you find yourself wondering what is the maximum amount of data you can store in a string preference, consider storing data separately, for exa...
nsIPrincipal
caps/nsIPrincipal.idlScriptable Provides the interface to a principal, which represents a security context. On the web, for example, a typical principal is comprised of an URL scheme, host, and port. Inherits from: nsISerializable Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) For details on principals, how they work, and how to get the appropriate one, see Security check basics. Method overview short canEnableCapability(in string capability); Native code only! void checkMayLoad(in nsIURI uri, in boolean report); void disableCapability(in string capability, inout voidPtr annotation); Native code only! void enableCapability(in string capability, inout voidPtr annotation); Native code only! boolean equals(in nsIPrinci...
... Missing Description checkMayLoad() Checks whether this principal is allowed to load the network resource located at the given URI under the same-origin policy. This means that codebase principals are only allowed to load resources from the same domain, the system principal is allowed to load anything, and null principals are not allowed to load anything. Note: Prior to Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1), this was not available to scripts. If the load is allowed this function does nothing. If the load is not allowed the function throws NS_ERROR_DOM_BAD_URI. Note: Other policies might override this, such as the Access-Control specification. Note: The 'domain' attribute has no effect on the behaviour of this function. void checkMayLoad( in nsIURI uri, in boolean report ); ...
...g Description canEnable Missing Description Exceptions thrown Missing Exception Missing Description subsumes() Returns whether the other principal is equal to or weaker than this principal. Principals are equal if they are the same object, they have the same origin, or they have the same certificate ID. A principal always subsumes itself. Note: Prior to Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1), this was not available to scripts. The system principal subsumes itself and all other principals. A null principal (corresponding to an unknown, hence assumed minimally privileged, security context) is not equal to any other principal (including other null principals), and therefore does not subsume anything but itself. Both codebase and certificate principals are subsumed b...
nsISmsRequestManager
nsISmsRequestManager dom/sms/interfaces/nsISmsRequestManager.idlScriptable Used to manage SMS related requests and notifications for the WebSMS API 1.0 66 Introduced Gecko 13.0 Inherits from: nsISupports Last changed in Gecko 15.0 (Firefox 15.0 /
Thunderbird 15.0 / SeaMonkey 2.12) Implemented by: @mozilla.org/sms/smsrequestmanager;1. To create an instance, use: var smsRequestManager = Components.classes["@mozilla.org/sms/smsrequestmanager;1"] .createInstance(Components.interfaces.nsISmsRequestManager); Method overview long addRequest(in nsIDOMMozSmsRequest aRequest); long createRequest(in nsIDOMMozSmsManager aManager, out nsIDOMMozSmsRequest aRequest); void notifyCreateMessageList(in long aRequestId, in long aListId, in nsIDOMMoz...
...aRequestId, in nsIDOMMozSmsMessage aMessage ); Parameters aRequestId A number representing the id of the request. aMessage An SmsMessage. notifyGotSms() void notifyGotSms( in long aRequestId, in nsIDOMMozSmsMessage aMessage ); Parameters aRequestId A number representing the id of the request. aMessage An SmsMessage. ...
...aError A number with an error code. See constants. ...
nsIXULAppInfo
xpcom/system/nsIXULAppInfo.idlScriptable This interface provides information about the host application. It can be used to distinguish between different Mozilla-based applications. It provides application name, application version, Gecko version and more. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) In XULRunner applications nsIXULAppInfo obtains app-specific information from application.ini. Implemented by: @mozilla.org/xre/app-info;1. To create an instance, use: var xulAppInfo = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULAppInfo); The nsIXULRuntime interface is also implemented by "xre/app-info". It contains advanced i...
...r and update service. This has traditionally been in the form "{AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE}" but for new applications a more readable form is encouraged: "appname@vendor.tld". Only the following characters are allowed: a-z A-Z 0-9 - . @ _ { } * Read only. name ACString The name of the application. This must be ASCII, and is normally mixed-case, for example "Firefox", "
Thunderbird" or "SeaMonkey". Must not be null or an empty string. Read only. platformBuildID ACString The build ID/date of Gecko and the XULRunner platform. Read only. platformVersion ACString The version of Gecko or XULRunner platform, for example "1.8.1.19" or "1.9.3pre". In "Firefox 3.7 alpha 1" the application version is "3.7a1pre" while the platform version is "1.9.3pre" Re...
...ses["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULAppInfo); alert("Application Version: " + info.version + "\n" + "Gecko Version: " + info.platformVersion); Example This example here uses nsIXULAppInfo to get the version of the current browser and then compares it: Example - Compare current browser version See also Using nsIXULAppInfo nsIXULRuntime Get
Thunderbird version Firefox code snippets ...
Creating a gloda message query
See the gloda page for background on the component. See Gloda examples for more code samples. Creating your first message query... Import gloda Gloda's API is exposed in the "Gloda" object that is contributed to your namespace. ...
...earch against plaintext message bodies. query.attachmentTypes(mimeType1, mimeType2, ...): Constrain to messages with attachments among the given mime types. In theory, providing no arguments should result in finding messages with any attachment, but this is somewhat untested. More constraints can be found in the three js files given further below. From https://developer.mozilla.org/docs/Mozilla/
Thunderbird/
Thunderbird_extensions/Demo_Addon, Demo3, it seems that the attributeName given in these files is the constraintname to be used (e.g. query.subjectMatches(searchString) for message subject (compare fundattr.js line 145 ). Create a collection from the query Your listener is notified as messages are added to the collection as the database query completes. You may also see new messages show up...
...presented by a GlodaFolder instance. conversation: The conversation the message belongs to, as represented by a GlodaConversation instance. Somewhat magic attributes: headerMessageID: The contents of the Message-ID header of the message. You probably should not be using this. folderMessage: Return the nsIMsgDBHdr that corresponds to the message. An nsIMsgDBHdr is the low-level, old-school,
Thunderbird XPCOM representation of a message. You should not need to use this unless you are dealing with other old-school code or you need to manipulate the state of a message. In the future, the STEEL layer should provide wrappers to make manipulation clean and fun. Note that this message may return "null" if gloda is unable to locate the underlying message anymore. Attributes provided by fundattr.js: ...
Filelink Providers
Filelink is a
Thunderbird feature that makes it easy for users to upload large attachments to web-based storage services such as Hightail. This document explains how to extend
Thunderbird to support additional web-based storage services. nsIMsgCloudFileProvider Note: Cloudfiles and BigFiles were the two temporary feature names that were used while Filelink was under construction. Both refer to the Filelink feature. Filelink storage providers must implement the nsIMsgCloudFileProvider interface. The Hightail implementation is a great place to look for examples and inspiration. The nsIMsgCloudFileProvider implementation must be registered as a component. ...
...der construction. Both refer to the Filelink feature. Filelink storage providers must implement the nsIMsgCloudFileProvider interface. The Hightail implementation is a great place to look for examples and inspiration. The nsIMsgCloudFileProvider implementation must be registered as a component. If the provider is being merged into the comm-central code repository (and thus added to the official
Thunderbird build), you must also add the components to the cloudfile/cloudFileComponents.manifest, cloudfile/jar.mn, and installer/package-manifest.in. If the nsIMsgCloudFileProvider is being created as part of an add-on, the add-on must register the component in chrome.manifest. Also, you must add the component's contract ID to the "cloud-file" category. See cloudfile/cloudFileComponents.manifest for an e...
...must register the component in chrome.manifest. Also, you must add the component's contract ID to the "cloud-file" category. See cloudfile/cloudFileComponents.manifest for an example, as well as this document on chrome.manifest files. The Account Setup Dialog The account setup dialog allows the user to select what account type they would like to create from a menulist. Some providers require
Thunderbird to do very little in order to connect a user to their account. Other providers however may require the user to fill in additional details in order to connect to the service. Hightail, for example, requires a username and password. Other services may require the user to fill in a server string or port number. A provider implementation can choose what information it gets from the user from the set...
Mailnews and Mail code review requirements
This document describes the process for reviewing patches to the mozilla/mailnews and mozilla/mail directories.
Thunderbird and SeaMonkey are the primary users of the code in mozilla/mailnews.
Thunderbird's front-end code is stored in mozilla/mail. (A fair amount of this code is forked from code in the mailnews/ directory). Mailnews and Mail review rules Patches affecting
Thunderbird User Experience or Interfaces Note: It is recommended that when working on bugs that affect user experience or interfaces, that ui-review is obtained at an early stage in the patch development process. Getting early ui-reviews this reduces the chance that work is rejected due to needing further user experience changes, and hence is aimed at saving time for the developer and reviewers. All patches that aff...
...nded that when working on bugs that affect user experience or interfaces, that ui-review is obtained at an early stage in the patch development process. Getting early ui-reviews this reduces the chance that work is rejected due to needing further user experience changes, and hence is aimed at saving time for the developer and reviewers. All patches that affect user experience or interfaces on
Thunderbird should have ui-review on those patches in addition to the reviews required below. To obtained a ui-review on an attachment, set ui-review to '?' and enter :bwinton (for Blake Winton) as the requestee. Mike Conley (:mconley) can also provide useful feedback, but Blake is the current ultimate decider for UI choices in
Thunderbird. Rules for all patches affecting mailnews/ and mail/ ...
...ws, they should request a second review from an appropriate person. Super-review is required in certain situations: significant architectural refactoring, any change to any API, all changes that affect how code modules interact. See the full super-review policy for more details. Unit test rules Patches are required to include automated tests which are run during make check or via MozMill in
Thunderbird, but submitters are encouraged to request exceptions from reviewers in cases where the cost is believed to outweigh the benefit. Once unit tests are committed, the in-testsuite+ flag should be set on the bug. Unit tests must be included in patches and reviewed just like any other code. If an automated test framework is needed but is not yet available, the developer is encouraged to write approp...
Adding items to the Folder Pane
First, some necessary background on how the Folder Pane constructs the data it displays. The Folder Pane tracks modifications to a user's folders and accounts. ...
... First, some necessary background on how the Folder Pane constructs the data it displays. The Folder Pane tracks modifications to a user's folders and accounts. ...
...p at the appropriate time. Thus, our _insert function becomes _insert: function gne__insert() { // Only insert our nodes into the "all" mode if (gFolderTreeView.mode != "all") return; gFolderTreeView._rowMap.push(containerRow); }, Right now, clicking on these additional items has no effect. However, the complete example file includes code to display the number selected in
Thunderbird's main viewing pane, when such a number is selected in the Folder Pane. A note about the initial rebuild When
Thunderbird first starts up, the Folder Pane does an initial rebuild to get the first data it should display. Unfortunately, this rebuild will occur before an extension's "load" event fires. Thus, extensions may need to do manual insertions when this load event fires, if they want to ad...
Add Option to Context Menu
Assuming this on chrome.manifest: overlay chrome://messenger/content/mailWindowOverlay.xul chrome://myext/content/
thunderbird-overlay.xul Add the next in
thunderbird-overlay.xul. For
Thunderbird 2 <?xml version="1.0"?> <overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <menupopup id="messagePaneContext"> <menuitem id="my_option" label="My option concise and cool label" oncommand="alert('Hi')"/> </menupopup> </overlay> For
Thunderbird 3 <?xml version="1.0"?> <overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <popup id="mailContext"> <menuitem id="my_option" label="My option concise and co...
... oncommand="alert('Hi')"/> </menupopup> </overlay> For
Thunderbird 3 <?xml version="1.0"?> <overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <popup id="mailContext"> <menuitem id="my_option" label="My option concise and cool label" oncommand="alert('Hi')"/> </popup> </overlay> For
Thunderbird 2 and 3 in the same XPI If our extension needs to support
Thunderbird 2 and 3 we need to make custom overlays for each version. This can be reached by adding these lines to the chrome.manifest file: overlay chrome://messenger/content/mailWindowOverlay.xul chrome://myaddon/content/tbOverlay-tb2.xul appversion<3.0 overlay chrome://messenger/content/mailWindowOverlay.xul chrome://myaddon/content/t...
...For more details see Chrome Registration. ...
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 ... You must have a top-level chrome.manifest file which registers the chrome for the theme (as before) and also an install.rdf manifest that specifies metadata th...
... with minimum and maximum supported versions. ...
...Do not add to this list without contacting Benjamin Smedberg. Note that this page is included from the pages listed below. So: Don't Add Breadcrumbs! Structure of an Installable Bundle: describ...
customDBHeaders Preference
The mailnews.customDBHeaders preference will be our focus. Some of the functionality described here is really new, so please try to be understanding if some of these things change tomorrow (or have changed already). While I was going through the Creating a Custom Column guide, I built and used
thunderbird-2.0b1 checked-out from CVS with the
THUNDERBIRD_2_0b1_RELEASE tag. ...
...setting that exposes custom header data for use in a custom column within
Thunderbird's main view. The mailnews.customDBHeaders preference will be our focus. Some of the functionality described here is really new, so please try to be understanding if some of these things change tomorrow (or have changed already). While I was going through the Creating a Custom Column guide, I built and used
thunderbird-2.0b1 checked-out from CVS with the
THUNDERBIRD_2_0b1_RELEASE tag. There is a high probability that your experience will be different should you use an earlier release. Getting Started To build upon the Reply-To Column Tutorial, I'll describe the process I went through in developing a custom column to display a 'Superfluous' column within
Thunderbird's main view. The data will come from a cus...
...Special thanks go to Mr. Bienvenu for his patience and assistance in guiding me through this process. ...
Authoring MathML - MathML
Chrome') === -1; Mathematical fonts In order to get a good layout or to allow different style, it's important to have mathematical fonts available. It's always good to provide a link to MDN's Font Instructions, so that your visitors can verify whether they have appropriate fonts installed on their system. It's also good to provide a fallback with Web fonts. Prior to Gecko 31.0 (Firefox 31.0 /
Thunderbird 31.0 / SeaMonkey 2.28), it was a bit tedious to setup math fonts, see the font instructions for Mozilla 2.0. For Gecko 31.0 (Firefox 31.0 /
Thunderbird 31.0 / SeaMonkey 2.28), this is much simpler and is compatible with any Web rendering engine with MathML support. For example, here is a minimal stylesheet to use Latin Modern for the text and Latin Modern Math for the mathematics: @namespace url...
...1> <p> Square root of two: <math xmlns="http://www.w3.org/1998/Math/MathML"> <msqrt> <mn>2</mn> </msqrt> </math> </p> </body> </html> MathML in email and instant messaging clients Modern mail clients may send and receive emails in the HTML5 format and thus can use MathML expressions. Be sure to have the "send as HTML" and "view as HTML" options enabled. In
Thunderbird, you can use the "Insert HTML" command to paste your HTML+MathML code. MathBird is a convenient add-on for
Thunderbird to insert such MathML expressions using the AsciiMath input syntax. Moreover, a LaTeX-to-MathML input box has also been integrated into SeaMonkey since version 2.28 and into
Thunderbird since version 31. Again, the way MathML is handled and the quality of the MathML rendering dep...
...and Mathoid and can be used to to perform server-side LaTeX-to-MathML conversion. Instiki and MediaWiki are two wiki engines that support LaTeX-to-MathML conversion. Graphical Interface Input Box TeXZilla has several interfaces, including a CKEditor plugin used on MDN, an online demo, a Firefox add-on or a FirefoxOS Webapp. It has also been integrated into SeaMonkey since version 2.28 and into
Thunderbird since version 31. Abiword contains a small equation editor, based on itex2MML. Finally, Bluegriffon has an add-on to insert MathML formulas in your document, using ASCII/LaTeX-like syntax. WYSIYWG Editors Firemath is an extension for Firefox that provides a WYSIWYG MathML editor. A preview of the formula is displayed using the rendering engine of Mozilla. The generated MathML code is availabl...
Modules - Archive of obsolete content
t components, and enforcing logical boundaries between them. Unfortunately, JavaScript does not yet have native support for modules: it has to rely on the host application to provide it with functionality such as loading subscripts, and exporting/ importing names. We will show how to do each of these things using the built-in Components object provided by Xulrunner application such as Firefox and
Thunderbird. To improve encapsulation, each module should be defined in the scope of its own global object. This is made possible by the use of sandboxes. Each sandbox lives in its own compartment. A compartment is a separate memory space. Each compartment has a set of privileges that determines what scripts running in that compartment can and cannot do. We will show how sandboxes and compartments can be us...
...y the SDK to the Loader constructor to create the Cuddlefish loader. Loading Subscripts When a JavaScript project reaches a certain size, it becomes necessary to split it up into multiple files. Unfortunately, JavaScript does not provide any means to load scripts from other locations: we have to rely on the host application to provide us with this functionality. Applications such as Firefox and
Thunderbird are based on Xulrunner. Xulrunner adds a built-in object, known as Components, to the global scope. This object forms the central access point for all functionality provided by the host application. A complete explanation of how to use Components is out of scope for this document. However, the following example shows how it can be used to load scripts from other locations: const { classes: C...
cfx - Archive of obsolete content
DIR. PKGDIR may be specified as a full path or as a path relative to the current directory. --static-args=STATIC_ARGS Pass arguments to your add-on, in JSON format. Experimental Options -a APP, --app=APP By default, cfx run uses Firefox as the host application. This option enables you to select a different host. You can specify "firefox", "xulrunner", "fennec", or "
thunderbird". But note that at present only Firefox is supported. --no-run With this option cfx will not execute the command, but will print out the command that it would have used to execute the command. For example, if you type: cfx run ---no-run you will see something like: To launch the application, enter the following command: /path/to/firefox/firefox-bin -profile...
...ated in PKGDIR. PKGDIR may be specified as a full path or as a path relative to the current directory. --times=ITERATIONS Execute tests ITERATIONS number of times. Experimental Options -a APP, --app=APP By default, cfx test uses Firefox as the host application. This option enables you to select a different host. You can specify "firefox", "xulrunner", "fennec", or "
thunderbird". But note that at present only Firefox is supported. --check-memory Attempts to detect leaked compartments after a test run. --no-run With this option cfx will not execute the command, but will print out the command that it would have used to execute the command. For example, if you type: cfx run ---no-run you will see something like: To launch ...
Dialogs and Prompts - Archive of obsolete content
!-- Content --> </dialog> You need to implement onAccept and onCancel functions in your script. If they return anything but false, the dialog will be closed. Buttons in <dialog> Predefined There are six button types you can use in the buttons attribute of dialog. They are: accept -- OK button. cancel -- Cancel button. disclosure -- More Info button. help -- Help button (Doesn't work in
Thunderbird 1.0 bug 256915) extra1, extra2 -- Two buttons without any predefined labels or meaning. extra2 is positioned at the left side of the dialog (by default). For each of these buttons you can set their label, accesskey and oncommand handler by adding buttonlabel<buttonname>, buttonaccesskey<buttonname> and ondialog<buttonname> attributes to the dialog element. For example, to add an Apply button t...
...faultButton attributes and properties on the <dialog> element bug 284776. The possible values for the attribute are the names of buttons listed above, and the default is "accept", for compatibility with previous versions. Using <dialogheader> You can use the dialogheader element to add "headers" to windows. To get an idea of what it looks like, open Options (or Preferences) dialog in Firefox or
Thunderbird (v1.0 and earlier only). The header to the right of the sections buttons is made with <dialogheader>: <dialogheader title="General" description="whatever"/> Note, that you should only use this element in a <dialog>, because otherwise it may be not styled properly. (Although it seems to work in <window> as well). Programmatic button access If you want to access the accept ("OK") and cancel but...
JavaScript Debugger Service - Archive of obsolete content
However, JSD has been removed in favor of the Debugger API. See the tracking bug bug 800200 for more details. Snippets Acquiring the service We acquire the service by calling the XPCOM object. ...
...However, JSD has been removed in favor of the Debugger API. See the tracking bug bug 800200 for more details. Snippets Acquiring the service We acquire the service by calling the XPCOM object. ...
Miscellaneous - Archive of obsolete content
Example for Firefox: Services.startup.quit(Services.startup.eForceQuit|Services.startup.eRes...
...ollapses consecutive whitespaces into a single whitespace, and returns at most 150 characters, making it ideal to display text in context menus. It is defined at //github.com/RealityRipple/Pale-Moon/blob/master/palemoon/base/content/browser.js#L5113. Note that it returns the empty string (""), not false, when nothing is selected. getBrowserSelection() is not implemented on some platforms, such as
Thunderbird and Songbird. See also http://mxr.mozilla.org/seamonkey/source/browser/base/content/browser.js#4674 Discovering which element in the loaded document has focus // focusedControl stores the focused field, or null if there is none. // This excludes textareas for simplicity, but onPageLoad() can easily be // modified to cycle through textareas as well. Further enhancements would include // handlin...
Extension Etiquette - Archive of obsolete content
nd return the object itself. For instance, calling jQuery.noConflict(true) will remove the window.jQuery and window.$ variables, and return the jQuery object itself, for future use by the caller. When available, these methods should always be used to prevent conflicts with third-party code. Names and Metadata Naming Be creative! Don't be redundant and include "extension," "Mozilla/Firefox/
Thunderbird," or the version number in the name. Be original! Descriptions Use something that is descriptive, but that would fit in the default add-on manager width. The Mozilla extensions (Inspector/Reporter/Talkback) believe starting with a verb is the best way. For example, "Does an action in the browser." Documentation Assume that the vast majority of your users don't have inner working knowledge of ...
...ck) believe starting with a verb is the best way. For example, "Does an action in the browser." Documentation Assume that the vast majority of your users don't have inner working knowledge of Mozilla. Make sure your extension's homepage states the "obvious," including the purpose of your extension. Users also appreciate when your extension is shipped with a simple how-to document. IDs Firefox/
Thunderbird 1.5 or later are much more strict about the IDs of extensions than their 1.0 counterparts. Make sure they're valid. Version numbering Please follow the Mozilla pattern: major version dot current incarnation dot security/bugfix release (like 1.0.7). Internationalization Locales Always use locale DTDs and property files, even if providing your extension in one language. It will make translatio...
Multiple item extension packaging - Archive of obsolete content
ion of the individual packages it contains automatically. No other files besides the install.rdf Install Manifest and the files with a jar and xpi file extension will be extracted or utilized. install.rdf A multiple item package does not have the same requirements as an extension for its install.rdf. The only required properties are em:id, em:targetApplication, and em:type. For the Firefox and
Thunderbird 1.5 Extension Manager to determine that the package is a multiple item package, the em:type specified in your install.rdf must be 32 and specified as <em:type NC:parseType="Integer">32</em:type>. The XML namespace xmlns:NC="http://home.netscape.com/NC-rdf#" must also be declared in your install.rdf as shown below. ... <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:NC="http:/...
...be declared in your install.rdf as shown below. ... <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:NC="http://home.netscape.com/NC-rdf#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <!-- nsIUpdateItem type for a Multiple Item Package --> <em:type NC:parseType="Integer">32</em:type> ... For the Firefox and
Thunderbird 2.0 Extension Manager you can use the above syntax or <em:type>32</em:type> as shown below. ... <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"> <!-- nsIUpdateItem type for a Multiple Item Package --> <em:type>32</em:type> ... When specifying em:targetApplication the minVer...
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
For each element that I explain in this chapter, I will illustrate it with a source code example. You can type these examples up and open them in Firefox to see how they behave and appear. You can download a file with all the source code examples from: FIXME: Attache the translated tarball - Paul Task !. XUL display methods XUL is used almost exclusively in Mozilla applications like Firefox and
Thunderbird, and extensions for them, but other web browsers based on Firefox or the Gecko engine, and even web-based content also used XUL. For example, there is the Mozilla Amazon Browser, which helps with shopping at Amazon, and the Presentation Method in XUL, a tool for writing and displaying presentations To try out the code samples in this chapter, save them as text files with .xul extensions and drag...
...The ones shown in Table A below correspond to the common attributes in XUL. In fact, those XUL attributes operate through these CSS ...
Mozilla Documentation Roadmap - Archive of obsolete content
invaluable resource of information. Mozilla Blogs Several Mozilla community members maintain blogs that are updated frequently, often including information on API changes, bug fixes, useful tools and future release plans. Many of the tips and tricks included in this tutorial were discovered by reading these blogs. There are several useful feeds that you can follow using a feed reader, such as
Thunderbird. Here are some important feeds you should consider following: Planet Mozilla. This is the ultimate source for everything related to Mozilla. It brings together the feeds of most Mozilla employees, as well as several other members of the Mozilla community. Feeds are added frequently, so the information available through it will only grow with time. It can be hard to follow due of the sheer mass...
...and the Chatzilla extension works well for this purpose. Problems using IRC include: finding help when you have a big timezone difference with the United States, and no records of previously asked questions and their answers. Another somewhat obscure communication channel is the Mozilla Newsgroups. They are also very diverse and active, and there's a good chance you'll get your queries answered.
Thunderbird also comes in handy for reading and posting to the newsgroups. Another advantage is that discussions are archived and searchable through Google Groups. Other And finally, a couple resources you should also keep in mind: Other extensions. There are thousands of extensions out there, and you may strike luck and find one that does exactly what you need. Be sure to look at the license the extens...
Tabbed browser - Archive of obsolete content
no longer needed container.removeEventListener("TabOpen", exampleTabAdded, false); container.removeEventListener("TabMove", exampleTabMoved, false); container.removeEventListener("TabClose", exampleTabRemoved, false); Note: Starting in Gecko 1.9.1, there's an easy way to listen on progress events on all tabs. Notification when a tab's attributes change Requires Gecko 2.0(Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Starting in Gecko 2.0, you can detect when a tab's attributes change by listening for the TabAttrModified event. The attributes to which changes result in this event being sent are: label crop busy image selected function exampleTabAttrModified(event) { var tab = event.target; // Now you can check what's changed on the tab } // During initialization var contai...
...You can detect when a tab becomes pinned or unpinned by watching for the TabPinned and TabUnpinned events. function exampleTabPinned(event) { var browser = gBrowser.getBrowserForTab(event.tar...
Add-ons - Archive of obsolete content
both bootstrapped and traditional extensions. The user interface for the preferences defined with this new syntax appears in the extension's detail view in the Add-on Manager. This functionality originally appeared in Firefox mobile and is now available in Firefox on the desktop as well. Install Manifests An Install Manifest is the file an Add-on Manager-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. Interaction between privileged and non-privileged pages An easy way to send data from a web p...
... Some items mentioned are strict guidelines, meaning that if you don't follow them then your add-on will not be approved on Mozilla add-ons. Other items are recommendations. The difference will be clearly flagged. Setting up an extension development environment This article provides suggestions for how to set up your Mozilla application for extension development. These details apply to Firefox,
Thunderbird, and SeaMonkey (version 2.0 and above). Tabbed browser Here you should find a set of useful code snippets to help you work with Firefox's tabbed browser. The comments normally mark where you should be inserting your own code. Techniques ... ...
Index of archived content - Archive of obsolete content
open Merging TraceMonkey Repo SpiderMonkey coding conventions Autodial for Windows NT Automated testing tips and tricks Automatic Mozilla Configurator Enabling quicklaunch for all users How Mozilla finds its configuration files How
Thunderbird and Firefox find their configuration files Introduction Kill the XUL.mfl file for good Locked config settings Other Mozilla customization pages Protecting Mozilla's registry.dat file Automatically Handle Failed Asserts in Debug Builds BlackConnect Blackwood Bonsai B...
... mozilla-dev-apps-firefox 2006-09-29 2006-10-06 2006-10-13 2006-10-20 2006-10-26 2006-10-27 2006-11-03 2006-11-04 2006-11-10 2006-11-17 2006-11-24 2006-12-01 mozilla-dev-apps-
thunderbird 2006-09-29 2006-10-06 2006-10-13 2006-10-20 2006-10-27 2006-11-03 2006-11-10 2006-11-17 2006-11-24 2006-12-01 mozilla-dev-builds 2006-09-29 2006-10-06 2006-10-13 ...
Structure of an installable bundle - Archive of obsolete content
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 should be loaded for specific platforms. For example: binary-component components/windows/mycomponent.dll ABI=WINNT_x86-msvc binary-component components/mac/mycomponent.dylib ABI=Darw...
...ow 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 and compiler. The format of the platform string is: {OS_TARGET}_{TARGET_XPCOM_ABI} All of the files which are loaded from the main extension directory are loaded from the subdirectory /platform/{platform string} if it exists. For example, if...
Downloading Nightly or Trunk Builds - Archive of obsolete content
, but also least stable and most buggy state of the source. Trunk builds are provided so that one can execute tests without going to the trouble of building the source. The current trunk is mozilla 1.9.2. tinderbox builds. For the trunk and the latest two branches, there are machines at Mozilla and maybe elsewhere compiling builds as fast as they can make them for at least all three of Firefox,
Thunderbird and SeaMonkey on all three of Linux-i686, Mac-UniversalBinary and Win32. These are the "tinderbox builds", also known as "hourly builds" though it usually takes more than one hour to make one; they are followed by automatic tests and their main purpose is to check that nothing is horridly wrong with the latest change to the source: what they are doing is to constantly check that the current sourc...
...esters all over the world download them and test them, reporting as they go along on any bugs that hit them. Anyone can be a tester, you don't need to get approval before you can start testing. When people talk of "nightlies", they often mean "trunk nightlies", though there exist also "branch nightlies" which are somewhat less buggy but also not as "newest & greatest". For instance, one may use a
Thunderbird "branch nightly" as one's main e-mail client. Note that nightly builds may not be created for every platform for every night. If one has questions about the way a particular nightly was built, the best way to get that information is to download the executable, launch it, and then go to the "about:buildConfig" page, by typing this into the Location Bar. This should provide all the build flags and...
How to Write and Land Nanojit Patches - Archive of obsolete content
Adobe and Mozilla share a copy of Nanojit. This means that landing nanojit patches is a bit complicated, but experience has taught us that this is much better than having separate versions of nanojit. ...
...Adobe and Mozilla share a copy of Nanojit. This means that landing nanojit patches is a bit complicated, but experience has taught us that this is much better than having separate versions of nanojit. ...
When To Use ifdefs - Archive of obsolete content
Sometimes the same basic code is used for multiple projects, but there are small differences needed. "ifdefs", or conditional instructions, are used to build different code What are ifdefs ifdefs are conditional directives to a text preprocessor which mark that certain blocks of code are used only in certain conditions. In this document, the term is used more loosely to discuss any kind of conditional that differentiates between different build configurations. ...
... frequently hard to determine what code is "shared" and what code is "application-specific". As a general rule, any code in tier 2, tier 9, or tier 50 is shared code, and should not have application-specific ifdefs. Any code in later tiers is application-specific. This rule has many exceptions, some of which are listed here: The code in editor/ui/ is built by the suite, standalone composer, and
thunderbird, but it is considered application-specific. The code in xpfe/ (except for xpfe/appshell/ and xpfe/components/shistory/) is a hodgepodge mess of "toolkit" and "application-specific" code. This code is all going to be moved elsewhere (most of it to toolkit/ or suite/), but for the time being most application-specific ifdefs are allowed because we can't help it. If you're not sure, ask Benjamin Sme...
autocompletesearch - Archive of obsolete content
<< XUL Reference home autocompletesearch New in
Thunderbird 2Requires SeaMonkey 1.1 Type: space-separated list of values A space-separated list of search component names, each of which implements the nsIAutoCompleteSearch interface. The components are created using the name @mozilla.org/autocomplete/search;1?name= where name is listed in this attribute. search-autocomplete Requires SeaMonkey 2.1 The user's default search engine's suggestions are searched. places-tag-autocomplete Requires SeaMonkey 2.1 The user's Places tags are searched. mydomain New in
Thunderbird 3 Requires SeaMonkey 2.0 The user's email domain is suggested. history Requires SeaMonkey 2.0 The user's URL history is searched. form-his...
...re searched. mydomain New in
Thunderbird 3 Requires SeaMonkey 2.0 The user's email domain is suggested. history Requires SeaMonkey 2.0 The user's URL history is searched. form-history Requires SeaMonkey 2.0 Search the values that the user has entered into form fields. file (Linux only) The local file system is searched. gloda New in
Thunderbird 3 addrbook New in
Thunderbird 3 Requires SeaMonkey 2.0 The user's address book is searched. ldap New in
Thunderbird 25 Requires SeaMonkey 2.22 The user's LDAP directory is searched. ...
Complete - Archive of obsolete content
Introduction You can use the Custom Toolbar Button tutorial as a very simple introduction to extensions. However, because it is so simple it does not support some of the usual features of extensions. ...
...xtended code sample. To see the code, use a jar tool or zip tool to unpack the XPI file that you downloaded. For more information about developing extensions, 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 impleme...
Window icons - Archive of obsolete content
Note: This feature was removed at Firefox 67. See also bug 1531836 for more details. 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.xpm or mywindow16.xpm (Linux), where mywindow is the id of the <window> you want to attach the icon to, in the chrome/icons/default subfolder of your bundle. These icons will override the global icon files, which are located in app_dir/browser/chrome/icons/default. Note: The global icons override does not currently work due to bug bug 543490. ...
...cons/default subfolder of your bundle. These icons will override the global icon files, which are located in app_dir/browser/chrome/icons/default. Note: The global icons override does not currently work due to bug bug 543490. Global icon files currently take precedence and bundles are only searched for icons which are not provided by the application. Starting with Firefox 3.0, XULRunner 3.0,
Thunderbird 3.0 and SeaMonkey 2.0 you can now specify PNG format icons instead of XPM format on Linux. You can specify up to 4 different sizes of PNG icons using the suffixes .png, 16.png, 32.png and 48.png. Older versions To support older applications, such as Firefox 1.0, you need to copy the icons to app_dir/chrome/icons/default manually on the first start (example code). ...
XUL accessibility tool - Archive of obsolete content
bugs or issues), many of the most common accessibility mistakes will be found and reported. Availability The XUL Accessibility Tool can currently be obtained from [http://www.xulplanet.com/aaron/files...bilitytool.xpi]. Future versions of the extension will be available from addons.mozilla.org. The version currently on XulPlanet is compatible with the following XUL applications: Firefox 1.5+
Thunderbird 3.0a+ Recent Sunbird builds Recent Songbird builds. It probably also works on Seamonkey, but I haven't verified this. Use To launch the tool after installation, look for an entry in the Tools menu of the host application, or hit Ctrl+Alt+Shift+F12. Once the tool window has loaded, select either a local file, web url, or currently open window from the File menu to generate a XUL report for tha...
...ocessing is slower than we would like. Ideas for further work on XUL a11y Some general ideas for using the tool and guidelines to further the accessibility cause within the Mozilla Project. Add usability, i18n, security and other considerations to XUL a11y guidelines -- make them more general Sprinkle the a11y techniques throughout the turorial and reference. Run checking tool on Firefox,
Thunderbird and other apps looking for bugs and fixing them. Improve tool along the way Add checking tool to DOM Inspector or other popular XUL debugging tools. Merge with other XUL checking tools -- this doesn't need to be a11y-specific. One problem is that Mark Finkle's XUL Validator tool uses a different engine. Add the tool into the addons.mozilla.org review process Go through the most useful/popular ...
Archived Mozilla and build documentation - Archive of obsolete content
This is a list of existing mozilla.org documentation. It needs to be checked, prioritized, and migrated. Extension Frequently Asked Questions This is quick set of answers to the most common issues with extension development. They are currently written with mostly Firefox in mind, but most if not all should easily translate to SeaMonkey,
Thunderbird or any of the other applications. For
Thunderbird, you may also find the extension HowTo or FAQ pages helpful. Firefox Sync Sync refers to a family of related components and services which provide synchronization of data between Mozilla application instances. These components and services include: Force RTL (This is a temporary placeholder/stub fo...
...om and saved to files. A XUL validator and the Error Console are both available to help debug problems. The help menu provides access to XUL information on MDC. There is even simple "keyword" help lookup for XUL elements. XULRunner XULRunner is a Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications that are as rich as Firefox and
Thunderbird. It provides mechanisms for installing, upgrading, and uninstalling these applications. ...
2006-10-20 - Archive of obsolete content
Discussions How to use the TB/AB lastModifiedDate Item and how to solve the problem regarding to this item. There is a link provided might solve the stated problem. However, detail info of the problem is not clear, no futher suggestion or solution is provided thus far. Stefan Goppert suspect
Thunderbird inserts a wrong char("") in the BCC-field and want to confirm this issue. No respond posted for this discussion yet. ...
...zilla will participate in enhancing the capabilities and ease of use of both Eudora and
Thunderbird. Discussions How to use the TB/AB lastModifiedDate Item and how to solve the problem regarding to this item. There is a link provided might solve the stated problem. However, detail info of the problem is not clear, no futher suggestion or solution is provided thus far. Stefan Goppert suspect
Thunderbird inserts a wrong char("") in the BCC-field and want to confirm this issue. No respond posted for this discussion yet. Meetings None for this week. ...
2006-11-24 - Archive of obsolete content
Additional links: bug 22687 and original newsgroup thread.
Thunderbird losing emails TB seems to be deleting mail folders when they reach 4GB in size. Exact cause is unknown but may be related to multiprocessor platforms. ...
...Exact cause is unknown but may be related to multiprocessor platforms. Meetings None for this week ...
2006-10-06 - Archive of obsolete content
Summary: mozilla.dev.builds - September 30th to October 6th 2006 TB MOZILLA_1_8_BRANCH build problem on Mac OS X (10.4.7, universal build) Ludwig Hugelschafer stated that he has been encountering an error when he executes a "make export" operation on
ThunderBird (part of the MOZILLA_1_8_BRANCH) since September 15th. ../../dist/host/bin/host_xpidl -m header -w -I~mozilla/xpcom/base -I../../dist/idl -o _xpidlgen/nsIConsoleListener ~/mozilla/xpcom/base/nsIConsoleListener.idl gmake[2]: *** [_xpidlgen/nsIConsoleListener.h] Bus error gmake[2]: *** Deleting file `_xpidlgen/nsIConsoleListener.h' gmake[1]: *** [export] Error 2 make: *** [all] Error 2:: On Octorber 4th Ludwig Hugelschafer responded to his original post with the solution to his own problem. He found out that a broke...
...eleting file `_xpidlgen/nsIConsoleListener.h' gmake[1]: *** [export] Error 2 make: *** [all] Error 2:: On Octorber 4th Ludwig Hugelschafer responded to his original post with the solution to his own problem. He found out that a broken host_xpidl was the source of the problem. In order to fix this he deleted the tree part where host_xpidl was located. He then was able to successfully build
ThunderBird. Ludwig Hugelschafer response to the posting. Announcements New SVG build dependency coming On October 2nd T Rowley announced that: Soon SVG on the trunk will be switching to use thebes directly (instead of the current choice of direct cairo or punching a hole through thebes to cairo). Once completed you will need to build cairo gfx in order to build SVG. https://bugzilla.mozilla.org/...
2006-10-20 - Archive of obsolete content
m this post. Christopher would not like to learn how to create a build of Firefox with custom extensions and not have those extensions appear in the Addons window. On October 20th Jeff Walden responded Christopher Finke's question. Jeff provided this link as an answer to Christopher Finkes' question. NSIS and my extension Jan Vavra is wondering how he could create a win32 installer of
Thunderbird that when executed, it would also install his extensions of choice. He has already "studied" the makefiles but has had no success in achieving his goal. On October 20th Benjamin Smedberg responded Jan Vavra's question. Benjamin Smedberg mentioned in his post that Jan Vavra needs to add the extension files to the packaging manifest, which is used to create the installer. In Jan Vavra's ca...
... would also install his extensions of choice. He has already "studied" the makefiles but has had no success in achieving his goal. On October 20th Benjamin Smedberg responded Jan Vavra's question. Benjamin Smedberg mentioned in his post that Jan Vavra needs to add the extension files to the packaging manifest, which is used to create the installer. In Jan Vavra's case he is modifying the
Thunderbird installer so he needs to modify "mail/installer/windows/packages-static" Announcements Decommissioning sparky on Friday On October 17th J. Paul Reed announced that: Sparky, the Linux performance test machine for the 1.8 branchs, is being decommissioned. He also added that the Linux performance test data is now being provided by bl-bldlnx01. Paul would like to hear from anyone who is agains...
Shipping a plugin as a Toolkit bundle - Archive of obsolete content
nly 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 earlier Prior to Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1), it was possible to package multiple plugin libraries for different operating systems into a single xpi bundle. In the XPI you can use the following structure: platform/ Linux_x86-gcc3/ plugins/ libplugin.so Darwin_ppc-gcc3/ plugins/ libplugin.dylib More specific information can be found in the platform-specific subdirectories ...
...aries for different operating systems into a single xpi bundle. In the XPI you can use the following structure: platform/ Linux_x86-gcc3/ plugins/ libplugin.so Darwin_ppc-gcc3/ plugins/ libplugin.dylib More specific information can be found in the platform-specific subdirectories documentation. Gecko 2.0 (Firefox 4) and later Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) removed support for platform-specific subdirectories. Instead, you need to place the different plugin libraries into the plugins directory. For example: plugins/ libplugin.so libplugin.dylib Install Manifest The install manifest describes the plugin to the user. For a plugin the manifest only needs to be very simple: <RDF xmlns="http://www.w3.org/1999/02/22-rdf-synta...
Making sure your theme works with RTL locales - Archive of obsolete content
The important thing to understand 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. ...
...age-region: rect(0px 396px 34px 360px); } toolbar[iconsize="large"][mode="icons"] #back-button:-moz-locale-dir(rtl) { -moz-image-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...
Gecko info for Windows accessibility vendors
ce dictation packages and magnification software can support Gecko-based software. The base of our support for these products is MSAA (Microsoft Active Accessibility), external readonly DOM support, and the keyboard API/user interface. Definitions Here are some basic definitions that you'll need for this document to make sense: Gecko: The rendering engine for Firefox,
Thunderbird, Nvu, Mozilla Seamonkey and other applications. Gecko is the internal engine that Mozilla uses to render any kind of web content. It supports HTML, XHTML, Cascading Style Sheets (CSS) and the Document Object Model (DOM). Microsoft Active Accessibility (MSAA) an API devised by Microsoft so that accessibility aids can track what's going on inside the user interface of any soft...
...or menus, dialogs and the entire user interface via an XML language called XUL (eXtensible User-interface Language). None of the user interface contains standard Windows controls -- not even the menus! This is done to ensure a common look and feel across all supported platforms, and to allow for different skins (appearances). Firefox (please use version 1.1 alpha builds or later)
Thunderbird (please use version 1.1 alpha builds or later) Mozilla Seamonkey (please use 1.8 alpha builds or later) How to Find the Content Window and Load the Document Screen readers need to find the content window so that they know where to start grabbing the MSAA tree, in order to load the current document into a buffer in their own process. The content window always has the class Mozill...
Creating a spell check dictionary add-on
d, em:description, em:creator, em:developer, em:translator, em:contributor or em:homepageURL --> <!-- Firefox --> <em:targetApplication> <Description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minVersion>18.0a1</em:minVersion> <em:maxVersion>46.0</em:maxVersion> </Description> </em:targetApplication> <!--
Thunderbird --> <em:targetApplication> <Description> <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id> <em:minVersion>18.0a1</em:minVersion> <em:maxVersion>22.0</em:maxVersion> </Description> </em:targetApplication> <!-- SeaMonkey --> <em:targetApplication> <Description> <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id> ...
...arting from Gecko 18. The em:minVersion should therefore be the same as in the example above (or greater). If you set em:minVersion to a lower value, Gecko 10-17 will not be able to update your dictionary add-on once the restartless dictionary is installed (bug 782118), and Gecko 10-16 may warn the user that your dictionary is not compatible, when users try to update to a newer version of Firefox/
Thunderbird (bug 782115). Update the em:maxVersion to the greatest versions available. Once you have added these files to your ZIP file and renamed the file to have the .xpi extension, you can install your add-on in Firefox and test it. After a successful test, you can upload your add-on to addons.mozilla.org and ask for it to be included in the Dictionaries & Language Packs page. Reference Creating a...
Debugging on Mac OS X
If you want to debug from the terminal see Debugging Mozilla with lldb. For specific information on a way to debug hangs, see Debugging a hang on OS X. Creating a debuggable build First, you need to build the application you're going to debug using --disable-optimize--enable-debug-symbols in your .mozconfig (also add --enable-debug if you want assertions etc. compiled in). See Building Firefox for macOS if you need help creating your own build. ...
...the left-hand side of the settings window, then select the "Info" tab. Set the Executable by clicking on "None" and selecting "Other...". A new dialog titled "Choose an executable to launch" will pop up. Browse to the .app file that you want to debug (Firefox.app, NightlyDebug.app etc). The .app file is typically found inside the dist folder in your build directory. If you are debugging Firefox,
Thunderbird, or some other application that supports multiple profiles, using a separate profile for debugging purposes is recommended. See "Having a profile for debugging purposes" below. Select the "Arguments" tab in the scheme editor, and click the '+' below the "Arguments passed on launch" field. Add "-P profilename", where profilename is the name of a profile you created previously. Repeat that to also ...
Simple Instantbird build
Build prerequisites Hardware Requirements: While you can build Instantbird on older hardware it can take quite a bit of time to compile on slower machines, and having 8GB of RAM is recommended (though you can probably still get away with 4Gb). ...
...d to make sure that the path in which you placed the source code has no spaces, and is not too long? Have you searched the bug database for issues relating to your problem (e.g., platform-specific issues)? Try asking in mozilla.dev.chat - don't forget to include details of what is in your mozconfig, and what the actual error is. References General Build Documentation comm-central Simple
Thunderbird build ...
Simple Sunbird build
You can build a bleeding-edge, development version of Sunbird using the commands below. For complete information, see the build documentation. Installing build tools If your system is not listed below, see the build prerequisites page. ...
...t add the ac_add_options --enable-calendar line to your .mozconfig with your favourite editor. Then just re-run the "make -f client.mk" command above (you can do the addition before running make for the first time). This will build the lightning extension into src/../objdir-sb/mozilla/dist/xpi-stage/. See this section for information on how to easily integrate Lightning into a nightly version of
Thunderbird. How to build again later In your comm-central directory, run these commands: # Get the latest source python client.py checkout Then just re-run the "make -f client.mk" command above. make will only recompile files that changed, but it's still a long haul. An incremental build can be faster. Building just Lightning After you have completed a full build, if you would like to rebuild Lightning you...
Displaying Places information using views
ribute, causing it to fall out of sync with the view's query result. Use the view's load method or place property instead and let it do the work for you. If, on the other hand, you are writing a custom tree view, you will need to write similar code at some point. Menu view You can display Places information in a popup menu. ...
...res Gecko 1.9.2(Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Create a built-in menu view by setting the type attribute to "places" on an empty menupopup element (which would be a child of some parent menu element): <menu> <menupopup type="places" /> </menu> The place attribute or property should be set on the menupopup as well. In Firefox 4 and later Requires Gecko 2.0(Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) You can add Places information to a popup like this: <menu id="bookmarksMenu"> <menupopup placespopup="true"> onpopupshowing="if (!document.getElementById('bookmarksMenu')._placesView) new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');" </menupopup> </menu> The menu view is implemented in browser/components/places/content/menu.xml. See ...
MathML Accessibility in Mozilla
his table below provides a list of MathML constructions and how they are read in Mozilla applications for various platforms: Windows: MathML support is provided by NVDA, which actually delegates math reading to the proprietary MathPlayer plugin. We started exposing generic accessible objects for MathML in bug 920547 and so these can be retrieved by NVDA starting with Gecko 27.0 (Firefox 27.0 /
Thunderbird 27.0 / SeaMonkey 2.24). Mozilla and NVDA developers essentially do not have control on how mathematical formulas are read, please contact Design Science for any inquiries. Mac: MathML support is provided by VoiceOver. In bug 1175269 and bug 1001641, we relied on the WebKit's NSAccessibility MathML tree to expose the main constructions. Hence basic support is available in Gecko 41.0 (Firefox 41.
...0 / SeaMonkey 2.24). Mozilla and NVDA developers essentially do not have control on how mathematical formulas are read, please contact Design Science for any inquiries. Mac: MathML support is provided by VoiceOver. In bug 1175269 and bug 1001641, we relied on the WebKit's NSAccessibility MathML tree to expose the main constructions. Hence basic support is available in Gecko 41.0 (Firefox 41.0 /
Thunderbird 41.0 / SeaMonkey 2.38) and we are still trying to keep in sync with WebKit/VoiceOver. Note that VoiceOver is proprietary so we do not have control on Improvements to MathML accessibility in VoiceOver. Linux: MathML support is provided by the development version of Orca. We try to keep in sync with WebKit/ATK/Orca developments. At the moment, it is recommended to use a Nightly build to ensure tha...
mail.tabs.drawInTitlebar
false The tabs are drawn in a separate tab bar, and the title bar shows the title of the current tab (e.g. the subject of the currently selected mail). ...
... false The tabs are drawn in a separate tab bar, and the title bar shows the title of the current tab (e.g. the subject of the currently selected mail). ...
Leak And Bloat Tests
ll be discussed on the discussion page of the Mozilla wiki. Results Printed on tinderbox output, these consist of: Mail RLk Reference Count Leaks Mail Lk Total Bytes malloc'ed and not free'd Mail MH Maximum Heap size Mail A Allocations - number of calls to malloc and friends. There are currently no graphs for these results. Manually Running Tests Setting up Build Set up Build
Thunderbird or SeaMonkey with your standard mozconfig file, but with the following options set: ac_add_options --enable-debug ac_add_options --enable-trace-malloc Running the Tests In your <objdir> run the following command: make mailbloat This will run the tests and produce some result files. See Debugging Memory Leaks for more information on what to do with this data. TODO: add more information on proces...
...1"); user_pref("mail.startup.enabledMailCheckOnce", true); user_pref("mailnews.start_page_override.mstone", "1.9pre"); user_pref("mail.shell.checkDefaultClient", false); // Ensure OS X and Outlook/OE books are disabled user_pref("ldap_2.servers.osx.position", 0); user_pref("ldap_2.servers.oe.position", 0); Preferences in generated profile, but not set: user_pref("mail.root.none", "/home/moztest/.
thunderbird/t7i1txfw.minimum/Mail"); user_pref("mail.root.pop3", "/home/moztest/.
thunderbird/t7i1txfw.minimum/Mail"); user_pref("mail.server.server1.directory", "/home/moztest/.
thunderbird/t7i1txfw.minimum/Mail/Local Folders"); user_pref("mail.server.server2.directory", "/home/moztest/.
thunderbird/t7i1txfw.minimum/Mail/tinderbox"); user_pref("mail.attachment.store.version", 1); user_pref("mail.folder.views.v...
MailNews automated testing
opers to think about different cases. This page and its sub-pages describe (and link to) the available test mechanisms within MailNews, and provide supporting information for developers and testers. Functional testing xpcshell-tests and make check These are core test harnesses to which MailNews adds its own tests. These tests are run against almost every changeset that gets committed to the
Thunderbird and SeaMonkey code bases. xpcshell-tests are run in JavaScript without any chrome present. This makes them especially useful for testing at the component / module level. xpcshell-tests are the quickest tests to run. MailNews provides additional facilities as described on the MailNews automated testing page (see below). "make check" is used to run compiled code tests. These tests can go beyond...
...sage injection: Inject synthesized messages via local or IMAP (using a fake server). Message manipulation: Mark messages as read, tag them, untag them, move them to other folders, trash them, etc. Enhanced logging: Supports generating rich JSON streams to disk or over the network for consumption by LogSploder or other tools. Performance testing Mail leak and bloat tests These tests start up
Thunderbird or SeaMonkey and record any leaks found, as well as the total memory requirement. Although currently based on simple tests, these are useful for determining if new leaks have been introduced. For more information, see Leak and Bloat Tests. ...
MailNews
See MailNews automated testing for a description of the other testing mechanisms. ...
...vides a number of functions and capabilities, including: Communications protocols - SMTP, POP3, IMAP, NNTP Message Management, including search and filtering Message Composition Address Book The MailNews code lives in the mailnews/ directory of comm-central. AsyncTestUtils extended framework The AsyncTestUtils Extended Framework is one mechanism for testing the MailNews component of
Thunderbird. See MailNews automated testing for a description of the other testing mechanisms. Leak And Bloat Tests This page describes how to perform tests that measure memory leaks and bloat for MailNews and its sub-components. MailNews automated testing Automated testing is an increasingly significant and important part of MailNews development. It allows reviewers to quickly pick up regression...
NSS 3.47 release notes
in tstclnt and selfserv Bug 1581024 - Heap overflow in NSS utility "derdump" Bug 1582343 - Soft token MAC verification not constant time Bug 1578238 - Handle invald tag sizes for CKM_AES_GCM Bug 1576295 - Check all bounds when encrypting with SEED_CBC Bug 1580286 - NSS rejects TLS 1.2 records with large padding with SHA384 HMAC Bug 1577448 - Create additional nested S/MIME test messages for
Thunderbird Bug 1399095 - Allow nss-try to be used to test NSPR changes Bug 1267894 - libSSL should allow selecting the order of cipher suites in ClientHello Bug 1581507 - Fix unportable grep expression in test scripts Bug 1234830 - [CID 1242894][CID 1242852] unused values Bug 1580126 - Fix build failure on aarch64_be while building freebl/gcm Bug 1385039 - Build NSPR tests as part of NSS continuous in...
... mach-completion Bug 1558313 - Code bugs found by clang scanners. Bug 1542207 - Limit policy check on signature algorithms to known algorithms Bug 1560329 - drbg: add continuous self-test on entropy source Bug 1579290 - ASAN builds should disable LSAN while building Bug 1385061 - Build NSPR tests with NSS make; Add gyp parameters to build/run NSPR tests Bug 1577359 - Build atob and btoa for
Thunderbird Bug 1579036 - Confusing error when trying to export non-existent cert with pk12util Bug 1578626 - [CID 1453375] UB: decrement nullptr. Bug 1578751 - Ensure a consistent style for pk11_find_certs_unittest.cc Bug 1570501 - Add CMAC to FreeBL and PKCS #11 libraries Bug 657379 - NSS uses the wrong OID for signatureAlgorithm field of signerInfo in CMS for DSA and ECDSA Bug 1576664 - Remove -mms-...
AT APIs Support
face contains standard OS controls. This is done to ensure a common look and feel across all supported platforms, and to allow for different skins (appearances). Developing a XUL window is not that different from developing a web page, but the elements available to add widgets are more powerful and designed to be similar to desktop widgets. Examples of XUL applications: Firefox - web-browser
Thunderbird - email client Seamonkey - web-browser, advanced e-mail and newsgroup client, IRC chat client, and HTML editing made simple Sunbird - cross-platform calendar application KompoZer - a complete Web Authoring System for Linux Desktop, Microsoft Windows and Macintosh users to rival programs like FrontPage and Dreamweaver. Open Komodo - platform for building developer environments Miro - a free, ...
... Firefox and all other Gecko-based products: this documentation applies to up-to-date product builds based on Gecko 1.9.2 -- currently not available on official releases. However most of described features are supported starting from Gecko 1.9.0 (Firefox 3.0). However it's preferable to grab the current build of Firefox or any other Gecko-based product to be up to dated: Firefox recent builds
Thunderbird recent builds Seamonkey recent builds Determining if Accessibility is Enabled in a Firefox Accessibility is enabled on Windows and Linux platforms by default. As well you might find helpful the about:accessibilityenabled Firefox extension. Supported AT APIs AT APIs terms Microsoft Active Accessibility (MSAA) an API devised by Microsoft so that accessibility aids can track what's going o...
STEEL
Currently, STEEL has an steelIApplication interface that implements all the functions of extIApplication. The library has also been implemented in Firefox ("FUEL") and in SeaMonkey ("SMILE"). ...
... Currently, STEEL has an steelIApplication interface that implements all the functions of extIApplication. The library has also been implemented in Firefox ("FUEL") and in SeaMonkey ("SMILE"). ...
extIApplication
Method overview boolean quit() boolean restart() void getExtensions(extIExtensionsCallback aCallback) Attributes The following interfaces are available to all applications: Attribute Type Description id readonly attribute AString The id of the application. name readonly attribute AString The name of the application. ...
...ons(extIExtensionsCallback aCallback) Return value none. ...
extIExtension
Method overview FIXME: Attributes Attribute Type Description id readonly attribute AString The id of the extension. name readonly attribute AString The name of the extension. enabled readonly attribute boolean True if the extension is currently enabled. ...
... ...
extIPreferenceBranch
This content covers features introduced in
Thunderbird 3 The extIPreferenceBranch interface provides simplified access to preferences. The interface has a predefined root preference branch. The root branch is set based on the context of the owner. For example, an extension's preferences has a root of "extensions.extensionid.", while the application-level preferences have an empty root. All preference "aName" parameters used in this interface are relative to the root branch. extIPreferenceBranch is defined in toolkit/components/exthelper/extIApplication.idl. Implemented via XPCOM service for extIApplication: see the instructions on the FUEL (Firefox), STEEL (
Thunderbird) and SMILE (SeaMonkey) pages. Method overview boolean has(in AString aName) extIPreference get(in AString aN...
...to their default values. Note: This function has not been implemented and will raise an exception. ...
amIWebInstallInfo
toolkit/mozapps/extensions/amIWebInstallListener.idlScriptable This interface is used by the default implementation of amIWebInstallListener to communicate with the running application and allow it to warn the user about blocked installs and start the installs running. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void install(); Attributes Attribute Type Description installs nsIVariant An array of AddonInstall objects. Read only. originatingURI nsIURI The URI that started the installs. For example, the referring page for a link to an XPI download. Read only. originatingWindow nsIDOMWindow Th...
...ibute Type Description installs nsIVariant An array of AddonInstall objects. Read only. originatingURI nsIURI The URI that started the installs. For example, the referring page for a link to an XPI download. Read only. originatingWindow nsIDOMWindow The window that started the installs. Read only. Note: Prior to Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5), this was an nsIDOMWindowInternal. Methods install() Starts all installs. void install(); Parameters None. ...
imgIContainerObserver
image/public/imgIContainerObserver.idlScriptable An interface to implement to listen to activities on an imgIContainer object. 1.0 66 Introduced Gecko 1.7 Inherits from: nsISupports Last changed in Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9) If you wish to listen for activities on an imgIContainer, you should implement the frameChanged() method. Method overview void frameChanged(in imgIRequest aRequest, in imgIContainer aContainer, [const] in nsIntRect aDirtyRect); Native code only! Methods Native code only!frameChanged Called when the frame for an image container has changed. void frameChanged( in imgIRequest aRequest, in imgIContainer aContainer, [const] in nsIntRect aDirtyRect ); Parameters aRequest The image ...
...See also imgIDecoderObserver imgIContainer ...
mozIStorageStatement
storage/public/mozIStorageStatement.idlScriptable This interface lets you create and execute SQL statements on a mozIStorageConnection. Inherits from: mozIStorageValueArray Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) For an introduction on how to use this interface, see the Storage overview document. Method overview void initialize(in mozIStorageConnection aDBConnection, in AUTF8String aSQLStatement); Obsolete since Gecko 1.9.1 void finalize(); mozIStorageStatement clone(); AUTF8String getParameterName(in unsigned long aParamIndex); unsigned long getParameterIndex(in AUTF8String aName); AUTF8String getColumnName(in unsigned long aColumnIndex); unsigned long getColumnIndex(in AUTF8String aNam...
...onstants Constant Value Description MOZ_STORAGE_STATEMENT_INVALID 0 The SQL statement is Invalid. MOZ_STORAGE_STATEMENT_READY 1 The SQL statement is ready to be executed. MOZ_STORAGE_STATEMENT_EXECUTING 2 The SQL statement is executing at the moment. Methods initialize() Obsolete since Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Note: This method has been removed for Gecko 1.9.1. To initialize a statement, consumers should call mozIStorageConnection.createStatement(). This method exists back to Gecko 1.8.0. Initialize this query with the given SQL statement. void initialize( in mozIStorageConnection aDBConnection, in AUTF8String aSQLStatement ); Parameters aDBConnection A mozISt...
nsIAccessNode
accessible/public/nsIAccessNode.idlScriptable An interface used by in-process accessibility clients to get style, window, markup and other information about a DOM node. When accessibility is active in Gecko, every DOM node can have one nsIAccessNode. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) The nsIAccessNode implementations are instantiated lazily. The nsIAccessNode tree for a given DOM window has a one to one relationship to the DOM tree. If the DOM node for this access node is "accessible", then a QueryInterface to nsIAccessible will succeed. Method overview nsIAccessNode getChildNodeAt(in long childNum); Obsolete since Gecko 2.0 nsIDOMCSSPrimitiveValue getComputedStyleCSSValue(in DOMString pseudoElt, in D...
.... Obsolete since Gecko 2.0 rootDocument nsIAccessibleDocument The root document accessible that this access node resides in. Read only. uniqueID voidPtr A unique ID calculated for this DOM node, for the purposes of caching and referencing this object. Read only. Native code only! Methods getChildNodeAt() Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Get the nth child of this node. nsIAccessNode getChildNodeAt( in long childNum ); Parameters childNum Zero-based child index. Return value The nth nsIAccessNode child. Exceptions thrown NS_ERROR_FAILURE Indicates that the access node is unattached from the accessible tree. getComputedStyleCSSValue() Retrieve the computed style value as nsIDOMCSSP...
nsIAccessibleText
accessible/public/nsIAccessibleText.idlScriptable Please add a summary to this article. ...
...still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Constant Value Description COORD_TYPE_SCREEN 0 COORD_TYPE_WINDOW 1 Methods addSelection() void addSelection( in long startOffset, in long endOffset ); Parameters startOffset endOffset getAttributeRange() Obsolete since Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Get the accessible and start/end offsets around the given offset. This accessible get return the DOM node and layout frame with the uniform attributes for this range of text. nsIAccessible getAttributeRange( in long offset, out long rangeStartOffset, out long rangeEndOffset ); Parameters offset rangeStartOffset rangeEndOffset Return value getCharacterAtO...
nsIAccessibleTreeCache
Obsolete since Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. A private interface to operate with tree accessible. accessible/public/nsIAccessibleTreeCache.idlNot scriptable Please add a summary to this article. ...
...Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. A private interface to operate with tree accessible. accessible/public/nsIAccessibleTreeCache.idlNot scriptable Please add a summary to this article. ...
nsICachingChannel
Support for "pinning" cached data in the cache (for printing and save-as). Support for uniquely identifying cached data in cases when the URL is insufficient. For example a HTTP form submission. A channel may optionally implement this interface to allow clients to affect its behavior with respect to how it uses the cache service. ...
...he cache. A stream listener can check isFromCache() to determine if the AsyncOpen will actually result in data being streamed. If this flag has been set, and the request can be satisfied via the cache, then the OnDataAvailable events will be skipped. The listener will only see OnStartRequest followed by OnStopRequest. Methods isFromCache() Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) This method finds out whether or not this channel's data is being loaded from the cache. boolean isFromCache(); Parameters None. Return value Returns true if this channel's data is being loaded from the cache, otherwise returns false. This value is undefined before the channel fires its OnStartRequest notification and after the channel fires its OnStopRequest notifi...
nsIChannelEventSink
These methods are called before onStartRequest. ...
...RECT_TEMPORARY and REDIRECT_PERMANENT will always be set. callback Object to inform about the async result of this method. Exceptions thrown This method can throw any exception; if an exception occurs, the load will be canceled, and no network requests will occur for the new channel. The redirect will be canceled. onChannelRedirect() Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Called when a redirect occurs. This may happen due to an HTTP 3xx status code. void onChannelRedirect( in nsIChannel oldChannel, in nsIChannel newChannel, in unsigned long flags ); Parameters oldChannel The channel that's being redirected. newChannel The new channel. This channel is not opened yet. flags Flags indicating the type of ...
nsIChromeRegistry
chrome/public/nsIChromeRegistry.idlScriptable Provides access to the chrome registry; you can use this to get information about chrome documents that have been registered. ...
...Converts a chrome URL into a canonical representation by ensuring that the filename portion of the URL is included, as in chrome://package/provider/file. This is useful because chrome URLs are allowed to be specified in "shorthand", leaving the "file" portion off. In that case, the URL is expanded to ch...
nsIClipboard
widget/nsIClipboard.idlScriptable This interface supports basic clipboard operations such as: setting, retrieving, emptying, matching and supporting clipboard data. ...
... Methods emptyClipboard() This method empties the clipboard and notifies the clipboard owner. It empties the "logical" clipboard. It does not clear the native clipboard. void emptyClipboard( in long aWhichClipboard ); Parameters aWhichClipboard Specifies the clipboard to which this operation applies. forceDataToClipboard() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Some platforms support deferred notification for putting data on the clipboard This method forces the data onto the clipboard in its various formats This may be used if the application going away. void forceDataToClipboard( in long aWhichClipboard ); Parameters aWhichClipboard Specifies the clipboard to which this operation applies. getData() This method...
nsIConsoleService
xpcom/base/nsIConsoleService.idlScriptable The console service is the back-end for the Error Console, bundled with every Mozilla application, and for Firefox's Web Console and Browser Console. It is used to log various messages, warnings, and errors and to obtain the logged messages. ...
...Message messages); void logMessage(in nsIConsoleMessage message); void logStringMessage(in wstring message); void registerListener(in nsIConsoleListener listener); void reset(); void unregisterListener(in nsIConsoleListener listener); Methods getMessageArray() To obtain an array of all logged messages. Obsolete since Gecko 19 (Firefox 19 /
Thunderbird 19 / SeaMonkey 2.16)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. void getMessageArray( [array, size_is(count)] out nsIConsoleMessage messages, out PRUint32 count ); Parameters messages An array of logged messages. count The number of messages in the array. If no messages are...
nsIDOMWindowInternal
This interface no longer has any members; it exists solely to prevent add-ons that reference it from failing completely. ...
... ...
nsIDeviceMotionData
Attributes Attribute Type Description type unsigned long The type of motion data reported by this object; see Motion type constants for possible values. Read only. ...
...Attributes Attribute Type Description type unsigned long The type of motion data reported by this object; see Motion type constants for possible values. Read only. ...
nsIDragService
Add-ons should use the standard dataTransfer drag and drop API instead. The only exception is getCurrentSession(), since there's currently no way to check for a drag in progress using standard DOM methods or properties. ...
... Y coordinate to which to move the popup being dragged. endDragSession() Tells the Drag Service to end a drag session. This is called when an external drag occurs. void endDragSession( in PRBool aDoneDrag ); Parameters aDoneDrag If aDoneDrag is true, the drag has finished, otherwise the drag has just left the window. fireDragEventAtSource() Obsolete since Gecko 43 (Firefox 43 /
Thunderbird 43 / SeaMonkey 2.40)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Fire a drag event at the source of the drag. This was changed in Gecko 43, see the following section. void fireDragEventAtSource( in unsigned long aMsg ); Obsolete since Gecko 43 Parameters aMsg One of the NS_DRAG...
nsIEditor
<< XPCOM API Reference editor/nsIEditor.idlScriptable Provides methods and attributes used when editing page content. ...
...noscript] void init( in nsIDOMDocument doc, in nsIPresShellPtr shell, Obsolete since Gecko 5 in nsIContent aRoot, in nsISelectionController aSelCon, in unsigned long aFlags ); Parameters doc The document to observe. shell Obsolete since Gecko 5.0 The nsIPresShellPtr representing the presentation shell displaying the document. This parameter was removed in Gecko 5.0 (Firefox 5.0 /
Thunderbird 5.0 / SeaMonkey 2.2). aRoot The root of the editable section of this document; if it's null, the editor gets its root from document.body. aSelCon The nsISelectionController object used to get selection location information. This should be null for HTML editors. aFlags A bit mask of flags controlling the editor's behavior. Need to document what the possible values are. ...
nsIFile
xpcom/io/nsIFile.idlScriptable An instance of this interface is a cross-platform representation of a location in the filesystem. Inherits from: nsISupports Last changed in Gecko 30.0 (Firefox 30.0 /
Thunderbird 30.0 / SeaMonkey 2.27) nsIFile is the correct platform-agnostic way to specify a file; you should always use this instead of a string to ensure compatibility. With an nsIFile you can navigate to ancestors or descendants without having to deal with the different path separators used on different platforms, query the state of any file or directory at the position represented by the nsIFile and create, move or copy items in the filesystem. An nsIFile can be retrieved by either instantiating an nsILocalFile using a platform specific path string or by using cross-platform locations retrie...
.... isWritable() This method tests whether or not this nsIFile corresponds to a file or directory that may be modified by the user. As of Gecko 9, files on read only shares will return false. Files that are exclusively opened on Win32 will return true if they are normally writable, and files that don't have write permissions will return false. For specific handling before Gecko 9 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6), please see bug 682571. boolean isWritable(); Parameters None. Return value true if the file or directory may be modified by the user. Otherwise it returns false. moveTo() This method moves this file to a new location. Note: If this method succeeds, this instance will be updated to point to the new file. If the current file path corresponds to a regular file (for st...
nsIFilePicker
widget/nsIFilePicker.idlScriptable The file picker component is used to display standard user interface for selecting files and directories, as well as for selecting destinations for, and naming, new files. Inherits from: nsISupports Last changed in Gecko 17.0 (Firefox 17.0 /
Thunderbird 17.0 / SeaMonkey 2.14) Implemented by: @mozilla.org/filepicker;1. To create an instance, use: var filePicker = Components.classes["@mozilla.org/filepicker;1"] .createInstance(Components.interfaces.nsIFilePicker); Method overview void appendFilter(in AString title, in AString filter); void appendFilters(in long filterMask); void init(in nsIDOMWindow parent, in AString title, in short mode); void open(in nsIFilePickerShownCallback aFilePickerShown...
..., indicating the type of picker to create. open() Opens the file dialog asynchrounously. The passed in object's done method will be called upon completion. void open( in nsIFilePickerShownCallback aFilePickerShownCallback ); Parameters aFilePickerShownCallback The nsIFilePickerShownCallback to be called on completion. show() Obsolete since Gecko 57.0 (Firefox 57.0 /
Thunderbird 57.0 / SeaMonkey 2.54) Displays the file picker dialog. The dialog is displayed modally. short show(); Parameters None. Return value One of the return constants. Example Here's an example: const nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"] .createInstance(nsIFilePicker); fp.init(window, "Dialog Title"...
nsIFocusManager
dom/interfaces/base/nsIFocusManager.idlScriptable Please add a summary to this article. ...
...sing mode. Methods clearFocus() Clears the focused element within aWindow. If the current focusedWindow is a descendant of aWindow, sets the current focusedWindow to aWindow. void clearFocus( in nsIDOMWindow aWindow ); Parameters aWindow Exceptions thrown NS_ERROR_INVALID_ARG If aWindow is null. Native code only!contentRemoved Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Called when content has been removed. void contentRemoved( in nsIDocument aDocument, in nsIContent aElement ); Parameters aDocument aElement Native code only!fireDelayedEvents Fire any events that...
nsIGeolocationProvider
After startup() is called, any geo location change should call callback.update(). ...
... wish to implement support for WiFi-based location services. See dom/src/geolocation/NetworkGeolocationProvider.js for an example of how to write a geolocation provider. Method overview boolean isReady(); Obsolete since Gecko 1.9.2 void shutdown(); void startup(); void watch(in nsIGeolocationUpdate callback); Methods isReady() Obsolete since Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Reports whether or not the device is ready and has a position. boolean isReady(); Parameters None. Return value true if the device is ready and has a position available to return; otherwise false. shutdown() Shuts down the location device. void shutdown(); Parameters None. startup() Start up the provider. This is called before any other method and may be called multip...
nsIMimeConverter
eHeader() string getStringProperty(in string propertyName); Parameters propertyName The name of the property to retrieve. Return Value The value of the property. B64EncoderInit() Get an integer property. Usually you would use this to store you own properties. unsigned long getUint32Property(in string propertyName); Parameters propertyName The name of the property to retrieve.
Thunderbird stored Uint32 properties (not a complete list): indexed Used for Spotlight integration on OSX. notAPhishMessage Indicates whether phisihing filters have been run on a message yet. Return Value The value of the property. QPEncoderInit() void setUint32Property(in string propertyName, in unsigned long propertyVal); Parameters propertyName The name ...
...hMessage Indicates whether phisihing filters have been run on a message yet. Return Value The value of the property. QPEncoderInit() void setUint32Property(in string propertyName, in unsigned long propertyVal); Parameters propertyName The name of the property to set. propertyVal The value of the property. EncoderDestroy() Marks this header as read.
Thunderbird provides a utility function which performs this for the currently selected message: MarkCurrentMessageAsRead(). void markRead(in boolean read); Parameters read If true, mark as read. If false mark as undread. EncoderWrite() void markFlagged(in boolean flagged); Parameters flagged If true, mark as flagged. If false remove flag. ...
nsIMsgCompFields
(bug 68784) messageId char * needToCheckCharset PRBool Indicates whether we need to check if the current DocumentCharset can represent all the characters in the message body. It should be initialized to true and set to false when 'Send Anyway' is selected by a user. (bug 249530) n...
...aracters in the message body. It should be initialized to true and set to false when 'Send Anyway' is selected by a user. ...
nsIMsgDBView
Inherits from: nsISupports Implemented by: @mozilla.org/messenger/msgdbview;1. To create an instance, use: var dbView = Components.classes[@mozilla.org/messenger/msgdbview;1?type=] .createInstance(Components.interfaces.nsIMsgDBView); where type designates different types of view's available. ...
... examples are move or copy commands. void doCommandWithFolder(in nsMsgViewCommandTypeValue command, in nsIMsgFolder destFolder); Parameters command The nsMsgViewCommandTypeValue to perform. Defined in the interface: nsMsgViewCommandType. destFolder The folder to perform the command with. getCommandStatus() Gets the status of a particular command. Used by the
Thunderbird UI to determine if the command is available. void getCommandStatus(in nsMsgViewCommandTypeValue command, out boolean selectable_p, out nsMsgViewCommandCheckStateValue selected_p); Parameters command The nsMsgViewCommandTypeValue to perform. Defined in the interface: nsMsgViewCommandType. Return values selectable_p The state of the comman...
nsIMsgIncomingServer
nsIMsgIncomingServer mailnews/base/public/nsIMsgIncomingServer.idlScriptable ??? Add brief description of Interface ??? ...
...do that, and adds it to our filterList if it doesn't exist. If it does, it will enable it. this is not used by news filters (yet). void configureTemporaryFilters( in nsIMsgFilterList filterList ); Parameters filterList Missing Description Exceptions thrown Missing Exception Missing Description configureTemporaryReturnReceiptsFilter() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) If we have set up to filter return receipts into our Sent folder, this utility method creates a filter to do that, and adds it to our filterList if it doesn't exist. If it does, it will enable it. If the user changes their prefs, to leave the return receipt in the inbox, this will disable the existing return receipts filter, if it exists. void configureTemporaryRetur...
nsINavBookmarkObserver
toolkit/components/places/nsINavBookmarksService.idlScriptable This interface is an observer for bookmark changes. ...
... This method notifies this observer that an item is about to be removed. It is called before the actual removal takes place. void onBeforeItemRemoved( in long long aItemId, in unsigned short aItemType, in long long aParentId, in ACString aGUID, in ACString aParentGUID ); Parameters ...
nsINavHistoryResultViewObserver
fore the indicated row. DROP_ON 0 The drag operation wishes to drop the dragged item onto the indicated row. DROP_AFTER 1 The drag operation wishes to insert the dragged item after the indicated row. Methods canDrop() Implement this method to report whether or not a drop is permitted onto the specified location. To provide behavior similar to the folder pane in
Thunderbird, where drops are only permitted on items themselves instead of on the pane as a whole, always return false when the orientation isn't DROP_ON. Warning: Do not change the content of the observer list. boolean canDrop( in long index, in long orientation ); Parameters index The item over which the drag is currently located. orientation Whether the drag target is before, a...
...ed when an item is opened or closed. void onToggleOpenState( in long index ); Parameters index The item being toggled. onCycleHeader() Called when a header is clicked. void onCycleHeader( in nsITreeColumn column ); Parameters column The column whose header was clicked. onCycleCell() Called when a cell in a non-selectable cycling column (such as unread or flagged in
Thunderbird) is clicked. void onCycleCell( in long row, in nsITreeColumn column ); Parameters row The row on which the clicked cell is located. column The column in which the clicked cell is located. onSelectionChanged() Called when the selection in the tree changes. void onSelectionChanged(); Parameters None. onPerformAction() This method provides a command API that can be used ...
nsINavHistoryService
toolkit/components/places/nsINavHistoryService.idlScriptable This interface provides complex query functions, more fine-grained getters and setters. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 22 (Firefox 22 /
Thunderbird 22 / SeaMonkey 2.19) Implemented by: "@mozilla.org/browser/nav-history-service;1". To use this service, use: var historyService = Components.classes["@mozilla.org/browser/nav-history-service;1"] .getService(Components.interfaces.nsINavHistoryService); Method overview AString getPageTitle(in nsIURI aURI); void markPageAsFollowedBookmark(in nsIURI aURI); void markPageAsFollowedLink(in nsIURI aURI); void markPageAsTyped(in nsIURI aURI); ...
...is public because some components may want to check if this page would go in the history (That is for annotations). boolean canAddURI( in nsIURI aURI ); Parameters aURI The URI that needs to be added to the history system. Return value Returns true if this URI would be added to the history, otherwise returns false. addVisit() Obsolete since Gecko 22.0 (Firefox 22.0 /
Thunderbird 22.0 / SeaMonkey 2.19) Note: This method was removed in Gecko 22.0. You should use the new async API mozIAsyncHistory.updatePlaces() instead. See this code for how a function to add visits and handle errors using the new API could look like. This method adds a visit for a specific page. This will probably not be commonly used other than for backup/restore type operations. If the URI ...
nsIProcess
xpcom/threads/nsIProcess.idlScriptable This interface represents an executable process. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Implemented by: @mozilla.org/process/util;1. To create an instance, use: var process = Components.classes["@mozilla.org/process/util;1"] .createInstance(Components.interfaces.nsIProcess); Method overview void init(in nsIFile executable); void initWithPid(in unsigned long pid); Obsolete since Gecko 1.9.2 void kill(); void run(in boolean blocking, [array, size_is(count)] in string args, in unsigned long count); void runAsync([array, size_is(count)] in string args, in unsigned long count, [optional] in nsIObserver observer, [optional] in bool...
...utable file. Once initialized, you can start the process executing by calling run(). Note: This function does not work with application bundles on Mac OS X, see bug 307463 for details. void init( in nsIFile executable ); Parameters executable The nsIFile executable file to be represented by the nsIProcess object. initWithPid() Obsolete since Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Initializes the nsIProcess to represent an existing process, given that process's ID. Gecko 1.9.1 note This method is no longer implemented as of Gecko 1.9.1, and is removed entirely in Gecko 1.9.2. void initWithPid( in unsigned long pid ); Parameters pid The process ID to begin to represent. kill() Immediately terminates the process represented by t...
nsIResumableChannel
netwerk/base/public/nsIResumableChannel.idlScriptable This interface is meant to be implemented by the channels that support resuming broken downloads (for example Necko's HTML and FTP channels). Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void asyncOpenAt(in nsIStreamListener listener, in nsISupports ctxt, in unsigned long startPos, in nsIResumableEntityID entityID); Obsolete since Gecko 1.8 void resumeAt(in unsigned long long startPos, in ACString entityID); Attributes Attribute Type Description entityID ACString The entity id for this URI. Available after OnStartRequest. Read only. Exceptions thrown NS_ERROR_NOT_RESUMABLE If this load is not resumable. Methods asyncOpenAt() ...
...entityID); Obsolete since Gecko 1.8 void resumeAt(in unsigned long long startPos, in ACString entityID); Attributes Attribute Type Description entityID ACString The entity id for this URI. Available after OnStartRequest. Read only. Exceptions thrown NS_ERROR_NOT_RESUMABLE If this load is not resumable. Methods asyncOpenAt() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Open this channel, and read starting at the specified offset. The request given to the nsIStreamListener will be QIable to nsIResumableInfo. void asyncOpenAt( in nsIStreamListener listener, in nsISupports ctxt, in unsigned long startPos, in nsIResumableEntityID entityID ); Parameters listener As for asyncOpen. ctxt As for asyncOpen. startPos The starting of...
nsIScreen
widget/nsIScreen.idlScriptable This interface provides information about a display screen. Inherits from: nsISupports Last changed in Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10) Use nsIScreenManager to obtain references to screens. Implemented by: @mozilla.org/gfx/screenmanager;1 as a service: var screen = Components.classes["@mozilla.org/gfx/screenmanager;1"] .getService(Components.interfaces.nsIScreen); Method overview void GetAvailRect(out long left, out long top, out long width, out long height); void GetRect(out long left, out long top, out long width, out long height); void lockMinimumBrightness(in unsigned long brightness); void unlockMinimumBrightness(in unsigned long brightness); Attributes At...
... actually looking for. Constants Screen brightness constants Constant Value Description BRIGHTNESS_DIM 0 The screen is fully dimmed (that is, off). BRIGHTNESS_FULL 1 The screen is at full brightness. BRIGHTNESS_LEVELS 2 The number of different brightness levels. Screen rotation constants Requires Gecko 13.0(Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10) Constant Value Description ROTATION_0_DEG 0 0? of rotation (that is, no rotation, or default orientation). ROTATION_90_DEG 1 90? of rotation. ROTATION_180_DEG 2 180? of rotation. ROTATION_270_DEG 3 270? of rotation. Methods GetAvailRect() Returns a rectangle indicating the portion of the scree...
nsIScriptError2
ScriptError.idlScriptable Represents JavaScript errors and warnings for use by the console service; augments nsIScriptError by adding a way to initialize the error with the window ID of the outer window with which the error is associated. 1.0 66 Introduced Gecko 2.0 Obsolete Gecko 12.0 Inherits from: nsIScriptError Last changed in Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6) In Gecko 12.0 this Interface was merged into the nsIScriptError interface. Method overview void initWithWindowID(in wstring message, in wstring sourceName, in wstring sourceLine, in PRUint32 lineNumber, in PRUint32 columnNumber, in PRUint32 flags, in string category, in unsigned long long innerWindowID); Attributes Attribute Type Desc...
...to draw an arrow pointing to the problem character. flags One of the script error flag constants. category A string indicating what kind of code caused the message. There are quite a few category strings and they don't seem to be listed in a single place. See Categories for a partial list. innerWindowID The ID of the inner window associated with the error. Prior to Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6), this was the outer window ID. ...
nsISelectionController
content/base/public/nsISelectionController.idlScriptable Please add a summary to this article. ...
...on() Show the caret even in selections. By default the caret is hidden unless the selection is collapsed. Use this function to show the caret even in selections. void setCaretVisibilityDuringSelection( in boolean visibility ); Parameters visibility PR_TRUE to show the caret in selections. PR_FALSE to hide. setCaretWidth() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Set the carets width. Can be called any time. void setCaretWidth( in short pixels ); Parameters pixels The width to set the caret to in pixels. setDisplaySelection() Will set the display mode for the selection. void setDisplaySelection( in short toggle ); Parameters toggle OFF, ON, DISABLED. Native code only!wordExtendForDelete ...
nsISelectionPrivate
This page wasn't updated since the initial import in 2011. See the idl file linked above for up-to-date information. ...
...are against the selection. allowAdjacent Specifies whether the returned ranges are allowed to touch the input range rather than merely overlapping it. resultCount Returns the number of ranges that overlap (or touch) the input range. results Returns the ranges that overlap (or touch) the input range. Native code only!GetRangesForIntervalCOMArray Obsolete since Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This method became obsolete in Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9). Use GetRangesForIntervalArray() instead. void GetRangesForIntervalCOMArray( in nsIDOMNode beginNode, in PRInt32 beginOffset...
nsISessionStartup
browser/components/sessionstore/nsISessionStartup.idlScriptable Handles the session restore process. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5) Implemented by: @mozilla.org/browser/sessionstartup;1. To use this service, use: var sessionStartup = Components.classes["@mozilla.org/browser/sessionstartup;1"] .getService(Components.interfaces.nsISessionStartup); Method overview boolean doRestore(); Attributes Attribute Type Description sessionType unsigned long The type of session being restored; this will be one of the Session type constants. Read only. state jsval The session state, as a JavaScript object. Read only. Note: Prior to Gecko 8.0 (...
...up;1"] .getService(Components.interfaces.nsISessionStartup); Method overview boolean doRestore(); Attributes Attribute Type Description sessionType unsigned long The type of session being restored; this will be one of the Session type constants. Read only. state jsval The session state, as a JavaScript object. Read only. Note: Prior to Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5), this was a string. It was changed in order to improve performance, which was suffering due to the need to parse and stringify the data. Constants Session type constants Constant Value Description NO_SESSION 0 There's no data available from the previous session. RECOVER_SESSION 1 The last session crashed. It will either be restored or about:sessionrestore will be ...
nsISmsDatabaseService
nsISmsDatabaseService dom/sms/interfaces/nsISmsDatabaseService.idlScriptable Used to store and manage SMS text messages for the WebSMS API 1.0 66 Introduced Gecko 13.0 Inherits from: nsISupports Last changed in Gecko 15.0 (Firefox 15.0 /
Thunderbird 15.0 / SeaMonkey 2.12) Implemented by: @mozilla.org/sms/smsdatabaseservice;1. To create an instance, use: var smsService = Components.classes["@mozilla.org/sms/smsdatabaseservice;1"] .createInstance(Components.interfaces.nsISmsDatabaseService); Method overview long saveReceivedMessage(in DOMString aSender, in DOMString aBody, in unsigned long long aDate); long saveSentMessage(in DOMString aReceiver, in DOMString aBody, in unsigned long long aDate); void getMessage(in long messageId, in long ...
...cessId ); Parameters listId A number representing the id of the message list. requestId A number representing the id of the request. processId Optional A number representing the id of the process. clearMessageList() void getNextMessageInList( in long listId, ); Parameters listId A number representing the id of the message list. markMessageRead() Requires Gecko 15.0(Firefox 15.0 /
Thunderbird 15.0 / SeaMonkey 2.12) void markMessageRead( in long messageId, in boolean value, in long requestId, [optional] in unsigned long long processId ); Parameters messageId A number representing the id of the message. value A Boolean indicating whether a message is read or unread. requestId A number representing the id of the request. processId Optional A number representing the id of the p...
nsISocketTransportService
pecifies the transport-layer proxy type to use. Set to null if no proxy should be used. For more details on communicating information about proxies like SOCKS (which are transparent to upper protocols), see nsIProxiedProtocolHandler , nsIProtocolProxyService or Proxies in Necko. Return value An nsISocketTransport containing the SocketTransport. init() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) void init(); Parameters None. Native code only! notifyWhenCanAttachSocket If the number of sockets reaches the limit, then consumers can be notified when the number of sockets becomes less than the limit. The notification is asynchronous, delivered via the given nsIRunnable instance on the socket transport thread. Note: This function may only be called from an event ...
...cation is asynchronous, delivered via the given nsIRunnable instance on the socket transport thread. Note: This function may only be called from an event dispatch on the socket thread. void notifyWhenCanAttachSocket( in nsIRunnable aEvent ); Parameters aEvent Event that will receive the notification when a new socket can be attached. shutdown() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) void shutdown(); Parameters None. Example // at first, we need a nsISocketTransportService .... var transportService = Components.classes["@mozilla.org/network/socket-transport-service;1"] .getService(Components.interfaces.nsISocketTransportService); // ... then it is time to create the transport. It will connect to ... // ... mozilla.org:2000 with TLS ...
nsIToolkitProfileService
toolkit/profile/public/nsIToolkitProfileService.idlScriptable The Profile Service manages user profiles. Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Note: Starting in Gecko 1.9.1, this service is implemented by @mozilla.org/toolkit/profile-service;1. ...
...ce, you can use the following code: var toolkitProfileService = Components.classes["@mozilla.org/toolkit/profile-service;1"] .createInstance(Components.interfaces.nsIToolkitProfileService); Prior to Gecko 1.9.1 only the built-in profile manager was able to access the toolkit profile service. To access the built-in profile manager in versions of Firefox up to 4.0 and
Thunderbird up to 3.3 you can launch with the -profilemanager command line flag. Future versions will require the separate Profile Manager application. Warning: This service is synchronous so it is recommended that you use OS.File to find the profile directory via OS.Constants.Path.profileDir. OS.File is available from Gecko 18 (Firefox 18.0 /
Thunderbird 18.0 / SeaMonkey 2.15). Method overview ...
nsIURL
netwerk/base/public/nsIURL.idlScriptable This interface provides convenience methods that further break down the path portion of nsIURI. ...
... filePath AUTF8String Path including the directory and file portions of a URL. For example, the filePath of "http://host/foo/bar.html#baz" is "/foo/bar.html". Some characters may be escaped. param AUTF8String Parameters specified after the ; in the URL. Some characters may be escaped. Obsolete since Gecko 9.0 Note: This was removed in Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6) because the semicolon is not actually valid for this purpose and should not have been specially handled. query AUTF8String Query portion (the part after the "?") of the URL. If there isn't one, an empty string is returned. Some characters may be escaped. ref AUTF8String Reference portion (the part after the "#") of the URL. If there isn't one...
nsIWinAppHelper
toolkit/xre/nsIWinAppHelper.idlScriptable Used on Windows only to do some work from a special process that gets created with elevated privileges. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Implemented by: @mozilla.org/xre/app-info;1. To create an instance, use: var xulAppInfo = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIWinAppHelper); The nsIXULAppInfo and nsIXULRuntime interfaces are also implemented by "xre/app-info". Method overview void fixReg(); Obsolete since Gecko 1.9 void postUpdate(in nsILocalFile logFile); Obsolete since Gecko 1.9.2 Attributes Attribute Type Description userCanElevate boolean ...
... Administrator The application is not already running with elevated permissions Otherwise it returns false. Methods fixReg() Obsolete since Gecko 1.9 (Firefox 3) Invokes helper.exe with the /fixreg parameter. Note that this parameter was never actually supported. void fixReg(); Parameters None. postUpdate() Obsolete since Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Invokes helper.exe with the /postupdate parameter. This updates the uninstallation log so that the application can be uninstalled correctly after an update. void postUpdate( in nsILocalFile logFile ); Parameters logFile The file to use for the uninstallation log. The path is passed to helper.exe as the /uninstalllog parameter. ...
nsIWindowsShellService
browser/components/shell/public/nsIWindowsShellService.idlScriptable Please add a summary to this article. Inherits from: nsIShellService Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview string getRegistryEntry(in long aHKeyConstant, in string aSubKeyName, in string aValueName); Obsolete since Gecko 1.8 void restoreFileSettings(in boolean aForAllUsers); Obsolete since Gecko 1.9 void shortcutMaintenance(); Attributes Attribute Type Description desktopBackgroundColor unsigned long The desktop background color, visible when no background image is used, or if the background image is centered and does not fill the entire screen. A rgb value, where (r << 24 | g << 16 | b) Obsolete since Gecko 1.8 unreadMailCount unsigned long The numbe...
... the Windows Registry. Constant Value Description HKCR 0 HKEY_CLASSES_ROOT. Obsolete since Gecko 1.8 HKCC 1 HKEY_CURRENT_CONFIG. Obsolete since Gecko 1.8 HKCU 2 HKEY_CURRENT_USER. Obsolete since Gecko 1.8 HKLM 3 HKEY_LOCAL_MACHINE. Obsolete since Gecko 1.8 HKU 4 HKEY_USERS. Obsolete since Gecko 1.8 Methods getRegistryEntry() Obsolete since Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Retrieves a Windows Registry entry value. string getRegistryEntry( in long aHKeyConstant, in string aSubKeyName, in string aValueName ); Parameters aHKeyConstant The starting key, using the constants defined above. aSubKeyName The sub key to locate. aValueName The value to locate in the sub key. The empty string returns the default value of the sub key. Retu...
nsIZipReader
modules/libjar/nsIZipReader.idlScriptable This interface provides methods for reading compressed (zip) files. Inherits from: nsISupports Last changed in Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7) Implemented by: @mozilla.org/libjar/zip-reader;1. ...
...r;1"] .createInstance(Components.interfaces.nsIZipReader); About character sets and code pages Note: nsIZipReader has a code page problem; that is, in the ZIP specification, filenames are supposed to use 7-bit ASCII; however, most modern filesystems use 8 bit code pages, such as UTF-8. This can mismatch characters in the nsIZipReader API. Starting in Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7), the nsIZipReader API supports a limited 8 bit code page usage. All functions now pass the filenames (both in and out) as AUTF8String. So you can now read and extract what you wrote with nsIZipWriter. If you show filenames from the findEntries() result in the user interface, the character matching is only fine on UTF-8 ZIP archives. Method overview void close()...
nsMsgViewCommandCheckState
mailnews/base/public/nsIMsgDBView.idlScriptable Please add a summary to this article. ...
... mailnews/base/public/nsIMsgDBView.idlScriptable Please add a summary to this article. ...
XPCOM ABI
en, compiled XPCOM components are called 'binary' or 'native'. A binary XPCOM component consists of an .xpt file which fits all platforms and a DLL (.dll on Windows, .so on Unix) which is platform-specific and has a certain ABI. Only applications which use this ABI could use this XPCOM component. To put it simply, an XPCOM component built for a specific ABI would only be compatible with Firefox,
Thunderbird or other XULRunner application built for the same ABI. ABI Naming Each ABI is named with a string [TARGET_XPCOM_ABI] of the following format: {CPU_ARCH}-{TARGET_COMPILER_ABI} {CPU_ARCH} [Platforms] represents the CPU architecture and may be either: x86 - i386 and higher series (including x86-64 CPUs in 32-bit mode) ppc - PowerPC series Alpha - Alpha series x86_64 - AMD64/EMT64 series i...
...- IRIX 6 C++ Compiler gcc2 - GNU C++ Compiler 2.x gcc3 - GNU C++ Compiler 3.x or 4.x sunc - Sun C++ Compiler ibmc - IBM C++ Compiler For example: Firefox built with the GNU C++ Compiler 4.0.0 for the Intel Pentium processor would have XPCOM ABI of x86-gcc3 The XPCOM ABI string can be retrieved programmatically by using the nsIXULRuntime interface. ...
Account Provisioner
The Account Provisioner gives the user the chance to search for and order a vanity email account from a list of partner providers. If the user already has an email account, the user can switch to the original account setup wizard. Debugging The Account Provisioner dialog logs most if not all of its activities, which is useful for debugging. Logs can either be dumped to the terminal via dump, or to the Error Console. To have logs dumped to the terminal, create a string preference called mail.provider.logging.dump and set its value to All. ...
...r debugging. Logs can either be dumped to the terminal via dump, or to the Error Console. To have logs dumped to the terminal, create a string preference called mail.provider.logging.dump and set its value to All. To have logs dumped to the Error Console, create a string preference called mail.provider.logging.console and set its value to All. A MozillaZine article on how to set preferences in
Thunderbird. ...
Demo Addon
Drag the "Demo" button into the toolbar. Afterwards, just click that button to show the demo overview. All three demos are explained in the following sections. ...
...Drag the "Demo" button into the toolbar. Afterwards, just click that button to show the demo overview. All three demos are explained in the following sections. Only the interesting parts are shown, it's recommended that you download the add-on and have a look at its files. ...
Toolkit version format
in install and update manifests. The following preferences: app.extensions.version, extensions.lastAppVersion Versions returned by nsIXULAppInfo. application.ini in XULRunner applications appversion flag in chrome manifests. You can use nsIVersionComparator to compare versions from your application. See Older version formats below for description of the older version format used in Firefox/
Thunderbird 1.0. Version format A version string consists of one or more version parts, separated with dots. Each version part is itself parsed as a sequence of four parts: <number-a><string-b><number-c><string-d>. Each of the parts is optional. Numbers are integers base 10 (may be negative), strings are non-numeric ASCII characters. A few examples of valid version parts: 0 (as in 1.0): <number-a>=0 ...
...xamples 1.-1 < 1 == 1. == 1.0 == 1.0.0 < 1.1a < 1.1aa < 1.1ab < 1.1b < 1.1c < 1.1pre == 1.1pre0 == 1.0+ < 1.1pre1a < 1.1pre1aa < 1.1pre1b < 1.1pre1 < 1.1pre2 < 1.1pre10 < 1.1.-1 < 1.1 == 1.1.0 == 1.1.00 < 1.10 < 1.* < 1.*.1 < 2.0 Technical Reference For those interested in seeing the implementation of toolkit version comparison, see nsVersionComparator.cpp. Older version formats Firefox and
Thunderbird 1.0 used a simpler version format, namely major[.minor[.release[.build]]][+] where [..] denotes an optional component, and major, minor, release, and build are all non-negative integers. ...
Introduction to DOM Inspector - Firefox Developer Tools
DOM Inspector is standalone; it supports all toolkit applications, and it's possible to embed it in your own XULRunner app. DOM Inspector can serve as a sanity check to verify the state of the DOM, or it can be used to manipulate the DOM by hand, if desired. ...
... automatically load a document or loads a document other than the one you'd like to inspect, you can select the desired document a few different ways. Inspecting Content Documents The Inspect Content Document menupopup can be accessed from the File menu, and it will list currently loaded content documents. In Firefox and SeaMonkey browser, these will be the webpages you have opened in tabs. For
Thunderbird and SeaMonkey Mail and News, any messages you're viewing will be listed here. Inspecting Chrome Documents The Inspect Chrome Document menupopup can be accessed from the File menu , and it will contain the list of currently loaded chrome windows and subdocuments. A browser window and the DOM Inspector are likely be already open and displayed in this list. The DOM Inspector keeps track of all the...
Attr - Web APIs
You should revise your code accordingly. See Deprecated properties and methods for a complete list. Properties name Read only The attribute's name. namespaceURI Read only A DOMString representing the namespace URI of the attribute, or null if there is no namespace. localName Read ...
...ding the attribute. Note: DOM Level 4 removed this property. The assumption was that since you get an Attr object from an Element, you should already know the associated element. As that doesn't hold true in cases like Attr objects being returned by Document.evaluate, the DOM Living Standard reintroduced the property. Gecko outputs a deprecation note starting from Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4). This note was removed again in Gecko 49.0 (Firefox 49.0 /
Thunderbird 49.0 / SeaMonkey 2.46). specified Read only This property always returns true. Originally, it returned true if the attribute was explicitly specified in the source code or by a script, and false if its value came from the default one defined in the document's DTD. value The attribute's value. N...
Document.xmlEncoding - Web APIs
If the XML Declaration states: <?xml version="1.0" encoding="UTF-16"?> ...the result should be "UTF-16". ...
...ature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Returns the encoding as determined by the XML declaration. Should be null if unspecified or unknown. Warning: Do not use this attribute; it has been removed from the DOM Level 4 specification and is no longer supported in Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7). If the XML Declaration states: <?xml version="1.0" encoding="UTF-16"?> ...the result should be "UTF-16". However, Firefox 3.0 includes information on endianness (e.g., UTF-16BE for big endian encoding), and while this extra information is removed as of Firefox 3.1b3, Firefox 3.1b3 is still consulting the file's encoding, rather than the XML Declaration as the spec defi...
Document - Web APIs
versalXPConnect privileges). Document.popupNode Returns the node upon which a popup was invoked. Document.tooltipNode Returns the node which is the target of the current tooltip. ...
... Internet Explorer notes Microsoft defines some non-standard properties: Document.fileSize* Returns size in bytes of the document. Starting with Internet Explorer 11, that property is no longer supported. See MSDN. ...
Working with the History API - Web APIs
the URL later, for instance after the user restarts the browser. The new URL does not need to be absolute; if it's relative, it's resolved relative to the current URL. The new URL must be of the same origin as the current URL; otherwise, pushState() will throw an exception. This parameter is optional; if it isn't specified, it's set to the document's current URL. Note: In Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) through Gecko 5.0 (Firefox 5.0 /
Thunderbird 5.0 / SeaMonkey 2.2), the passed object is serialized using JSON. Starting in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3), the object is serialized using the structured clone algorithm. This allows a wider variety of objects to be safely passed. In a sense, calling pushState() is similar to setting window.location = ...
... exactly like history.pushState(), except that replaceState() modifies the current history entry instead of creating a new one. Note that this doesn't prevent the creation of a new entry in the global browser history. replaceState() is particularly useful when you want to update the state object or URL of the current history entry in response to some user action. Note: In Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) through Gecko 5.0 (Firefox 5.0 /
Thunderbird 5.0 / SeaMonkey 2.2), the passed object is serialized using JSON. Starting in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3), the object is serialized using the structured clone algorithm. This allows a wider variety of objects to be safely passed. Example of replaceState() method Suppose http://mozilla.org/foo.html ex...
Node.cloneNode() - Web APIs
true, then node and its whole subtree--including text that may be in child Text nodes--is also copied. If false, only node will be cloned. Any text that node contains is not cloned, either (since text is contained by one or more child Text nodes). deep has no effect on empty elements (such as the <img> and <input> elements). ...
...nput> elements). *Note: In the DOM4 specification (since Gecko 13.0 (Firefox 13 /
Thunderbird 13 / SeaMonkey 2.10)), the optional deep argument defaults to true. This behavior has been changed in the latest spec! Although deep it still optional, it now defaults to false. You should always provide an explicit value for backward and forward compatibility. With Gecko 28.0 (Firefox 28 /
Thunderbird 28 / SeaMonkey 2.25 / Firefox OS 1.3)), the console warned developers not to omit the argument. Starting with Gecko 29.0 (Firefox 29 /
Thunderbird 29 / SeaMonkey 2.26)), a shallow clone is defaulted instead of a deep clone. Example let p = document.getElementById("para1") let p_prime = p.cloneNode(true) Notes Cloning a node copies all of its attributes and their values, including in...
Window.pkcs11 - Web APIs
For more information on installing PKCS11 modules, see installing PKCS11 modules. See bug 326628 for details on why the property was removed. ...
... browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Summary Returns the pkcs11 object, which is used to install drivers and other software associated with the pkcs11 protocol. If pkcs11 isn't supported, this property returns null. Note: This property has been returned null since Gecko 1.9.0.14 (Firefox 3.0.14) and removed in Gecko 29.0 (Firefox 29 /
Thunderbird 29 / SeaMonkey 2.26)) for security reasons. For more information on installing PKCS11 modules, see installing PKCS11 modules. See bug 326628 for details on why the property was removed. Syntax objRef = window.pkcs11 Example window.pkcs11.addModule(sMod, secPath, 0, 0); Notes See nsIDOMPkcs11 for more information about how to manipulate pkcs11 objects. Specification Not part of specifi...
Sending and Receiving Binary Data - Web APIs
nerate some data for (var i=0; i< longInt8View.length; i++) { longInt8View[i] = i % 256; } var xhr = new XMLHttpRequest; xhr.open("POST", url, false); xhr.send(myArray); This is building a 512-byte array of 8-bit integers and sending it; you can use any binary data you'd like, of course. Note: Support for sending ArrayBuffer objects using XMLHttpRequest was added to Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6). Add information about other browsers' support here. Submitting forms and uploading files Please, read this paragraph. Firefox-specific examples This example transmits binary content asynchronously, using the POST method, and Firefox's non-standard sendAsBinary(). var req = new XMLHttpRequest(); req.open("POST", url, true); // set headers and mime-type appropriately req.
...eader("Content-Length", 741); req.sendAsBinary(aBody); Line 4 sets the Content-Length header to 741, indicating that the data is 741 bytes long. Obviously you need to change this value based on the actual size of the data being sent. Line 5 uses the sendAsBinary() method to initiate the request. Note: This non-standard sendAsBinary method is considered deprecated as of Gecko 31 (Firefox 31 /
Thunderbird 31 / SeaMonkey 2.28) and will be removed soon. The standard send(Blob data) method can be used instead as explained above. You can also send binary content by passing an instance of the nsIFileInputStream to send(). In that case, you don't have to set the Content-Length header yourself, as the information is fetched from the stream automatically: // Make a stream from a file. var stream = Compo...
Using XMLHttpRequest - Web APIs
pRequest.open() method. If this argument is true or not specified, the XMLHttpRequest is processed asynchronously, otherwise the process is handled synchronously. A detailed discussion and demonstrations of these two types of requests can be found on the synchronous and asynchronous requests page. Do not use synchronous requests outside Web Workers. Note: Starting with Gecko 30.0 (Firefox 30.0 /
Thunderbird 30.0 / SeaMonkey 2.27), synchronous requests on the main thread have been deprecated due to the negative effects to the user experience. Note: The constructor function XMLHttpRequest isn't limited to only XML documents. It starts with "XML" because when it was created the main format that was originally used for Asynchronous Data Exchange were XML Handling responses There are several types of ...
...tringifiable raw data, we used the sendAsBinary() method in conjunction with the readAsBinaryString() method of the FileReader API. As such, the above script makes sense only when you are dealing with small files. If you do not intend to upload binary content, consider instead using the FormData API. Note: The non-standard sendAsBinary method is considered deprecated as of Gecko 31 (Firefox 31 /
Thunderbird 31 / SeaMonkey 2.28) and will be removed soon. The standard send(Blob data) method can be used instead. Using FormData objects The FormData constructor lets you compile a set of key/value pairs to send using XMLHttpRequest. Its primary use is in sending form data, but can also be used independently from a form in order to transmit user keyed data. The transmitted data is in the same format the ...
Touch events (Mozilla experimental) - Developer guides
You should instead use the standard touch events API, supported since Gecko/Firefox 6 with multi-touch support added in Gecko/Firefox 12. This API allowed you to track the movement of the user's finger on a touch screen, monitoring the raw touch events generated by the system. ...
...You should instead use the standard touch events API, supported since Gecko/Firefox 6 with multi-touch support added in Gecko/Firefox 12. This API allowed you to track the movement of the user's finger on a touch screen, monitoring the raw touch events generated by the system. ...
Values - MathML
thspace => 0.3888888888888889em Constant Value veryverythinmathspace 1/18em verythinmathspace 2/18em thinmathspace 3/18em mediummathspace 4/18em thickmathspace 5/18em verythickmathspace 6/18em veryverythickmathspace 7/18em Negative contstants are introduced in Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4) (bug 650530) negativeveryverythinmathspace -1/18em negativeverythinmathspace -2/18em negativethinmathspace -3/18em negativemediummathspace -4/18em negativethickmathspace -5/18em negativeverythickmathspace -6/18em negativeveryverythickmathspace -7/18em Note: Namedspace binding is dep...
... ...
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
Role mapping of <a> element depending on whether it is a valid link Implementation status unknown ARIA state and property attributes animatable Implementation status unknown Styling Change Notes contentStyleType attribute removed Implementation status unknown LinkStyle on SVGStyleElement Implemented (bug 1239128 (Firefox 46.0 /
Thunderbird 46.0 / SeaMonkey 2.43)) Inner <svg>s and <foreignObjects>s not overflow: hidden; in UA style sheet Implementation status unknown overflow: hidden; on <hatch> in UA style sheet Implementation status unknown 0 0 as default value of transform-origin except root <svg> and <svg> children of <foreign> Implementation status unknown Use of white-space instead ...
...ntation status unknown <source> Implementation status unknown <track> Implementation status unknown Painting Change Notes paint-order Implemented (bug 828805) will-change instead of buffered-rendering Implementation status unknown context-fill and context-stroke paint values Implemented (bug 719286 (Firefox 18.0 /
Thunderbird 18.0 / SeaMonkey 2.15) and bug 798843 (Firefox 26.0 /
Thunderbird 26.0 / SeaMonkey 2.23)) child keyword for <paint> values and marker properties Implementation status unknown vector-effect property Only none and non-scaling-stroke values are supported (bug 528332 (Firefox 15 /
Thunderbird 15 / SeaMonkey 2.12), bug 1318208) arcs value for stroke-linejoin Not imp...
Contributor's Guide - Archive of obsolete content
t components, and enforcing logical boundaries between them. Unfortunately, JavaScript does not yet have native support for modules: it has to rely on the host application to provide it with functionality such as loading subscripts, and exporting/ importing names. We will show how to do each of these things using the built-in Components object provided by Xulrunner application such as Firefox and
Thunderbird. Private Properties People have come up with several ways to emulate private properties using existing language features. This article discusses two common techniques: one using prefixes, the other closures. ...
system/xul-app - Archive of obsolete content
sion range to compare. The range does not include this bound. Returns boolean : True if version falls in the given range and false otherwise. Properties ID The GUID of the host application. For example, for Firefox this value is "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}". name The host application name. The possible values here are: "Firefox" "Fennec" "Mozilla" "SeaMonkey" "Sunbird" "
Thunderbird" "Firefox"and"Fennec"` are the most commonly used values. version The host application version. platformVersion The Gecko/XULRunner platform version. ids A mapping of application names to their IDs. For example, ids["Firefox"] == "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}". ...
package.json - Archive of obsolete content
is defaults to the text "a basic add-on". This value will be used as the add-on's em:description element in its install.rdf. engines Object with supported applications (key) and required version numbers (value). The version number can both specify a minimum and maximum version separated by a space. firefox: Firefox Desktop fennec: Firefox for Android
thunderbird:
Thunderbird seamonkey: SeaMonkey Any application UUID Example: "engines": { "firefox": ">= 38.0a1", "fennec": ">= 38.0a1" } fullName Note: This is deprecated along with cfx; it's not available when using jpm. The full name of the package. It can contain spaces. If this key is present, its value will be used as the add-on's em:name eleme...
Bootstrapped extensions - Archive of obsolete content
Traditional extensions include overlays, wherein the application can load up XUL from the extension's package and automatically apply it on top its own UI. While this makes creating extensions that add to the application's user interface relatively easy, it means that updating, installing, or disabling an extension requires an application restart. Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) introduces bootstrapped extensions. These are special extensions that, instead of using overlays to apply their user interface to the application, programmatically insert themselves into the application. This is done using a special script file that's included in the extension that contains functions the browser calls to command the extension to install, uninstall, start up, and shut down. All the a...
Progress Listeners - Archive of obsolete content
stays in memory. When used with a tabbrowser, you cannot choose which types of events that will be received. Instead, you receive those events that the tabbrowser is interested in, except that the onLinkIconAvailable and onRefreshAttempted notifications are optional. The tabbrowser uses a strong reference to your listener object. Gecko 2.0 note Starting in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1), all events are optional. The tabbrowser only notifies you of the events for which you provide a callback. Remember to change myListener to a unique identifier. Example: Notification when the value in Address Bar changes A commonly asked question is how to get notified whenever the URL in the address bar (also known as location bar) changes. Using the following code, you ...
Windows - Archive of obsolete content
You can get a DOM window's ID using the nsIDOMWindowUtils attribute outerWindowID. Each time a new window is created, it gets assigned an ID one greater than the last created window. This can be used in cases in which you need to uniquely identify a DOM window during the duration of the application's lifespan: var u...
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
t to take a look at this guide instead. On the other hand, if you are an experienced developer or team, and you know that you are going to build a large, complex extension, you would do well to consider the approach described in this article. One final note: I've only tried these techniques inside Firefox, but they'll probably work more or less unchanged on other Gecko-based platforms like
Thunderbird or Seamonkey. If someone can confirm this and/or provide guidelines for what's different, I'll update the article to incorporate this information. Bambi Meets Mozilla None of this is for the faint of heart. In particular, the initial step involves building Mozilla, which is a huge - nay, gargantuan! - project. Many intelligent developers have been driven to the brink of insanity try...
Developing add-ons - Archive of obsolete content
Mozilla based software is typically extensible through add-ons. There are three primary types of add-on: extensions, plugins, and themes. 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. Extensions Extensions add new functionality to Mozilla applications such as Firefox, SeaMonkey and
Thunderbird. They can add anything from a toolbar button to a c...
Appendix: What you should know about open-source software licenses - Archive of obsolete content
attempts at explaining open source start with the GPL. This is the longest, most complicated, and hardest to understand. So instead, I'm going to start with the simplest, the Modified BSD license. The table below shows a few well-known software titles and their licenses License Representative software titles Modified BSD FreeBSD, NetBSD, OpenBSD MPL Firefox,
Thunderbird (also triple-licensed MPL/LGPL/GPL) GPL Linux kernel, GIMP LGPL GTK+, OpenOffice.org Modified BSD license This license permits free duplication, distribution, and modification provided that a copyright statement and liability disclaimer are included. Modifications to BSD-licensed software can be published under commercial licenses or other different licenses. This ...
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
Most Useful Upgraded Extension" award in Mozilla's 2006 "Extend Firefox" competition for ScrapBook, and was runner-up in the "Extend Firefox 2" contest for FireGestures. The chapters so far have each focused on technologies in isolation--XUL, JavaScript, CSS, and XPCOM. In this chapter, we'll discuss how to put them together to actually build an extension. An easier method of building a Firefox/
Thunderbird Addon for developers who are well-acquainted with IDEs like Netbeans, Eclipse, etc. is to use Netbeans (IDE from Sun Microsystems) and Foxbeans (Plugin for Netbeans, by TeeSoft). Setting up your development environment In order to develop (and test) extensions in a most convenient way it is recommended to apply some changes to Firefox. In the following you will find a brief description how to ...
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
strings, filenames, etc as search keys. If you're having trouble with any of the details of the interface, it is helpful to search on the source code for usage examples within Firefox. Note: To look at the Firefox 3 source code, choose "Firefox 3" in the Starting Points list. For Firefox 3.5 choose "Mozilla 1.9.1." For the current development trunk of Firefox, choose "Mozilla Central" and for
Thunderbird, choose "Comm. Central". Calling XPCOM from XPConnect Use the XPConnect technology to use XPCOM in JavaScript. Listing 1 shows how you can use XPConnect to acquire references to XPCOM services and create new XPCOM objects. Each component is identified with a contract ID in the form @domain_name/module_name/component_name;version_number, and implements one or more interfaces that determine what...
Getting Started with Firefox Extensions - Archive of obsolete content
<< PreviousNext >> What's a Firefox Extension? Extensions add new functionality to Mozilla applications such as Firefox and
Thunderbird. They can add anything from a toolbar button to a completely new feature. They allow the application to be customized to fit the personal needs of each user if they need additional features, while keeping the applications small to download. Taken from the Extensions page. As described in the quoted text, an extension is a small application 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 ...
The Essentials of an Extension - Archive of obsolete content
em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minVersion>4.0</em:minVersion> <em:maxVersion>10.*</em:maxVersion> </Description> </em:targetApplication> This node specifies the target application and target versions for the extension, specifically Firefox, from version 4 up to version 10. The UUID is Firefox's unique ID. Other Mozilla and Mozilla-based applications such as
Thunderbird and Seamonkey have their own. You can have an extension that works on multiple applications and versions. For example, if you create a Firefox extension, it would normally take little effort to port it to SeaMonkey, which has very similar features and UI. The min and max version specify the version range in which the extension can be installed. Here's more about the version format. If the applic...
Security best practices in extensions - Archive of obsolete content
nsion. Your goal is to keep your users safe. Some items mentioned are strict guidelines, meaning that if you don't follow them then your add-on will not be approved on Mozilla add-ons. Other items are recommendations. The difference will be clearly flagged. This is written from the perspective of a Firefox extension, but most items apply to extensions for other Mozilla-based applications such as
Thunderbird or SeaMonkey. Web content handling In general the best way to ensure that the browser is not compromised when you load content is to make sure it does not have those privileges. A more detailed explanation of this process is in Displaying web content in an extension without security issues. The privileges that a document gets also depend on where it comes from. For example, if you load a chrom...
Signing an extension - Archive of obsolete content
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. ...
Adding preferences to an extension - Archive of obsolete content
ribing the textbox. The second is the textbox itself, in which the user enters the symbol. The preference property ties the textbox to the "pref_symbol" <preference> element and to the "extensions.stockwatcher2.symbol" preference. This lets the preference value automatically be updated to reflect the content of the textbox. Alternative method: Inline Options Requires Gecko 7(Firefox 7 /
Thunderbird 7 / SeaMonkey 2.4) You could use Inline Options for this preference. You must set em:optionsType to 2 in your install.rdf. Your options.xul file would look like this: <?xml version="1.0" ?> <vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <setting pref="extensions.stockwatcher2.symbol" type="string" title="Stock to watch" /> </vbox> Adding the context menu Add...
MozOrientation - Archive of obsolete content
You should use that API instead. An event that is repeatedly fired on the window as accelerator data is provided to the browser. Note: This below describes how these values worked for the now obsolete MozOrientation. The X axis represents the amount of right-to-left tilt. This value is 0 if the device is level along the X axis, and approaches 1 as the device is tilted toward the left, and -1 as the device is tilted toward the right. The Y axis represents the amount of front-to-back tilt. ...
Install.js - Archive of obsolete content
y of this API is now deprecated and as of Gecko 1.9 no longer available. Extension, Theme, and plug-in developers must switch away from install.js based packages to the new packaging scheme with an install.rdf manifest. 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. If you want your extension to install in Firefox 0.9 and later and/or
Thunderbird 0.7 and later only, you don't need install.js, you need an install.rdf instead. See also this article from XulPlanet's Main Tutorial. There is a different sample install.js template located at http://downloads.mozdev.org/xsidebar/mods/. This...
cert_override.txt - Archive of obsolete content
Since there is no way to add easily an exception in a XULRunner 1.9 project, you can open the page in Firefox, accept the certificate, then copy the cert_override.txt to the XULRunner application profile. The syntax is described on this web site. Example Here is an example for a SHA1-256 hash algorithm. The key and the website are not valid: # PSM Certificate Override Settings file # This is a generated file! Do not edit. ...
Source code directories overview - Archive of obsolete content
. 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 for the content contained at a certain URL. For example, if this code determines that the content is a mail message, it looks up the a...
Using content preferences - Archive of obsolete content
The last directory for any site Use DownloadLastDir.jsm for access to these preferences. browser.upload.lastDir Path of a filesystem directory This preference is stored and retrieved automatically by file upload controls. spellcheck.lang Language code (e.g., "en-US") Private browsing Requires Gecko 9.0(Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6) Prior to Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6), the content preference service always stores preferences on disk. Because of this, in private browsing mode, use of the content preference service needed to be avoided while in private browsing mode; instead, information needed to be stored in memory or preferences had to be avoided. Starting in Gecko 9.0, w...
Automatic Mozilla Configurator - Archive of obsolete content
Automatic Mozilla Configurator:Introduction Automatic Mozilla Configurator:How Mozilla finds its configuration files Automatic Mozilla Configurator:How
Thunderbird and Firefox find their configuration files Automatic Mozilla Configurator:Protecting Mozilla's registry.dat file Automatic Mozilla Configurator:Enabling quicklaunch for all users Automatic Mozilla Configurator:Kill the XUL.mfl file for good Automatic Mozilla Configurator:Locked config settings Automatic Mozilla Configurator:Other Mozilla customization pages Online configurator tools: registry.dat mozilla.cfg (locked preferences) ...
Creating a Firefox sidebar extension - Archive of obsolete content
browse to the folder containing emptysidebar.xpi. Click on the file and the Extension installation window pops up. After a restart of Firefox, the sidebar is installed. You can download the empty sidebar project to use as a basis for your own sidebars. The EmptySidebar extension Resources Code snippets:Sidebar Building an Extension Creating Applications with Mozilla Packaging Firefox/
Thunderbird Extensions Creating a Firefox 1 Sidebar Original Document Information Author: J.C. Wesdorp <jcwesdorp . at . occidopagus.nl> - May 30, 2005. Updated for Firefox 2 - Dec 12, 2006. Permission granted to migrate in Jan 2006, including permission to relicense under the CC:By-SA. Original Source: http://occidopagus.nl/firefox/emptysidebar/ ...
Creating a Microsummary - Archive of obsolete content
Web pages can reference generators via <link rel="microsummary"> elements in their <head> elements. Generators can also be independently downloaded and installed by users if they include a list of pages to which they apply. In this tutorial we're going to create a microsummary generator for the Spread Firefox home page that displays the current Firefox download count along with the label Fx downloads; for example: 174475447 Fx downloads. ...
Creating regular expressions for a microsummary generator - Archive of obsolete content
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 matching patterns in those pages' URLs. In this tutorial, we'll explain how to make regular expressions that match the URLs for eBay auction item pages. By the end of the tutorial, you should know some basics about regular expressions and understand how to create expressions that match URLs. ...
Introducing the Audio API extension - Archive of obsolete content
The Audio Data API extension extends the HTML5 specification of the <audio> and <video> media elements by exposing audio metadata and raw audio data. This enables users to visualize audio data, to process this audio data and to create new audio data. Obsolete since Gecko 28 (Firefox 28 /
Thunderbird 28 / SeaMonkey 2.25 / Firefox OS 1.3)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Deprecated since Gecko 22 (Firefox 22 /
Thunderbird 22 / SeaMonkey 2.19)This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bot...
Isp Data - Archive of obsolete content
This page will explain how to create a .rdf or .xml file that you can place in the $INSTALLFOLDER/default/isp to do a variety of things. This page applies to
Thunderbird (Mail/News). Introduction These files allow for adding to the New Account wizard a new option, and help with, among other things, deployment of custom
Thunderbird. Tools needed The files are simple text files, in UTF-8 encoding, so use your favorite modern text editor. A working install of
Thunderbird is also handy for testing. Getting Started First take a look at the number of examples available: http://infosec.ufl.edu/tbird/Gatorlink.xml mailnews/base/ispdata/aol.rdf See the
Thunderbird ISP hooks for more details. ...
Makefile.mozextension.2 - Archive of obsolete content
ome://$(PROJECT)/content/overlay.xul locale $(PROJECT) en-US locale/ skin $(PROJECT) classic/1.0 skin/ style chrome://global/content/customizeToolbar.xul chrome://$(PROJECT)/skin/overlay.css endef export CHROME_MANIFEST chrome.manifest: @echo Generating $(PROJECT)/chrome.manifest @echo "$$CHROME_MANIFEST" > $(PROJECT)/chrome.manifest ###### #Firefox {ec8030f7-c20a-464f-9b0e-13a3a9e97384} #
Thunderbird {3550f703-e582-4d05-9a08-453d09bdfdc6} #Nvu {136c295a-4a5a-41cf-bf24-5cee526720d5} #Mozilla Suite {86c18b42-e466-45a9-ae7a-9b95ba6f5640} #SeaMonkey {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} #Sunbird {718e30fb-e89b-41dd-9da7-e25a45638b28} #Netscape Browser {3db10fab-e461-4c80-8b97-957ad5f8ea47} ###### define INSTALL_RDF <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://w...
Microsummary XML grammar reference - Archive of obsolete content
A microsummary generator is an XML document that describes how to pull specific information from a web page to be presented in summary form as a bookmark whose title changes based on the content of the page it targets. Warning: Microsummary support was removed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) This article provides detailed information about the XML grammar used to build microsummary generators, describing each element and their attributes. For an introduction to how to create a microsummary, read the article Creating a Microsummary. Example The microsummary generator created in the Creating a Microsummary tutorial: <?xml version="1.0" encoding="UTF-8"?> <generator xmlns="http://www.mozilla.org/microsummaries/0.1" name="Firefox Download Count"> <template> <...
Microsummary topics - Archive of obsolete content
Warning: Microsummary support was removed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Programmatically installing a microsummary generator To programmatically install a microsummary generator -- for example, in an extension that helps users create custom generators for their favorite sites -- obtain a reference to the nsIMicrosummaryService interface implemented by the nsIMicrosummaryService component, then call its installGenerator() method, passing it an XML document containing the generator. For example, the following code snippet installs the microsummary generator from the Creating a Microsummary tutorial: var generatorText = ' \ <?xml version="1.0" encoding="UTF-8"?> \ <generator xmlns="http://www.mozilla.org/microsummaries/0.1" \ name="Firefox Download...
Proxy UI - Archive of obsolete content
Seamonkey Menu: Preferences > Advanced group > Proxies panel Menu: right-click on Offline-online button (on browser windows). Camino Configured in OS (Networking Preferences) (Recently Added - some support for reading OS and account settings.)UI Elements Preferences Panel Overview The UI is based on selecting a proxy mode, then filling out any additional needed information in "related" UI. The "OK" button saves the preferences. ...
Supporting private browsing mode - Archive of obsolete content
wsingMode) { /* save private information */ } In the above example, we only save the user's private information if 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 pr...
ontextcommand - Archive of obsolete content
<< XUL Reference home ontextcommand Obsolete since Gecko 1.9.1 Type: script code Note: Applies to:
Thunderbird, SeaMonkeyThis event handler is called when a result is selected for the textbox. As of Gecko 1.9.1, this attribute is superseded by the ontextentered attribute. ...
ontextrevert - Archive of obsolete content
<< XUL Reference home ontextrevert Obsolete since Gecko 1.9.1 Type: script code Note: Applies to:
Thunderbird, SeaMonkey This event handler is called when the user presses Escape to revert the textbox to its original uncompleted value. As of Gecko 1.9.1, this attribute is superseded by the ontextreverted attribute. ...
tabscrolling - Archive of obsolete content
<< XUL Reference home tabscrolling New in
Thunderbird 3Requires SeaMonkey 2.0 Type: boolean If true, the user may cycle through the results list by pressing the Tab key. If false, the default, the Tab key moves the focus to the next element. ...
textbox.autoFill - Archive of obsolete content
<< XUL Reference home autoFill Obsolete since Gecko 1.9.1 Type: boolean Note: Applies to:
Thunderbird and SeaMonkeyIf set to true, the best match will be filled into the textbox as the user types. If false, the default, the value will not be filled in until the user selects an item. As of Gecko 1.9.1, this attribute is now always specified in lower case. ...
textbox.disablehistory - Archive of obsolete content
<< XUL Reference home disablehistory Obsolete since Gecko 2.0 Type: boolean Note: Applies to:
Thunderbird and SeaMonkeyIf false, an arrow button will appear on the end of the textbox which will open a dropdown menu of all available results. The default value is true, hiding the dropdown button. This attribute only works correctly in SeaMonkey 1.x; for
Thunderbird and SeaMonkey 2.0 you should also set the enablehistory attribute; as of Gecko 2.0 this attribute is completely superseded by it. ...
textbox.onblur - Archive of obsolete content
<< XUL Reference home onblur Type: script code This event is sent when a textbox loses keyboard focus. Note: The behavior of this event has evolved over time. Prior to Gecko 1.9 (Firefox 3), the script code would execute in the context of the anonymous HTML <input> element inside the textbox binding. From Gecko 1.9 to Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9), the script code would actually execute twice, once in the context of the anonymous HTML <input> element and once in the context of the <textbox> element itself. As of Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10), the script code only runs in the context of the <textbox> element, matching the behavior of all other event handlers. ...
textbox.onfocus - Archive of obsolete content
<< XUL Reference home onfocus Type: script code This event is sent when a textbox receives keyboard focus. Note: The behavior of this event has evolved over time. Prior to Gecko 1.9 (Firefox 3), the script code would execute in the context of the anonymous HTML <input> element inside the textbox binding. From Gecko 1.9 to Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9), the script code would actually execute twice, once in the context of the anonymous HTML <input> element and once in the context of the <textbox> element itself. As of Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10), the script code only runs in the context of the <textbox> element, matching the behavior of all other event handlers. ...
textbox.type - Archive of obsolete content
<< XUL Reference home type Type: one of the values below You can set the type attribute to one of the values below for a more specialized type of textbox. Don't set the type if you wish to use a regular textbox. autocomplete A textbox that supports autocomplete. For more information about autocomplete textboxes, see the autocomplete documentation (XPFE [
Thunderbird/SeaMonkey]) (Firefox) number A textbox that only allows the user to enter numbers. In addition, arrow buttons appear next to the textbox to let the user step through values. There are several attributes that allow the number textbox to be configured, including decimalplaces, min, max, increment, wraparound, hidespinbuttons, and textbox.value. password A textbox that hides what is typed, used for entering passw...
Dynamically modifying XUL-based user interface - Archive of obsolete content
for beginner to intermediate XUL developers. We assume that the reader has basic knowledge of both XUL and JavaScript. You may also want to read some introductory documents about DOM, like the About the Document Object Model article or the Introduction page of the Gecko DOM Reference. Introduction As you know, XUL is an XML language used in various Mozilla-based applications, such as Firefox and
Thunderbird, to describe the user interface. In XUL applications JavaScript defines the behavior, using DOM APIs to access the XUL document. So what are the Document Object Model APIs? They are the interfaces that are used in any interaction of a script and a document. If you have ever written a script that interacts with a XUL (or HTML) document, you have already used DOM calls. The most well known DOM meth...
appendNotification - Archive of obsolete content
et to "menu", or "menu-button". isDefault - if True, this is the default button. There can be only one default button. If no button has this set, the first button in the array is the default. type - a string. Valid values are "menu-button" and "menu" which must be set if the button is to provide a popup via the popup property. Notification box events Requires Gecko 9.0(Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6) If you specify the eventCallback parameter, it should be a JavaScript function that gets called when interesting things happen related to the notification box. This function receives as its only parameter a string indicating what event occurred. At this time, there's just one event type: "removed". This indicates that the notification box has been removed from its window. ...
Extensions - Archive of obsolete content
True if the target is a MathML element. onLink True if the target is a link. onMailtoLink True if the target is a link to an email address (a mailto: link). linkURL The URL of the link that was context clicked. inFrame True if the context click occured from within a frame. isTextSelected True if text is selected. (Note: was removed from
Thunderbird 3 - see bug 463003 for a replacement) isContentSelected True if anything, text or otherwise, is selected. In the following example, the menuitem is hidden unless the target is an image or a link. function ThumbnailsShowHideItems(event) { var show = document.getElementById("thumbnail-show"); show.hidden = !(gContextMenu.onImage || gContextMenu.onLink); } ...
Panels - Archive of obsolete content
usly focused element from being refocused. Normally, only the latter would be set if needed. This process of removing the focus when opening and closing a popup occurs after the popupshowing event or popuphiding event is fired, which means that if those events are cancelled, the focus is not adjusted. Letting panels be dragged by grabbing the background Requires Gecko 7.0(Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4) Starting in Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4), you can use the backdrag attribute to create panels that the user can drag by clicking and dragging anywhere on their backgrounds. This is a simple, Boolean attribute, so you can enable this feature like this: <panel backdrag="true"> ...
popup - Archive of obsolete content
<< XUL Reference popup New in
Thunderbird 14 Requires SeaMonkey 2.11 Type: popup element Should be set to the popup element that should appear when the user clicks on the textbox. Note: This property is readonly in
Thunderbird and SeaMonkey. ...
popupOpen - Archive of obsolete content
<< XUL Reference popupOpen New in
Thunderbird 15 Requires SeaMonkey 2.12 Type: boolean Indicates whether the popup is open or not. Set this property to open or close the popup. ...
searchCount - Archive of obsolete content
<< XUL Reference searchCount New in
Thunderbird 15 Requires SeaMonkey 2.12 Type: integer Returns the number of search components used. This property is read only. ...
textbox.label - Archive of obsolete content
<< XUL Reference label Type: string Sets the label attribute. Gets the label attribute if it is present and not empty. Otherwise it returns the value of the associated label element, if applicable. Otherwise it returns the placeholder or emptyText property. The getter is mostly useful for screen readers. Note: Prior to Firefox 3, and always in
Thunderbird and SeaMonkey, the label property of an autocomplete textbox returns its value, for compatibility with the menulist element. ...
Building Trees - Archive of obsolete content
er to a specific treechildren element rather than all of them. Once the row height is changed, we can see the full photos. Note: If you want to have the state of the disclosure triangles ("twisties") be persistent, be sure to give each node a unique "id" attribute. These are used to track the current state of the disclosure triangles. Support for this was introduced in Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4). Using Tree Properties Since we need to use special CSS for trees, the properties attribute on a cell becomes extremely useful. It can be used to define extra properties for reference later in a stylesheet. For example, if the properties attribute was set to the value "?creator", you could style the photos created by different people differently. Alternatively, you could als...
XML Templates - Archive of obsolete content
template> ... </template> <listbox> The URL in the datasources attribute may be a relative URL or an absolute URL. Note: If you want to have the state of the disclosure triangles ("twisties") be persistent, be sure to give each node a unique "id" attribute. These are used to track the current state of the disclosure triangles. Support for this was introduced in Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4). For this and the following examples, we are going to use the following XML document containing a list of people: <people> <person name="Napoleon Bonaparte" gender="male"/> <person name="Cleopatra" gender="female"/> <person name="Julius Caesar" gender="male"/> <person name="Ferdinand Magellan" gender="male"/> <person name="Laura Secord" gender="female"/> </people>...
Toolbars - Archive of obsolete content
View Mozilla extension development forums... Mailing list Newsgroup RSS feed #extdev IRC channel MozillaZine forum about:addons newsletter Mozilla's Web-Tech blog mozdev project owners Planet Mozilla Other community links... Tools DOM Inspector 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 ...
Introduction - Archive of obsolete content
unctionality to the browser itself, often in the form of extra toolbars, context menus, or customizations to the browser's user interface. This is done using a feature of XUL called an overlay, which allows the UI provided from one source, in this case, the Firefox browser, to be merged together with the UI from the extension. Extensions may also be applied to other Mozilla based products such as
Thunderbird. Standalone XULRunner application XULRunner is a packaged version of the Mozilla platform which allows you to create standalone XUL applications. A browser isn't required to run these applications, as they have their own executable file. XUL package In between the other two are applications which are created in the same way as an extension, but they act like a separate application in a separa...
The Chrome URL - Archive of obsolete content
tead of 'content'. When you open a chrome URL, Mozilla looks through its list of installed packages and tries to locate the JAR file or directory that matches the package name and part. The 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 ...
XUL Structure - Archive of obsolete content
rome system such that the application can display the UI. It is worth noting that the Mozilla browser itself is actually just a set of packages containing XUL files, JavaScript and style sheets. These files are accessed via a chrome URL and have enhanced privileges and work just like any other package. Of course, the browser is much larger and more sophisticated than most extensions. Firefox and
Thunderbird, as well as number of other components are all written in XUL and are all accessible via chrome URLs. You can examine these packages by looking in the chrome directory where Firefox or another XUL application is built. The chrome URL always begins with 'chrome://'. In much the same way as an 'http://' URL always refers to remote web sites accessed using HTTP, and the 'file://' URL always refers ...
browser - Archive of obsolete content
ct for the document. documentCharsetInfo Obsolete since Gecko 12.0 Type: nsIDocumentCharsetInfo This read-only property contains the nsIDocumentCharsetInfo object for the document which is used to handle which character set should be used to display the document. The properties of the nsIDocumentCharsetInfo object were merged into the docshell in Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9). homePage Type: string home page URL This property holds the value of the user's home page setting. markupDocumentViewer Type: nsIMarkupDocumentViewer This read-only property contains the nsIMarkupDocumentViewer which is responsible for drawing the document. preferences Type: nsIPrefService This read-onl...
tabbrowser - Archive of obsolete content
ect for the document. documentCharsetInfo Obsolete since Gecko 12.0 Type: nsIDocumentCharsetInfo This read-only property contains the nsIDocumentCharsetInfo object for the document which is used to handle which character set should be used to display the document. The properties of the nsIDocumentCharsetInfo object were merged into the docshell in Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9). homePage Type: string home page URL This property holds the value of the user's home page setting. markupDocumentViewer Type: nsIMarkupDocumentViewer This read-only property contains the nsIMarkupDocumentViewer which is responsible for drawing the document. securityUI Type: nsISecureBrowserUI The read-only...
Application Update - Archive of obsolete content
Getting Started You will need the following utility scripts from http://lxr.mozilla.org/mozilla/sourc...ate-packaging/ (or local source of XulRunner) common.sh make_full_update.sh You will need mar / mar.exe to build a complete update patch. You will need to compile a unix/linux executable mar from mozilla/modules/libmar. As far as I can tell enabling the options --enable-updater and --enable-update-packaging on your configure will build you mar. ...
Dialogs in XULRunner - Archive of obsolete content
(window, "Open File", nsIFilePicker.modeOpen); fp.appendFilters(nsIFilePicker.filterText | nsIFilePicker.filterAll); var res = fp.show(); if (res == nsIFilePicker.returnOK) { var thefile = fp.file; alert(thefile.leafName); // --- do something with the file here --- } } XUL does not currently support any other common dialogs. That could change in future releases. Firefox and
Thunderbird both support nearly native Page Setup and Print dialogs. However, XUL does support elements to make creating wizards a simple task as well. Future articles in this series will look at input controls, printing, the clipboard, and XPCOM. See also dialog XUL Tutorial:Creating Dialogs nsIFilePicker XUL Tutorial:Open and Save Dialogs << Previous Original Document Information Autho...
Getting started with XULRunner - Archive of obsolete content
There is an article with a more complicated approach to building XULRunner applications at Creating XULRunner Apps with the Mozilla Build System. If you need to change XULRunner itself or integrate it with external binaries you may need to read that article. Step 1: Download XULRunner You can find a download link on the main XULRunner page here on MDN. ...
XULRunner Hall of Fame - Archive of obsolete content
ched with Firefox, allowing to execute an external javascript script which can manipulate web content. Its goal is to provide a tool like PhantomJs, with the same API, except that it runs Gecko instead of Webkit, and it is not headless (but you can still use xvfb to have a headless SlimerJS). SQLite Manager Manage all your sqlite databases using this lightweight extension for firefox,
thunderbird, seamonkey, songbird, komodo etc. SQLite Manager is also available as a XULRunner application. Surebo Browselorer A new, simple yet highly functional and customizable web browser, based on XULRunner 22. Websecurify Web Application Security Testing Environment. Source Yoono Desktop Win/Mac application to get all your friend updates, update your status and share stuff easily...
Opening a Link in the Default Browser - Archive of obsolete content
ernal-protocol-service;1"] .getService(Components.interfaces.nsIExternalProtocolService); // now, open it! extps.loadURI(uriToOpen, null); By default, the external protocol service will warn the user about opening the link in another application. To suppress this warning for particular protocols that are safe to open in the default application, you must set default prefs (
Thunderbird sets the following prefs): // suppress external-load warning for standard browser schemes pref("network.protocol-handler.warn-external.http", false); pref("network.protocol-handler.warn-external.https", false); pref("network.protocol-handler.warn-external.ftp", false); You can also check whether an external handler for a scheme exists. This is how you do it: var extps = Components.classes["@m...
XULRunner tips - Archive of obsolete content
Now create a hook in your application window to start DOM Inspector, like this one: <button label="Start Inpector" oncommand="startDOMi()"/> Start your application and DOM Inspector will be installed. Note: I use this method of installing extensions into all of my Mozilla applications. This way I have one directory where I keep all my Mozilla extensions, and each application (Firefox,
Thunderbird) simply contains a few small, one line files pointing to the location of the extensions. (I keep them in source control to be sure I can maintain compatibility) Component Viewer Need custom build, first of all. What else? Extension Developer's Extension Extension Developer's Extension is a useful tool, featuring Live XUL Editor and JavaScript Shell. To install the extension into your applicat...
What XULRunner Provides - Archive of obsolete content
The goal of XULRunner is to provide a solution for deploying XUL applications (primarily Firefox and
Thunderbird), as well as providing an embedding mechanism. The following features are either already implemented or planned: Gecko Features XPCOM Networking Gecko rendering engine DOM editing and transaction support (no UI) Cryptography XBL (XBL2 planned) XUL SVG XSLT XML Extras (XMLHttpRequest, DOMParser, etc.) Web Services (SOAP) Auto-update support (not yet complete) Type ahead find toolbar History implementation (the places implementation in the 1.9 cycle) Accessibility support IPC services for communication between gecko-based apps (not yet complete) Storage/sqlite interfaces User Interface Features The following user interface is supplied by XULRunner,...
XULRunner - Archive of obsolete content
It provides mechanisms for installing, upgrading, and uninstalling these applications. XULRunner also provides libxul, a solution which allows the embedding of Mozilla technologies in other projects and products. Releases Until version 41, XULRunner could be downloaded from ftp.mozilla.org. ...
Mozrunner - Archive of obsolete content
akes the command line options from mozprofile for constructing the profile to be used by the application. Run mozrunner --help for detailed information on the command line program. API Usage mozrunner features a base class, mozrunner.runner.Runner which is an integration layer API for interfacing with Mozilla applications. mozrunner also exposes two application specific classes, FirefoxRunner and
ThunderbirdRunner which record the binary names necessary for the Runner class to find them on the system. Example API usage: from mozrunner import FirefoxRunner # start Firefox on a new profile runner = FirefoxRunner() runner.start() ...
nsIContentPolicy - Archive of obsolete content
dom/base/nsIContentPolicy.idlScriptable Interface used to implement a content policy mechanism. Implementations of this interface can be used to control the loading of various types of out-of-line content, or the processing of certain types of inline content. 63 Introduced Gecko 1.0 Inherits from: nsIContentPolicyBase Last changed in Gecko 42 (Firefox 42 /
Thunderbird 42 / SeaMonkey 2.39) You can observe content that is being loaded into your browser by implementing nsIContentPolicy. This interface can be very useful if you are developing a content-aware plugin (blocking ads or altering the look of content, for example), or if you want to stop or allow user-browsed URLs. Warning: Do not block the caller in your implementations of shouldLoad() or shouldProcess() (for example, ...
2006-10-06 - Archive of obsolete content
ilds for Sunbird and Lightning 0.3 are released. Sunbird Release Notes Lightning Release Notes SUNBIRD_0_3_RELEASE tag being created lilmatt announced the Sunbird 0.3 realse tag being created. Sun Microsystems contributes to Lightning to combine it with OpenOffice.org Sun Microsystems provide users with an alternative open source choice by combining OpenOffice.org respectively StarOffice and
Thunderbird/Lightning. Discussions dialogs on app startup Discussion regarding improvement of dialog of app window What are tasks? What are events? Discussion regarding tasks and events Meetings None this week. Authors Mark Paruzel Yi (Eric) Shen [Back to Weekly Summaries ] ...
2006-10-13 - Archive of obsolete content
Discussions Shared training.dat & message filters Jon-Mikel is looking for suggestions on sharing spam filter data and message filters between machines easily. Currently, the only recommendation is to use a server-side solution. ...
2006-10-27 - Archive of obsolete content
Discussions Effect of Eudora/
Thunderbird re-write JoeS is voicing a concern about the recent announcement regarding the Eudora/
Thunderbird rewrite: "Is
Thunderbird destined to become a hybrid of the existing code and Eudora?". Jonathan Pritchard has clarified that announcement does not mean
Thunderbird will be changing direction, just certain areas of development that are of interest to the Eudora developers will have more attention paid to them. Calling TB with a specific message to be displayed There's a new question by Guenter about calling TB from an external program (eg. Firefox) to display a message. ...
2006-11-03 - Archive of obsolete content
Discussions What is the 'lastModifiedDate' item used for in TB? There are some code example given and also further discussion on lastModifiedDate. TB Storage-idea TB is planning to change from mbox-format storage to database-based storage. However, user wonder both storage method could exist in TB at the same time without crashing. Suggestion made for e-mail popup It suggested that the e-mail popup duration should depends on number of messages and examples of this idea is provided. XUL Overlay question -- How to replace an existing element? No respond thus far. ...
2006-11-10 - Archive of obsolete content
Discussions Violation of SMTP protocol in
Thunderbird Hector reports two bugs:
Thunderbird ignores the SMTP protocol state machine by ignoring the 501 response codes. This has been filed as bug 360118.
Thunderbird doesn't seem to have an option to set the client domain name (ELHO/HELO). This is already addressed in bug 244030. Interfacing with
Thunderbird Mark Bannister is looking for directions on interfacing
Thunderbird with their project management database. Guenter has provided some sample code using the 'mailto:' method. ...
2006-11-17 - Archive of obsolete content
A few suggestion is posted. What file format is TB's address book using? TB's address book uses Mork (file format). There are also some perl code provided in this link. How to get review for work-in-progress patch? Answer: CC whoever you need review from, but don't post a formal review. Steps for posting a formal review is provided also. ...
2006-10-27 - Archive of obsolete content
g the host has some available. Firefox 2 wont build under Solaris 10 x86 October 26: Alex was trying to build Firefox 2 source on a Solaris 10 x86 machine but was not successful with the build. He has already built Firefox 1.5.0.7 on the same machine with no problems. The following is his configuration script that he used to build Firefox 2 on Solaris. ./configure --prefix=/export/home/alex/
thunderbird --enable-application=browser --disable-tests --disable-debug -disable-auto-deps --disable-freetype2 -enable-official-branding --enable-default-toolkit=gtk2 --enable-optimize=-xO5 --enable-static --disable-shared --enable-xft --enable-svg The build tools that he used to build Firefox 2 are listed in his posting along with the error that he receives when he tries to build it. Alex is not sure if ...
2006-11-24 - Archive of obsolete content
Beta 2 Freeze around January 4th. Final Release date in in early 2007. approval queue for fx 2.0.0.1 closing Closing the approval queue for Firefox 2.0.0.1 Discussions Quality of localized builds and process requirements Quality of localized builds and process requirements The Translate Toolkit MDNto PO: its current state and how to use it Discussion on clarifications on Translate Toolkit to avoid confusion. Feedback on L10n:Ownership draft Feedback on the L10n:Ownership draft at Mozilla wiki site detailed here. ...
2006-12-01 - Archive of obsolete content
Summary: mozilla.dev.l10n - December 1, 2006 Announcements Langpacks for Sunbird nightly builds available for testing Langpacks for Sunbird nightly builds available for testing SeaMonkey 1.1 Late String Changes for mail content policy The fix to bug 360288 has landed. Details in the thread.
Thunderbird Options Dialog String Changes a lot of string changes to the
Thunderbird Options dialog was landed. Discussions Convert OOo .dic to .xpi Convert OOo .dic to .xpi MozillaTranslator and Sourceforge.net about the best way to organize things Creating a <locale>.jar file from the CVS structure Discussion on how to package a <locale>.jar from the CVS structure without having to download the entire mozilla source. At the moment there is no simple way of doing this. From ...
2006-12-08 - Archive of obsolete content
Summary: mozilla.dev.l10n - December 8, 2006 Announcements Mozilla sponsored server for l10n The server for Mozilla sponsored server for l10n should be up and running soon. SeaMonkey 1.1b es-ES language and region packs language and region packs for SeaMonkey 1.1b is ready for downloading. New strings in
Thunderbird New strings in
Thunderbird new bugzilla-staging.mozilla.org a staging server for a new bugzilla upgrade. Discussions None for this week. Meetings None for this week. Authors Paul Yanchun Gu (gpaul) Aditya Nanda Kuswanto(vipers101) ...
2006-10-06 - Archive of obsolete content
close to a roadmap as exists right now and agrees that needs to be done about this. Re: Plan to hold trunk closed for lack of talkback Dbaron mentioned that maybe trunk should be closed because of lack of talkbacks received ( bug 354835 is suspected). pal-moz offers a solution to bug 354835. dbaron then follows up that bug 354835 is solved so there is no need to close the tree waiting for it.
Thunderbird 2 - Beta/RC? Johannes Koch asks where is the
thunderbird roadmap? Ziga Sancin replies with a link and regrets about it being a bit out of date. Firefox 1.5.0.8 Andrew Schultz asks about the Gecko 1.8.0.8 schedule. dbaron and Chris Ilias respond with relative dates but still no schedule. RC2 Status Schrep asks for any final things standing in the way of RC2. RC2 starts spinning and en-US buil...
2006-11-03 - Archive of obsolete content
e the number of locals with which mozilla products ship. More Tbox changes on the way, most hitting on Friday Preed discusses killing more tboxes. Cross-Product extension install improvements Simon Paquet points out how much easier it is to install an extension in firefox than it in any other product. A discussion of how to get firefox to be able to install extensions for other products (e.g.
Thunderbird, sunbird). button in the upper right hand corner the removal of the firefox home page button was purposeful, you can add that function by installing this. Meetings Nov 1 Gecko 1.9/Gran Paradiso status meeting: get agenda here. Bon Echo Status Meeting: October 31st, 2006: (possibly final meeting) get notes here Weekly Project Status Meeting Monday Oct 30 1PM *PST*: get notes here ...
2006-11-10 - Archive of obsolete content
Announcments Mike Connor announced new 'driving' bugs "we have added a pair of drivers-only flags...o track bugs that are not strictly blockers, but are wanted as soon as possible" Benjamin Smedberg announced new rules for patches to toolkit From now on unit test must be provided with all patches. Other important notes are contained in the link above Firefox and
Thunderbird 1.5.0.8 were released Firefox and
Thunderbird 1.5.0.8 were released on November 7, 2006 Blocker nomination and code freeze for 1.5.0.9/2.0.0.1 Blocker nomination is due on November 10. Code freeze for these versions is on November 26 Version numbering changes Paul Reed announced changes to the way version numbers are done for pre-releases. Discussion Version numbering changes Some discussion about Paul's anno...
2006-10-06 - Archive of obsolete content
Summary: mozilla.dev.platform - September 30th to October 6th 2006 Announcements Mike Schroepfer is attending a Vista Compatibility Lab with some other people this week. They are testing Firefox and
Thunderbird on Vista. They are tracking issues on http://wiki.mozilla.org/VistaLab , and on #vista on IRC. Other Traffic There was no traffic on mozilla.dev.platform this week. Please see the FAQ instead ...
2006-10-06 - Archive of obsolete content
a.dev.quality - September 30-October 6, 2006 Announcements FireFox 2 RC2 Update - The minimum tests for RC2 are complete which includes smoke and BFT tests. There were a few problems found where FF was hanging on shutdown and some weird behaviors in the download manager. Update checker was run; all failures found were expected. Build is Go for launch. Vista Testers - needed to test Firefox and
Thunderbird in Vista. Any test case ideas specific to Vista are welcomed. Check posting for details. FireFox 2 RC2 testing - Tim Riley announced the L10n builds were completed last night. To help out with testing meet in IRC chat room #qa. Test results will be posted here. Discussions None for this week Meetings Community Test Day - on Friday October 6th, 2006 in IRC chat room #testday there will be a ...
2006-10-27 - Archive of obsolete content
Discussions Need to unit test innerHTML - Someone needs to unit test innerHTML. He recommends that a non-XPCShell environment is needed really badly, but the big issue is that the XPCShell doesn't have an event loop, so nothing asynchronous can be tested. ...
2006-10-06 - Archive of obsolete content
arently Ben Goodger disabled it back in 12/2003, shortly after he added it. webcal: & swebcal: Should also be allowed as the security manager doesn't differentiate between access types. Other This is for allowing protocol handlers to define a custom security model (see bug 120373). There is no consensus in the posts as to if this should be allowed. Problem Looping C_OpenSession Problem In
Thunderbird Christian Bongiorno has run into a problem developing a PKCS11 module for a new card.
Thunderbird is continuously repeating 7 functions including C_OpenSession which accesses the card that he is developing. Meetings None during this week. ...
2006-12-01 - Archive of obsolete content
r - November 24 - December 01, 2006 Announcements December 5th Test Day Coming Up! Test day for Sunbird and Lightning on Tuesday December 5th. Discussions cancellable async requests Discussions about a bug of calICalendar's async methods. Lightning, broken accessibility Discussions refering several accessibility issues regarding interface of the Sunbird client and the Lightning plug-in for
Thunderbird. Tasks in Sunbird & Lightning Discussion about how to accessing the Tasks in View in Sunbird and Lightning. Universal binary or Mac Intel version of SB/Lightning? Discussions about Universal binaries for Sunbird. Override a method (XBL) Discussions about how to override a js function in a js file. Meetings No Meetings were scheduled this week. Authors Mark Paruzel Yi (Eric) Shen [B...
Newsgroup summaries - Archive of obsolete content
FormatMozilla.dev.apps.firefox-2006-09-29Mozilla.dev.apps.firefox-2006-10-06mozilla.dev.apps.calendarmozilla.dev.tech.js-enginemozilla-dev-accessibilitymozilla-dev-apps-calendarmozilla-dev-apps-firefoxmozilla-dev-apps-
thunderbirdmozilla-dev-buildsmozilla-dev-embeddingmozilla-dev-extensionsmozilla-dev-i18nmozilla-dev-l10nmozilla-dev-planningmozilla-dev-platformmozilla-dev-qualitymozilla-dev-securitymozilla-dev-tech-js-enginemozilla-dev-tech-layoutmozilla-dev-tech-xpcommozilla-dev-tech-xul ...
NPN_GetURLNotify - Archive of obsolete content
tify() after it has finished loading the URL. If the target is null, the browser calls NPP_URLNotify() after closing the stream by calling NPN_DestroyStream(). If this function is called with a target parameter value of _self or a parent to _self, this function should return NPERR_INVALID_PARAM. This is the only way to notify the plug-in once it is deleted. Warning: In Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1), NPN_GetURLNotify() does not notify the plug-in if notifyData is NULL. See bug 638367 for details. See also NPN_GetURL() NPN_PostURL() NPN_PostURLNotify() NPP_URLNotify() NPP ...
Using workers in extensions - Archive of obsolete content
ker information that's currently displayed in the status bar, as well as to update the tooltip that appears while the mouse cursor is hovering over the ticker. This code is essentially identical to what's done in the previous version, except that it's done in response to an event instead of within the refreshInformation() method. A note about ChromeWorkers Requires Gecko 2.0(Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Gecko 2.0 added the new ChromeWorker object, which provides a special chrome-only worker that can be used by applications and extensions. This worker object has access to js-ctypes, which standard workers do not have. ...
Displaying notifications (deprecated) - Archive of obsolete content
This non standard API has been dropped in Firefox 22 in favor of the standard API. To see how to use the standard API, please read: Using Web Notifications Mobile Only in Gecko 2.0 Available only in Firefox Mobile as of Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Firefox offers support for "desktop notifications"; these are notifications that are displayed to the user outside the context of the web content, using the standard notification system provided by the operating system. For example, on Android, notifications appear in the bar at the top of the screen, and in the panel that appears when you drag that bar downward. Creating a notification The first thing you need to do is create the notification object by using...
ECMAScript 5 support in Mozilla - Archive of obsolete content
This article covers the features supported by different versions of Mozilla's JavaScript runtime. Supported features Added in JavaScript 1.8.5 (Gecko 2, Firefox 4 and later) Firefox 4 has full ECMAScript 5 support including the Object.* methods and strict mode. See New in JavaScript 1.8.5. ...
Object.prototype.__count__ - Archive of obsolete content
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The __count__ property used to store the count of enumerable properties on the object, but it has been removed. ...
Object.prototype.__noSuchMethod__ - Archive of obsolete content
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The __noSuchMethod__ property used to reference a function to be executed when a non-existent method is called on an object, but this function is no longer available. While __noSuchMethod__ has been dropped, the ECMAScript 2015 specification has the Proxy object, with which you can achieve the below (and more). Syntax obj.__noSuchMethod__ = fun Parameters fun A function that takes the form function (id, args) { . . . ...
Object.prototype.__parent__ - Archive of obsolete content
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The __parent__ property used to point to an object's context, but it has been removed. Syntax obj.__parent__ Description For top-level objects, this is the e.g. window. ...
String.prototype.quote() - Archive of obsolete content
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The non-standard quote() method returns a copy of the string, replacing various special characters in the string with their escape sequences and wrapping the result in double-quotes ("). Syntax str.quote() Return value A new string representing the original string wrapped in double-quotes, with any special characters escaped. Examples Using quote In the table below the quote() method replaces any special characters and wraps the strings in double-quotes. ...
LiveConnect - Archive of obsolete content
LiveConnect provides JavaScript with the ability to call methods of Java classes and vice-versa using the existing Java infrastructure. Older versions of Gecko included special support for the Java<->JavaScript bridge (such as the java and Packages global objects), but as of Mozilla 16 (Firefox 16 /
Thunderbird 16 / SeaMonkey 2.13) LiveConnect functionality is provided solely by the Oracle's Java plugin. Documentation Java plugin - LiveConnect documentation This is likely the most up-to-date documentation of LiveConnect. Removal of java and Packages global objects in Mozilla 16 See bug 748343 for the rationale and workarounds. You can still embed Java applets and access their API from JavaScript. LiveConnect Overview An overview for Liveco...
Packages - Archive of obsolete content
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Summary A top-level object used to access Java classes from within JavaScript code. The support for this object was removed in Gecko 16, see LiveConnect for details. Created by The Packages object is a top-level, predefined JavaScript object. You can automatically access it without using a constructor or calling a method. Description The Packages object lets you access the public methods and fields of an arbitrary Java class from within JavaScript. ...
XForms Custom Controls - Archive of obsolete content
var img = document.getAnonymousElementByAttribute(this, "anonid", "content"); img.setAttribute("src", this.stringValue); return true; </body> </method> </implementation> </binding> </bindings> <xf:model> <xf:instance xmlns=""> <data> <curimg></curimg> <img label="Firefox">http://www.mozilla.com/images/firefox-logo-64x64.png</img> <img label="
Thunderbird">http://www.mozilla.com/images/
thunderbird-logo-64x64.png</img> <img label="Bugzilla">http://www.mozilla.org/images/p-bugz.gif</img> <img label="Mozilla">http://www.mozilla.org/images/mozhead-80x64.gif</img> </data> </xf:instance> </xf:model> <style type="text/css"> @namespace xf url(http://www.w3.org/2002/xforms); xf|output[mediatype="image/*"] { -moz-b...
XForms - Archive of obsolete content
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Note: Support for XForms was removed from Firefox in Firefox 19. See the HTML Forms Guide for approaches to creating forms in HTML5. XForms Essentials An online book giving you a guided tour of XForms. XForms were envisioned as the future of online forms as envisioned by the W3C. Drawing on other W3C standards like XML Schema, XPath, and XML Events, XForms tried to address some of the limitations of the current HTML forms model. However, XForms never gained traction and is now considered obsolete. ...
Mozilla's DOCTYPE sniffing - Archive of obsolete content
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This page describes behavior of the old HTML parser in Firefox 3.6 and older. It has been replaced by a new HTML 5 parser in Firefox 4 and newer. This document describes how Mozilla uses the DOCTYPE declaration to determine strict mode vs. quirks mode. The code that makes this determination is currently in DetermineParseMode() in nsParser.cpp. See bug 1312 and bug 55264 for some of the history of the mode determination. See bug 153032 for the creation of the Almost-Standards mode around Mozilla 1.0. ...
Archive of obsolete content
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
Thunderbird and Sunbird (previous versions worked only in Firefox). Using Firebug and jQuery (Screencast) Note: This screencast is originally from: http://ejohn.org/blog/hacking-digg-w...ug-and-jquery/ Using IO Timeout And Interrupt On NT This technical memo is a cautionary note on using NetScape Portable Runtime's (NSPR) IO timeo...
Gecko FAQ - Gecko Redirect 1
the foundation needed to display content on the screen, including a layout engine and a complementary set of browser components. However, Gecko does not package all of these components alongside other interface modules in a coherent, user-friendly application (including menus, toolbars, etc.), such as Firefox. mozilla.org assembles the necessary components into its applications, such as Firefox,
Thunderbird, SeaMonkey, which are available for free download from mozilla.org. Netscape released its own version of the browser branded as Netscape Navigator. Other companies release their own software and hardware products that use Gecko. See XULRunner Hall of Fame for a partial list of application that use Gecko via XULRunner. Third parties such as ISVs and hardware vendors will pick and choose the compo...
Plug-in Development Overview - Gecko Plugin API Reference
uffer or file. The result from the server can also be sent to a particular browser window or frame for display, or delivered to the plug-in instance in a new stream. The NPN_PostURLNotify function operates like NPN_PostURL, except that it notifies the plug-in of the result when the operation completes. For information about using these methods, see URLs. Starting in Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7), you can get the origin of the document in a secure, convenient way by calling NPN_GetValue() to retrieve the value of the variable NPNVdocumentOrigin. The returned value is the Unicode serialization of the document's origin converted to NFKC-encoded (that is, normalized) UTF-8. Your plug-in must free the returned string's memory by calling NPN_MemFree() when you're done wit...
What to do and what not to do in Bugzilla
lopers. This also applies to bugs with Target Milestones in the past. Reassigning bugs If a bug belongs to a different Product or Component it should be reassigned. When performing bug reassignments, keep the following things in mind: Always remember to check the Reassign to default owner and QA Contact radio button under the comment textbox. Mozilla applications like the Application Suite,
Thunderbird, or Firefox share most of their program code and all of the backend code including things like network connectivity (FTP, HTTP, IMAP) and HTML rendering. Make sure that you also test
Thunderbird or Firefox bugs with the Application Suite and move the bug to one of the core products, if the bug also exists in the Application Suite. If you don't know where a bug belongs, don't touch it! For exampl...
Bugzilla
Documentation about B.m.o. What to do and what not to do in Bugzilla Tips for how to use Bugzilla, as well as things you should avoid. Bugzilla etiquette A guide to etiquette; this guide will help you understand how best to conduct yourself on b.m.o. and how using proper manners and civility will help ensure your problem gets solved sooner rather than later. ...
Chrome registration
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/to/files Note: The characters @ # ; : ? / are not allowed in the packagename. Firefox 2,
Thunderbird 2, and SeaMonkey 1.1 will not find the chrome when packagename is mixed case. If the above example had a packagename of CamelCasePackage, you would get an error message similar to "No chrome registered for chrome://camelcasepackage/path/to/files". Firefox 3,
Thunderbird 3, and SeaMonkey 2 support mixed case. Bug resolved in Mozilla 1.9; see bug 132183. Manifest instructions comments # this lin...
Cookies Preferences in Mozilla
50 Configures the maximum amount of cookies to be stored per host Valid range is from 0-65535, RFC 2109 and 2965 require this to be at least 20 network.cookie.disableCookieForMailNews Default Value: true true = do not accept any cookies from within mailnews or from mail-style URIs false = allow cookies in these situations This preference is applicable to all versions of Seamonkey. New in
Thunderbird 3 This preference is applicable to
Thunderbird 3 and later. Earlier versions of
Thunderbird only allowed cookies on RSS feeds. network.cookie.prefsMigrated Default Value: false Migration pref for users with older profiles (before Mozilla 1.7). If you have the old-style prefs, they will be migrated when starting the application. (The old prefs are network.cookie.lifetime.enabled, network.cookie...
Creating a Firefox sidebar
restartless extension yourself without the SDK. A sample extension to add a Web panel is available as a starter.Obsolete since Gecko 57 If you'd like to have a deeper integration with the browser to offer more complex features, a traditional overlay extension can be an option. The document might be obsolete, though.Obsolete since Gecko 57 The Social API Obsolete since Gecko 57 (Firefox 57 /
Thunderbird 57 / SeaMonkey 2.54)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This content covers features introduced in Firefox 17. The window.sidebar API Obsolete since Gecko 23 (Firefox 23 /
Thunderbird 23 / SeaMonkey 2.20)This feature is obsolete. Although it may still work in some browser...
Creating a Language Pack
dd_options --disable-compile-environment ac_add_options --with-l10n-base=../l10n-central # path relative to MOZ_OBJDIR ac_add_options --enable-application=[browser or mail] The given path should have your localization directory as child (i.e., a subdirectory ab-CD where ab-CD is your locale code). You still need to specify which application you're localizing (e.g., for Firefox, that's browser,
Thunderbird would be mail). Configure step You need to prepare the build directory, which is done with ./mach configure You only need to run this if the version number of Firefox changes. WINDOWS: Replace make with mozmake in the commands below! Creating a langpack We will now merge the localized files from x-testing locale with the en-US files from the original source. Every time you want to cre...
Debugging on Windows
If VC++ and your Mozilla application hang shortly after you launch the application under the debugger, see Problems Loading Debug Symbols. Ways to start the debugger First of all, it's necessary to install a Visual Studio extension to be able to follow child processes as they are created. Firefox, in general, and even in non-e10s mode, does not start the main process directly, it starts it via a Launcher Process. ...
Adding APIs to the navigator object
Simply add an entry to the "JavaScript-navigator-property" category. The object must be implemented as an XPCOM component. Each method below of adding new objects to the navigator object requires that the new object is a registered XPCOM component. You can read about creating and registering XPCOM components in JavaScript. ...
Makefile - targets
This article lists possible targets provided by the makefile. Target name Description build Default target. Compile Firefox,
Thunderbird, etc check Standalone shell unit test invoked directly by make configure Launch the configure program to define headers and and attributes for the target build machine. export Generate and install exported headers: EXPORTS makefiles Target used to only regenerate makefiles package Generate a package tarball Clean Targets clean Remove object files, binaries and generated content clobber alias for clean distclean Clea...
Simple SeaMonkey build
de install zip mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev libidl-dev mesa-common-dev autoconf2.13 yasm libgtk2.0-dev libdbus-1-dev libdbus-glib-1-dev python-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libpulse-dev Ubuntu Linux # for Ubuntu 12.04 LTS (Precise Pangolin), replace the following line with: sudo apt-get build-dep
thunderbird sudo apt-get build-dep seamonkey sudo apt-get install zip unzip mercurial g++ make autoconf2.13 yasm libgtk2.0-dev libglib2.0-dev libdbus-1-dev libdbus-glib-1-dev libasound2-dev libcurl4-openssl-dev libnotify-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libiw-dev libxt-dev mesa-common-dev libpulse-dev Fedora Linux CentOS RHEL: sudo yum groupinstall 'Develo...
Contributing to the Mozilla code base
polite to check if someone has recently commented that they're looking at fixing the issue. Once you have found something to work on, go ahead and comment! Let the bug submitter, reviewer, and component owner know that you'd like to work on the bug. You might receive some extra information, perhaps also made the assignee. Fix your pet peeve If there's something you'd like to fix about Firefox,
Thunderbird, or your other favorite Mozilla application, this can be a great place to start. There are a number of ways to do this: Search bugzilla for relevant keywords. See pages on Bugzilla for further help Learn the bugzilla component, with which your pet peeve is implemented, using the components list. Browse this component on bugzilla for related bugs Ask in our matrix channels : #introduction:moz...
mach
in bashcompinit function before sourcing: autoload bashcompinit bashcompinit source /path/to/mozilla-central/python/mach/bash-completion.sh Frequently Asked Questions Why should I NOT use mach? A real FAQ for a change! Mach is not the best software ever. Say, if you run a rolling release Arch Linux Distro or derivate thereof ("Manjaro"), you have something less tedious: Octopi! Just install
Thunderbird from sources out of the AUR repo! Many PKGBUILD options to choose from and most work like a charm - while "mach" may not necessarily work like a charm for everyone. Why even bother with a competing build system in Arch when Octopi does what you want and even has a GUI? Those makepkg scripts named PKGBUILD are (typically) simple bash scripts that are easy to maintain and modify. Python based mach ...
Developer guide
dy an experienced contributor. Documentation topics Getting Started A step-by-step beginner's guide to getting involved with Mozilla. For new Mozilla developers A directory of articles which are particularly helpful for new Mozilla developers. Working with Mozilla Source Code A code overview, how to get the code, and the coding style guide. Build Instructions How to build Firefox,
Thunderbird, SeaMonkey, or other Mozilla applications. Development process overview An overview of the entire Mozilla development process. Managing multiple profiles When working with prerelease versions of Firefox, it's often helpful to have multiple Firefox profiles, such as one for each channel, or for different kinds of testing. Getting documentation updated How to ensure that documentation is kept...
Gecko SDK
ersion for the earliest version of Mozilla you wish to target. For Gecko versions 2.0 and higher, you must recompile your component for each release as cross-version compatibility is no longer supported. In addition to the below versions, you can find other versions (including Beta) here: Xulrunner Releases (files include "sdk" in the name). The SDK follows the same release schedule as Firefox/
Thunderbird. Once the SDK enters Beta, it is suitable for building extensions; your component should work with release builds of the SDK without any modifications. Due to the Rapid Release process, it may be a good idea to target the SDK in Beta. Download Link Latest Gecko (Latest Firefox) Gecko 1.9.2 (Firefox 3.6) Gecko 1.9.1 (Firefox 3.5) Gecko 1.9 (Firefox 3.0) Gecko 1.8 (Firefo...
Getting Started with Chat
ry to keep messages as concise as possible. If you have something long to post, a code snippet for example, use paste.mozilla.org and paste the generated URL in IRC instead. When addressing someone directly, try to use name: message format. For example, "ashughes: good morning!" Every channel has its own topic. Try to keep your messages within that subject matter. For example, do not talk about
Thunderbird issues in #Firefox. Mozilla's channels are most active between 9am and 7pm PST Monday to Friday, excluding US Holidays. When asking a question, be patient. Sometimes, it can take a few minutes for people to respond. Posting a message like "Help!" is not particularly helpful. Asking a good question will result in a better experience for both you and the person trying to help. Relax and have fu...
How to get a process dump with Windows Task Manager
Introduction When tracking down the causes of process hangs, it is often helpful to obtain a process dump while the process is experiencing a hang. This article describes how to get a process dump with Task Manager on Windows. (To get a process dump for
Thunderbird or some other product, substitute the product name where ever you see Firefox in these instructions.) Caution The memory dump that will be created through this process is a complete snapshot of the state of Firefox when you create the file, so it contains URLs of active tabs, history information, and possibly even passwords depending on what you are doing when the snapshot is taken. It is advisable to create a new, blank profile to use when reproducing the hang and capturing the memory dump. Please ask for help doing this! Requ...
How to get a stacktrace for a bug report
cktrace will tell Mozilla developers what crashed and provide a starting point for investigating its cause. This article describes how to use the Mozilla Crash Reporter (Breakpad) to get a crash ID, which our engineers can use to get a stacktrace, and alternative ways to get a stacktrace if you can't get a crash ID. Requirements You need a binary build of Firefox from Mozilla.org. SeaMonkey and
Thunderbird also support crash reporting. Mozilla's crash report server currently only has debug information for Mozilla builds and thus the crash reporter cannot work if you use a build from a Linux distribution or if you compile from source code. In these cases you will need to use one of the alternative methods listed below. Note: When filing a crash report, it is important to know whether the crash occ...
How to get a stacktrace with WinDbg
Introduction Sometimes you need to get a stacktrace (call stack) for a crash or hang but Breakpad fails because it's a special crasher or a hang. This article describes how to get a stacktrace in those cases with WinDbg on Windows. (To get a stacktrace for
Thunderbird or some other product, substitute the product name where ever you see Firefox in this instructions.) Requirements To get such a stacktrace you need to install the following software: Debugging Tools for Windows Microsoft distributes the Debugging Tools for Windows for free, those include WinDbg which you will need here. Download it from Install Debugging Tools for Windows. (You'll want the 32-bit version, even if you are using a 64-bit version of Windows) Then install it, the standard settings in the installation process ar...
Addon
tests whether the named file was included in the package. boolean hasResource( in string path ) Parameters path A "/" separated path for the resource. getResourceURI() Gets an nsIURI to the file resource for this add-on. nsIURI getResourceURI( in string path ) Parameters path A "/" separated path for the resource. getDataDirectory() Requires Gecko 32.0(Firefox 32.0 /
Thunderbird 32.0 / SeaMonkey 2.29) Returns the path of the preferred directory, within the current profile, where an add-on should store data files. If the directory does not already exist, it will be created. void getDataDirectory( in DataDirectoryCallback callback ) ...
Add-on Manager
addInstallListener() method. Finding updates Add-ons can be checked for updates using the findUpdates() method. It must be passed an UpdateListener to receive information about compatibility information and new update information. Any available update is returned as an AddonInstall which is ready to be downloaded and installed. Detecting add-on changes Requires Gecko 7.0(Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4) You can also get lists of add-ons that, at startup, were changed in various ways. The getStartupChanges() method lets you find out which add-ons were installed, removed, updated, enabled, or disabled at application startup. For example, to take a look at the add-ons that were disabled at startup: Components.utils.import("resource://gre/modules/AddonManager.jsm"); let add...
DeferredTask.jsm
le and you expect that you may have to rewrite data very soon afterwards. With DeferredTask, the task is delayed by a few milliseconds and, should a new change to the data occur during this period, only the final version of the data is actually written; a further grace delay is added to take into account other changes. The DeferredTask constructor Requires Gecko 18.0(Firefox 18.0 /
Thunderbird 18.0 / SeaMonkey 2.15) If you have a function call you want to defer for two seconds, you can do so using the DeferredTask constructor, like this: var task = new DeferredTask(myFunction, 2000); You can also pass a generator function as the first argument of constructor. Method overview bool isPending();Obsolete since Gecko 28 void start();Obsolete since Gecko 28 ...
Using JavaScript code modules
oo" Scope 2: Components.utils.import("resource://app/my_module.jsm"); alert(bar); // displays "[object Object]" The main effect of the by-value copy is that global variables of simple types won't be shared across scopes. Always put variables in a wrapper class and export the wrapper (such as bar in the above example). Unloading code modules Requires Gecko 7.0(Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4) Components.utils.unload() allows you to unload a previously imported code module. Once this method has been called, references to the module will continue to work but any subsequent import of the module will reload it and give a new reference. Examples A template to download and edit is seen here on GitHub - Gists - _template-BootstrapJSM.xpi Extending resource: URLs ...
Using workers in JavaScript code modules
You can do so by using ChromeWorker instead of the standard Worker object. It works exactly like a standard Worker, except that it has access to js-ctypes via a global ctypes object available in the global scope of the worker Obsolete since Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Note: As of Gecko 8.0, the nsIWorkerFactory interface has been removed Starting in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1), you can use workers in JavaScript code modules (JSMs). This lets you run code in a separate thread from your JSM. To create a ChromeWorker for this purpose, you need to use the nsIWorkerFactory interfac...
Bootstrapping a new locale
ork as the current path on your terminal. (You should "cd" to the directory before beginning.) In the terminal, type the following command: $ hg clone http://hg.mozilla.org/releases/mozilla-x.x.x/ Where "x.x.x" is the existing release branch version. For instance, for Firefox 3.6, we use mozilla-1.9.2. Refer to L10n:Branches for the list of all branches. If you are interested in localizing
Thunderbird 3, SeaMonkey 2 or other Mozilla projects based on Gecko 1.9.1 you'll need to follow the instructions on getting the source-code of the comm-central repository. Create a bare-bones localization Next, create a base localization. This is done by cloning the en-US (United States English) files into your localization. First, you should specify your locale's language identifier in ab-CD format, whe...
Localization content best practices
re considered to be string-frozen. This means that string changes are not allowed to land, and each case must be evaluated before landing. As a general rule, it's recommended to fix strings on the trunk/master repository, and create ad-hoc patches for string frozen repositories that don't involve string changes. Note that even removing strings is considered a breakage. In the case of Firefox and
Thunderbird, string frozen repositories are: mozilla-aurora, mozilla-beta, mozilla-release. Bugzilla and l10n Do I need l10n feedback? Feedback from l10n-drivers is not necessary for each landing involving strings, as long as you're following the basic rules described in this document. If you have doubts about the localizability of some text or structure (not about the text itself, that would need copywri...
Localizing extension descriptions
a matching em:localized property for the current locale or en-US, then the properties specified directly on the install manifest are used as a last resort, as they were always used before Gecko 1.9. Localizing before Gecko 1.9 Before Gecko 1.9, add-on developers must go through a special process to define localized add-on descriptions for add-ons targeting toolkit-based apps (such as Firefox or
Thunderbird). If you do not currently have them, create localized properties files. Make sure to use UTF-8 encoding (without BOM) to ensure foreign characters display correctly. Add the following line to each of your localization properties files (where EXTENSION_ID matches your extension ID (<em:id> from install.rdf) and LOCALIZED_DESCRIPTION is the description of your extension that you want to appear...
Localizing with Mozilla Translator
talled on your system. Like most CAT tools, MozillaTranslator employs glossaries and translation memory to leverage your work from previous translations, thus cutting time and effort when localizing new versions of Mozilla applications. Getting started with MozillaTranslator MT uses products as groups of localization files with a common root directory (for instance, you may have a product for
Thunderbird, other for SeaMonkey, other for Dom, other for Toolkit, etc.) You update your repository copy using your favorite repository tool, and then update the product(s) in MT. This will remove obsolete strings and files from the internal database of MT, and will present you with a list of new and updated strings. If you are starting a new localization, all strings will be marked as new or updated.MT p...
Patching a Localization
Say you have found a problem with an existing localization. More specifically, it's a problem with an already released localization. What do you do now? Well, you have come to the right place! This page will walk you through creating a patch for an existing localization. The steps below are fairly generic; for the most part they apply to creating l10n patches for Firefox,
Thunderbird, SeaMonkey, or Calendar. I'll use Firefox in the example below to help you understand the general steps to creating a l10n patch. Prerequisites If you are to the point that you are patching existing localizations, we assume that you have the basic set of tools listed on the L10n Prerequisites wiki page. If you do not have these tools, take a few steps back, grab a cookie (because, let's face it, you deserve it fo...
Localization prerequisites
d get you everything you need. Tools A recent POSIX Shell Python 2.5 or newer. Perl 5.6 or higher Older perl versions may work if you upgrade File::Spec to version 0.8 GNU make 3.79.1 or higher. Other varieties of "make" will not work. autoconf-2.13 - Autoconf 2.5x will not work. zip 2.3 (or higher) Mercurial 1.2 or higher recommended. Needed for development of Firefox 3.5/SeaMonkey 2.0/
Thunderbird 3.0 and later. A text editor. You can try one of these: Notepad++ or Notepad2 on Windows, vim, gedit or Kate on GNU/Linux, BBEdit on Mac OS X. To verify that they work, open a shell. Linux users should know, on the Mac, you find Terminal in Applications/Utilities. On Windows, MozillaBuild offers a start-shell-l10n.bat in c:\mozilla-build. Let's try our entry points: $ hg --v...
QA phase
Enter the following command to perform the configuration: $ ./mach configure Once your command-line finishes spitting out the config command's output, navigate to the newly created directory: $ cd ../firefox-build/browser/locales Now you're ready to build! At this point you can choose between two build options. You can either: Create a langpack, which is installed on top ...
Translation phase
at is also built on the Translate Toolkit API. These are the Mozilla application projects that are localized using the l10n tools above: Firefox The award-winning Firefox(R) Web browser has security, speed and new features that will change the way you use the Web. See the list of the most critical strings for localizing in Firefox, as well as a guide to understanding how they're organized.
Thunderbird Enjoy safe, fast and easy email, Mozilla-style. The
Thunderbird(R) email client includes intelligent spam filters, powerful search and customizable views. Seamonkey SeaMonkey(R) is the all-in-one application formerly known as the "Mozilla Application Suite", containing a web browser, a mail and newsgroups client, an HTML editor, web development tools, and an IRC chat client. Firefox Mobile B...
Fonts for Mozilla's MathML engine
See the Authoring MathML page for details and try the MathML Torture Test. You can use FontForge and FontTools to edit the MATH table and create your own mathematical fonts. ...
MathML Torture Test
representations. It compares the rendering by the XeTeX engine using the default Latin Modern Math font against the MathML rendering by your browser using the default math font, or an alternative OpenType MATH fonts. To get the best rendering, be sure to have appropriate mathematical fonts installed on your system and to use a browser with OpenType MATH support such as Gecko 31.0 (Firefox 31.0 /
Thunderbird 31.0 / SeaMonkey 2.28) or higher. You may also try this test page for Mathematical OpenType Fonts which instead relies on Web fonts. Finally, you may want to check this table comparing how the tests are read by various screen readers for Mozilla browsers. Link to test: MathML Torture Test demo ...
Mozilla MathML Status
ut does not have any effect on the rendering. href Implemented. The User Interface works correctly in Seamonkey but not in Firefox. See bug 958957. mathcolor Implemented. mathbackground Implemented. Token Elements Element [- attribute] Notes mi Implemented. The mathvariant attribute is fully supported starting with (Firefox 28.0 /
Thunderbird 28.0 / SeaMonkey 2.25). See bug 114365. mn Implemented. mo Implemented. mo - linebreaking attributes, indentation attributes Not implemented. See bug 534962. mtext Implemented. mspace Implemented. mspace - linebreak Not implemented. See bug 534962. ms Implemented. General Layout Schemata Element ...
A brief guide to Mozilla preferences
ces are stored, a file-by-file analysis of preference loading sequence, and information on editing preferences. What is a preference? A preference is any value or defined behavior that can be set (presumably, one setting is preferable to another). Preference changes via user interface usually take effect immediately. The values are saved to the user profile (in prefs.js), for both Firefox and
Thunderbird. A preference is read from a file, and can call up to four methods: pref(), user_pref(), sticky_pref() and lockPref(). All preferences files may call pref(), user_pref() and sticky_pref(), while the config file in addition may call lockPref(). Preferences files To protect privacy by preventing inadvertent loading of a preferences file in the browser, the first line of the file is made un-par...
browser.dom.window.dump.file
browser.dom.window.dump.file redirects the ouput of window.dump() calls to a file whose address is specified in this preference if browser.dom.window.dump.enabled is set to true. Changes require an application restart. Type:string Default value:none Exists by default: no Application support: Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Status: Active; last updated 2012-03-18 Introduction: Pushed to Nightly on 2009-04-24 Bugs: bug 489938 Values The value holds the file system path for the file in which the content of the window.dump() calls get written, e.g. C:\dump.txt . It will be created if it doesn't exist yet. The line breaks have to be in the argument of the dump function, else successive dump calls will get logged into the same line. Related browser.dom.win...
dom.event.clipboardevents.enabled
dom.event.clipboardevents.enabled lets websites get notifications if the user copies, pastes, or cuts something from a web page, and it lets them know which part of the page had been selected. The emitting of the oncopy, oncut and onpaste events are controlled by this preference. Type:boolean Default value:true Exists by default: no Application support: Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10) Status: Active; last updated 2012-02-15 Introduction: Pushed to Nightly on 2012-02-14 Bugs: bug 542938 Values true (default) The oncopy, oncut and onpaste events are enabled for web content. false The oncopy, oncut and onpaste events are disabled for web content. ...
ui.SpellCheckerUnderline
ui.SpellCheckerUnderline holds the colour which is used to underline words not recognized by the spellchecker. Type:string Default value:#ff0000 Exists by default: no Application support: Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Status: Active; last updated 2012-02-21 Introduction: Pushed to Nightly on 2009-04-03 Bugs: bug 338209 Values A color code like #ff0000 for red. ...
ui.SpellCheckerUnderlineStyle
ui.SpellCheckerUnderlineStyle holds the style which is used to underline words not recognized by the spellchecker. Type:integer Default value:5 Exists by default: no Application support: Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Status: Active; last updated 2012-02-22 Introduction: Pushed to Nightly on 2009-04-03 Bugs: bug 338209 Values The values are defined in nsStyleConsts.h. 0 no underlining 1 dotted 2 dashed 3 single solid line 4 two solid lines 5 (default) wavy ...
ui.alertNotificationOrigin
ui.alertNotificationOrigin controls the position and direction from which popup notifications invoked by nsIAlertsService are sliding in. ...
ui.tooltipDelay
ui.tooltipDelay stores the delay in milliseconds between the mouse stopping over an element and the appearing of its tooltip. Type:integer Default value:500 Exists by default: no Application support: Gecko 11.0 (Firefox 11.0 /
Thunderbird 11.0 / SeaMonkey 2.8) Status: Active; last updated 2012-02-21 Introduction: Pushed to Nightly on 2011-12-15 Bugs: bug 204786 Values integer (milliseconds, default: 500) The time for delay between the mouse stopping over the element and the tooltip appearing is stored in milliseconds and the default value is 500ms. ...
Preference reference
lets them know which part of the page had been selected. The emitting of the oncopy, oncut and onpaste events are controlled by this preference. javascript.options.showInConsoleThe preference javascript.options.showInConsole controls whether errors or warnings in chrome code are shown in the Error Console.javascript.options.strictTechnical review completed.mail.tabs.drawInTitlebarStarting in
Thunderbird 17.0, the tabs are drawn in the title bar. The old behavior can be restored by setting the preference mail.tabs.drawInTitlebar to false.nglayout.debug.disable xul fastloadThe preference nglayout.debug.disable_xul_fastload controls whether or not XUL fastload is used.nglayout.debug.disable_xul_cacheTo improve performance, Mozilla caches chrome XUL documents the first time they load for faster load...
Preferences system
hen calling openDialog() to open a preferences dialog, "toolbar" should be included in the features string. ...
Profile Manager
be found in BUILD.txt. Reporting Bugs Profile Manager bugs should be reported in Bugzilla, under Testing -> ProfileManager. Starting Profile Manager To start Profile Manager, just launch profilemanager.exe (on Windows) or profilemanager-bin (on Linux and Mac). By default, Profile Manager will manage Firefox profiles, but you can also use it to work with profiles of other xulrunner apps, like
Thunderbird or SeaMonkey. To use Profile Manager with an application other than Firefox, you need to launch it using the application's name as an argument, for example: profilemanager-bin seamonkey Profiles and application versions Profile Manager manages two different lists: one of user profiles, and the other of application versions that can be used with the profiles. By default, this means it track...
An overview of NSS Internals
se pk12util to export it to the PKCS#12 file format. If you require it in PEM format, you could use the openssl pkcs12 command (that's not NSS) to convert the PKCS#12 file to PEM. This line is a placeholder for how to prepare a database, how to dump a cert, and how to convert data. You might have been motivated to work with NSS because it is used by the Mozilla applications such as Firefox,
Thunderbird, etc. If you build the Mozilla application, it will automatically build the NSS library, too. However, if you want to work with the NSS command line tools, you will have to follow the standalone NSS build instructions, and build NSS outside of the Mozilla application sources. The key database file will contain at least one symmetric key, which NSS will automatically create on demand, and which...
FIPS Mode - an explanation
the use of encryption and cryptographic services. It requires that ALL cryptography done by US government personnel MUST be done in "devices" that have been independently tested, and certified by NIST, to meet the extensive requirements of that document. These devices may be hardware or software, but either way, they must function and behave as prescribed. So, in order for Mozilla Firefox and
Thunderbird to be usable by people who are subject to the FIPS regulations, Mozilla's cryptographic software must be able to operate in a mode that is fully compliant with FIPS 140. To that end, Mozilla products can function in a "FIPS Mode", which is really "FIPS 140 Mode", when paired with a compliant copy of NSS. (Note, the current version of FIPS 140 is revision 2, a.k.a. FIPS 140-2. FIPS 140-3 is bei...
NSS 3.43 release notes
78DB3E1D8CF4F9726A795DA1643CA5F1358E1DDB0EDC0D7EB3 CN = Hongkong Post Root CA 3 SHA-256 Fingerprint: 5A2FC03F0C83B090BBFA40604B0988446C7636183DF9846E17101A447FB8EFD6 The following CA certificates were Removed: None Bugs fixed in NSS 3.43 Bug 1528669 and Bug 1529308 - Improve Gyp build system handling Bug 1529950 and Bug 1521174 - Improve NSS S/MIME tests for
Thunderbird Bug 1530134 - If Docker isn't installed, try running a local clang-format as a fallback Bug 1531267 - Enable FIPS mode automatically if the system FIPS mode flag is set Bug 1528262 - Add a -J option to the strsclnt command to specify sigschemes Bug 1513909 - Add manual for nss-policy-check Bug 1531074 - Fix a deref after a null check in SECKEY_SetPublicValue Bug 1517714 - Properly handle ES...
Overview of NSS
you want to add support for SSL, S/MIME, or other Internet security standards to your application, you can use Network Security Services (NSS) to implement all your security features. NSS provides a complete open-source implementation of the crypto libraries used by AOL, Red Hat, Google, and other companies in a variety of products, including the following: Mozilla products, including Firefox,
Thunderbird, SeaMonkey, and Firefox OS. AOL Instant Messenger (AIM) Open source client applications such as Evolution, Pidgin, Apache OpenOffice, and LibreOffice. Server products from Red Hat: Red Hat Directory Server, Red Hat Certificate System, and the mod_nss SSL module for the Apache web server. Server products from Oracle (formerly Sun Java Enterprise System), including Oracle Communications Messagi...
PKCS11 FAQ
y scenario that you can give me similar to this process (a way to issue a certificate on an initialized new card)? Yes. First open the Tools/Options/Advanced/Security window in Mozilla and click Security Devices. Then select your PKCS #11 module, click View/Edit, select the token, and click Change Password. For this to work, you must supply a C_SetPIN function that operates as CKU_USER. Mozilla,
Thunderbird, and Netscape products that use NSS have different UI to get the the Security Devices dialog. To get a key into an initialized token, go to your local Certificate Authority and initiate a certificate request. Somewhere along the way you will be prompted with a keygen dialog. Normally this dialog does not have any options and just provides information; however, if you have more than one token tha...
NSS tools : certutil
the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be set added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared database by default, but they can be configured to use them. For example, this how-to article covers how to configure Firefox and
Thunderbird to use the new shared NSS databases: * https://wiki.mozilla.org/NSS_Shared_DB_Howto For an engineering draft on the changes in the shared NSS databases, see the NSS project wiki: * https://wiki.mozilla.org/NSS_Shared_DB See Also pk12util (1) modutil (1) certutil has arguments or operations that use features defined in several IETF RFCs. * h...
NSS tools : modutil
e shared database type as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared database by default, but they can be configured to use them. For example, this how-to article covers how to configure Firefox and
Thunderbird to use the new shared NSS databases: o https://wiki.mozilla.org/NSS_Shared_DB_Howto For an engineering draft on the changes in the shared NSS databases, see the NSS project wiki: o https://wiki.mozilla.org/NSS_Shared_DB See Also certutil (1) pk12util (1) signtool (1) The NSS wiki has information on the new database design and how to configure applications to use it. o https://wiki.mozi...
NSS tools : pk12util
ared database type as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be set added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared database by default, but they can be configured to use them. For example, this how-to article covers how to configure Firefox and
Thunderbird to use the new shared NSS databases: o https://wiki.mozilla.org/NSS_Shared_DB_Howto For an engineering draft on the changes in the shared NSS databases, see the NSS project wiki: o https://wiki.mozilla.org/NSS_Shared_DB See Also certutil (1) modutil (1) The NSS wiki has information on the new database design and how to configure applications to use it. o https://wiki.mozilla.org/NSS_Sha...
certutil
ype as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be set added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared database by default, but they can be configured to use them. For example, this how-to article covers how to configure Firefox and
Thunderbird to use the new shared NSS databases: o https://wiki.mozilla.org/NSS_Shared_DB_Howto For an engineering draft on the changes in the shared NSS databases, see the NSS project wiki: o https://wiki.mozilla.org/NSS_Shared_DB See Also pk12util (1) modutil (1) certutil has arguments or operations that use features defined in several IETF RFCs. o http://tools.ietf...
NSS tools : modutil
ype as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be set added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared database by default, but they can be configured to use them. ...
NSS tools : pk12util
ype as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be set added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared database by default, but they can be configured to use them. For example, this how-to article covers how to configure Firefox and
Thunderbird to use the new shared NSS databases: o https://wiki.mozilla.org/NSS_Shared_DB_Howto For an engineering draft on the changes in the shared NSS databases, see the NSS project wiki: o https://wiki.mozilla.org/NSS_Shared_DB See Also certutil (1) modutil (1) The NSS wiki has information on the new database design and how to configure applications to use it. o h...
NSS tools : signver
ype as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be set added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared database by default, but they can be configured to use them. For example, this how-to article covers how to configure Firefox and
Thunderbird to use the new shared NSS databases: o https://wiki.mozilla.org/NSS_Shared_DB_Howto For an engineering draft on the changes in the shared NSS databases, see the NSS project wiki: o https://wiki.mozilla.org/NSS_Shared_DB See Also signtool (1) The NSS wiki has information on the new database design and how to configure applications to use it. o Setting up the sh...
Proxies in Necko
ISocketTransportService supports creating socket transports using an nsIProxyInfo. This proxy info will only be used if it specifies a SOCKS proxy, through which the connection is then made. Note that SOCKS is implemented as an nsISocketProvider, and the socket transport service will therefore use it as as the downmost socket type. Proxies and local hosts Requires Gecko 9.0(Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6) Starting with Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6), proxy servers are not used when accessing hosts with no dots in their names, if manual proxy configuration is used and "<local>" is added to the "No proxy for:" text field field. To be written XXX missing paragraphs are about PAC, and more details about HTTP proxying, and maybe some more details about S...
Introduction to the JavaScript shell
oop, or Ruby's irb. This article explains how to use the shell to experiment with JavaScript code and run JavaScript programs. To get the SpiderMonkey JavaScript shell, see the SpiderMonkey Build Documentation or download a compiled binary for your platform from the Nightly Builds. For a list of other JavaScript shells, see JavaScript shells. Note: Starting with SpiderMonkey 44 (Firefox 44 /
Thunderbird 44 / SeaMonkey 2.41), the standard, Web-compatible JavaScript version is used by default (and not JS1.7+ anymore). The version() shell builtin is still there for testing legacy features. Running the JavaScript shell The shell offers two modes of operation. You can use it as an interactive shell, in which you type JavaScript code at a prompt and get instant gratification, which is handy for exp...
JS_NewObject
d in SpiderMonkey 1.8 JS_NewObjectWithGivenProto creates a new object with the specified prototype. If NULL is passed as proto, the new object will have a prototype with the JS value of null. To create a new object as a property of an existing object, use JS_DefineObject, a convenience function that combines JS_NewObject and JS_DefineProperty. Obsolete ? Starting with Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5), you can create a new object in a specific compartment using the Components.utils.createObjectIn() method. Choosing a default prototype Like many JSAPI functions, JS_NewObject selects an appropriate prototype for the newly created object if you don't supply one yourself. If the new object's class (here, clasp) is a built-in class, then its associated prototype is used as ...
SpiderMonkey: The Mozilla JavaScript runtime
se to work on the SpiderMonkey code. Running Automated JavaScript Tests How to run the JavaScript test suites. Creating JavaScript tests How to add tests to the JavaScript test suites. Reference JSAPI Reference SpiderMonkey API reference. JS Debugger API Reference API reference for the Debugger object introduced in SpiderMonkey 1.8.6, which corresponds to Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5). Bytecode descriptions Listing of SpiderMonkey's bytecodes. Parser API Reflection of the SpiderMonkey parser, made available as a JavaScript API. Tips, tricks and philosophy Future Directions Future directions for functionality, design, and coding practices. SpiderMonkey Internals A design overview and a file-by-file walkthrough of the implementation. Bytecode Re...
Mozilla Projects
ension and chrome developers to find memory leaks. It will pop-up an alert when a window is closed and JavaScript still links to that window (for example, an observer that is not cleared when the window closes). MailNews MailNews stands for "Mail and Newsgroups". MailNews is the back end of the messaging parts of SeaMonkey and
Thunderbird. It provides a number of functions and capabilities, including: McCoy McCoy uses XULrunner which is bound to break, for details see this post. Mozilla calls McCoy a "simple system" which is a clear sign that something probably is not working, and indeed, is not. McCoy is an application that allows add-on authors t...
AT Development
Introduction Software Accessibility: Where are we today? The accessibility of computer software has seen drastic improvements over the past two decades. This article (from 2007) reviews the progress and technology as it has developed. Guidelines AT APIs Implementation by Gecko AT vendors guide to support Gecko-based applications like Firefox,
Thunderbird and so on. Accessibility Architecture How the accessibility hierarchy is implemented in Mozilla (some issues aren't addressed by previous guide). Building XULRunner with Python How to build XULRunner with Python on Windows. Then comtypes gives access to MSAA and IAccessible2. References AT APIs Implementation References Shows how Gecko handles ATK, IAccessible2, MSAA and Universal Access API Accessible Web Speci...
Feed content access API
Feed interfaces nsIFeed Represents an RSS or Atom feed. nsIFeedContainer A base class subclassed by several of the feed-related interfaces. nsIFeedElementBase A base class subclassed by several of the other feed-related interfaces. nsIFeedEntry Represents a single entry in an RSS or Atom feed. nsIFeedGenerator Describes the software that generated an RSS or atom feed. nsIFeedPerson Represents a person. Contains the person's name, email address, and their home page address. nsIFeedProcessor Parses RSS and Atom feeds. ...
Places Developer Guide
t-based applications. Importing: importHTMLFromFile (nsILocalFile aFile, boolean aIsInitialImport) - This imports all the bookmarks in the specified file into the current bookmarks collection. If aIsInitialImport is true, all pre-existing bookmarks in the toolbar and menu folders will be deleted. Note: The method importHTMLFromFileToFolder() method was removed in Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11). Exporting: exportHTMLToFile (nsILocalFile aFile) - This exports all bookmarks in the toolbar, menu and unfiled bookmarks folders into the specified file. Backup/Restore The new bookmarks system uses the JSON format for storing backups of users' bookmarks. The APIs are available via the PlacesUtils API in the utils.js Javascript module. var Ci = Components.interfaces; v...
Preferences API
and read strings, numbers, booleans, and references to files to the preferences store. It is relatively easy to use, while providing a number of useful user and developer features, including support for default preferences, user overrides via user.js, and locking. You can also create a XUL-based options window easily to allow user modify some preferences. Many applications including Firefox and
Thunderbird have an additional tool for power users, about:config, which can be used to tweak the preferences without UI. Interfaces The preferences API is exposed as a set of XPCOM components and interfaces: nsIPrefService, nsIPrefBranch. ... See also Code snippets:Preferences (more detailed discussion with multiple examples) ...
FUEL
iliar to them. FUEL is new in Firefox 3. FUEL is about making it easier for extension developers to be productive, by minimizing some of the XPCOM formality and adding some "modern" JavaScript ideas. We want to start with areas that will provide the most benefit. FUEL has a fuelIApplication interface that implements all the functions of extIApplication. The library has also been implemented in
Thunderbird ("STEEL") and in SeaMonkey ("SMILE"). Objects extIApplication Objects extIApplication extIConsole extIEventItem extIEventListener extIEvents extIExtension extIExtensions extIPreference extIPreferenceBranch extISessionStorage fuelIApplication Objects fuelIAnnotations fuelIApplication fuelIBookmark fuelIBookmarkFolder fuelIBookmarkRoots fuelIBrowserTab fuelIWindow XPCOM ...
SMILE
liar to them. SMILE is about making it easier for extension developers to be productive, by minimizing some of the XPCOM formality and adding some "modern" JavaScript ideas. We want to start with areas that will provide the most benefit. SMILE has a smileIApplication interface that implements all the functions of extIApplication. The library has also been implemented in Firefox ("FUEL") and in
Thunderbird ("STEEL"). Objects extIApplication Objects extIConsole extIEventItem extIEventListener extIEvents extIExtension extIExtensions extIPreference extIPreferenceBranch extISessionStorage smileIApplication Objects smileIBookmarkRoots smileIWindow smileIBrowserTab smileIApplication XPCOM Although the extIApplication object is preloaded into XUL scripts, it is not preloaded into J...
XPCOM array guide
apshot of the elements in the array, so that the enumerator can outlive the array. To create the enumerator, use NS_NewArrayEnumerator(nsISimpleEnumerator**, const nsCOMArray<T>&). For example: // mElements is an nsCOMArray<nsIElement> nsFoo::GetElements(nsISimpleEnumerator** aResult) { return NS_NewArrayEnumerator(aResult, mElements); } Deleting objects Requires Gecko 6.0(Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) introduces the RemoveObjectsAt() method to nsCOMArray<T>. This lets you delete multiple objects from the array at once by specifying the index to the first item to delete as well as the number of items to delete. For example, to remove three objects, starting at the third object in the array (that is, the object wi...
How to build an XPCOM component in JavaScript
e, {sdk_dir} is the directory in which you unpacked the Gecko SDK. {sdk_dir}/bin/xpidl -m typelib -w -v -I {sdk_dir}/idl -e HelloWorld.xpt HelloWorld.idl Note: On Windows you must use forward slashes for the include path. Note: (The -I flag is an uppercase i, not a lowercase L.) This will create the typelib file HelloWorld.xpt in the current working directory. For a new component in Firefox/
Thunderbird/B2G If you are adding a new feature to applications in the mozilla-central repository, you can create a Makefile listing the IDL files and the build system will automatically generate the typelib. A sample Makefile.in # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mo...
How to build a binary XPCOM component using Visual Studio
ko SDK. On Windows, the SDK is built using a Microsoft compiler, so you need to use one too. This tutorial uses Microsoft's free Visual C++ Express and the sample project in the next paragraph. You could try to use a different vendor's compiler, but you are going to need to build the SDK from source code. Not the simplest thing to do and it may be incompatible with production releases of Firefox,
Thunderbird, and XULRunner from Mozilla. For example, XULRunner 1.8.0.4 which has a pre-built SDK at gecko-sdk-win32-msvc-1.8.0.4.zip. Extract the SDK to a folder. The tutorial assumes the folder is called xulrunner-1.8.0.4, but you can call yours whatever you want. You also need a couple of pre-built libraries (glib-1.2.dll & libIDL-0.6.dll) from the wintools.zip archive. Copy glib-1.2.dll & libIDL-0.6.dll ...
Components.utils.Sandbox
as the content itself. sandboxName A string value which identifies the sandbox in about:memory (and possibly other places in the future). This property is optional, but very useful for tracking memory usage of add-ons and other JavaScript compartments. A recommended value for this property is an absolute path to the script responsible for creating the sandbox. As of Gecko 13 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10), if you don't specify a sandbox name it will default to the caller's filename. sandboxPrototype A prototype object for the sandbox. The sandbox will inherit the contents of this object if it's provided. Passing a content window object, setting wantXrays:true (default) and using an extended principal provides a clean, isolated execution environment in which javascrip...
xpcshell
tion that lets you run JavaScript code. Unlike the ordinary JS shell (js), xpcshell lets the scripts running in it access XPCOM functionality. Prerequisites You need your own build of Mozilla to use xpcshell. Running xpcshell ./run-mozilla.sh ./xpcshell xpcshell is almost always in the same directory as run-mozilla.sh. $ locate run-mozilla.sh /usr/lib/firefox-0.10.1/run-mozilla.sh /usr/lib/
thunderbird-0.9/run-mozilla.sh /usr/local/mozilla/run-mozilla.sh /opt/mozilla/run-mozilla.sh /root/.Trash/mozilla/run-mozilla.sh Just pick one, cd over there, and run-mozilla.sh xpcshell, if it's present. (However, it might not be there if you have a non-debug version of Firefox, Mozilla,
Thunderbird, etc.) $ cd /opt/mozilla $ ./run-mozilla.sh ./xpcshell js> Execute XPCShell from Window The built xpcsh...
IAccessibleTable2
If you want to support older applications you should also support the IAccessibleTable interface. ...
IAccessibleTableCell
other-licenses/ia2/AccessibleTableCell.idlNot scriptable This interface gives access to the cells of a two-dimensional table. ...
IJSDebugger
js/ductwork/debugger/IJSDebugger.idlScriptable Provides the JavaScript Debugger service. You should usually interface with this using the JavaScript code module instead of directly. See the JavaScript Debugger API Guide for details. 1.0 66 Introduced Gecko 9.0 Inherits from: nsISupports Last changed in Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6) Implemented by: @mozilla.org/jsdebugger;1 as a service: var jsDebugger = Components.classes["@mozilla.org/jsdebugger;1"] .createInstance(Components.interfaces.IJSDebugger); Note: You should almost never directly use this service; instead, you should use the JavaScript code module that does this for you. The only time you should directly use this interface to create the Debugger object is if ...
amIInstallCallback
toolkit/mozapps/extensions/amIInstallTrigger.idlScriptable A callback function that web pages can implement to be notified when triggered installs complete. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void onInstallEnded(in AString aUrl, in PRInt32 aStatus); Methods onInstallEnded() Called when an install completes or fails. void onInstallEnded( in AString aUrl, in PRInt32 aStatus ); Parameters aUrl The url of the add-on being installed. aStatus 0 if the install was successful or negative if not. ...
amIInstallTrigger
toolkit/mozapps/extensions/amIInstallTrigger.idlScriptable Called when an install completes or fails. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview boolean enabled(); boolean install(in nsIVariant aArgs, [optional] in amIInstallCallback aCallback); boolean installChrome(in PRUint32 aType, in AString aUrl, in AString aSkin); Deprecated since Gecko 2.0 boolean startSoftwareUpdate(in AString aUrl, [optional] in PRInt32 aFlags); Deprecated since Gecko 2.0 boolean updateEnabled(); Deprecated since Gecko 2.0 Constants Retained for backwards compatibility. Constant Value Description SKIN 1 ...
amIWebInstallListener
all installs. The registered amIWebInstallListener is used to notify about new installs triggered by websites. The default implementation displays a confirmation dialog when add-ons are ready to install and uses the observer service to notify when installations are blocked. ...
amIWebInstallPrompt
toolkit/mozapps/extensions/amIWebInstallListener.idlScriptable Called when installation by websites is currently disabled. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5) Method overview void confirm(in nsIDOMWindow aWindow, in nsIURI aUri, [array, size_is(aCount)] in nsIVariant aInstalls, [optional] in PRUint32 aCount); Prior to Gecko 8.0, all references to nsIDOMWindow used in this interface were nsIDOMWindow. Methods confirm() Gets a confirmation that the user wants to start the installs. void confirm( in nsIDOMWindow aWindow, in nsIURI aUri, [array, size_is(aCount)] in nsIVariant aInstalls, in PRUint32 aCount Optional ); Parameters aWindow Th...
amIWebInstaller
toolkit/mozapps/extensions/amIWebInstaller.idlScriptable This interface is used to allow web pages to start installing add-ons. ...
imgICache
That means that using getService in order to obtain it will yield incorrect results. ...
imgILoader
modules/libpr0n/public/imgILoader.idlScriptable Please add a summary to this article. ...
inIDOMUtils
layout/inspector/inIDOMUtils.idlScriptable DOM utility functions. ...
jsdIStackFrame
Warnings reported as errors. Makes eval() use the last object on its 'obj' param's scope chain as the ECMA 'variables object'. Private data for this object is an nsISupports object. Attempting to alter this bit will result in an NS_ERROR_ILLEGAL_VALUE. OPT_* values above, OR'd together. Last version set on this context. Scripts typically select this with the "language" attribute. ...
mozIAsyncFavicons
Simply QueryInterface() the nsIFaviconService to this interface. As an alternative, you can just use PlacesUtils.favicons from JavaScript. ...
mozIAsyncHistory
toolkit/components/places/mozIAsyncHistory.idlScriptable This interface allows you to add multiple visits to a single URL in a batch. ...
mozIColorAnalyzer
toolkit/components/places/mozIColorAnalyzer.idlScriptable Provides methods to analyze colors in an image 1.0 66 Introduced Gecko 17.0 Inherits from: nsISupports Last changed in Gecko 17.0 (Firefox 17.0 /
Thunderbird 17.0 / SeaMonkey 2.14) Method overview void findRepresentativeColor(in nsIURI imageURI, in mozIRepresentativeColorCallback callback); Methods findRepresentativeColor() Given an image URI, find the most representative color for that image based on the frequency of each color. Preference is given to colors that are more interesting. It avoids the background color if it can be discerned and ignores sufficiently transparent colors. This is intended to be used on favicon images. Larger images take longer to process, especially those ...
mozIJSSubScriptLoader
js/xpconnect/idl/mozIJSSubScriptLoader.idlScriptable This interface can be used from privileged JavaScript to load and run JavaScript code from the given URL at runtime. 66 Introduced Gecko 1.0 Inherits from: nsISupports Last changed in Gecko 28 (Firefox 28 /
Thunderbird 28 / SeaMonkey 2.25 / Firefox OS 1.3) Implemented by: @mozilla.org/moz/jssubscript-loader;1. To get this service, use: var mozIJSSubScriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader); Note: See Components.utils.import for another way to import JavaScript code. Method overview jsval loadSubScript(in string url, in Object targetObj Optional, in string charset Optional); js...
mozIPlaceInfo
Warning: This interface is experimental and will change after Gecko 2.0. toolkit/components/places/public/mozIAsyncHistory.idlScriptable This interface provides additional info for a Places entry 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Attributes Attribute Type Description frecency long Read only: The frecency of the place. guid String Read only: The globally unique id of the place. placeId long Read only: The machine-local (internal) id of the place. title String Read only: The title associated with the place. uri nsIURI Read only: The URI of the place. visits mozIVisitInfo[] Read only: An array of mozIVisitInfo objects for the place. See also mozIAsyncHistory ...
mozIPlacesAutoComplete
toolkit/components/places/public/mozIPlacesAutoComplete.idlScriptable This interface provides some constants used by the Places AutoComplete search provider as well as methods to track opened pages for AutoComplete purposes. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void registerOpenPage(in nsIURI aURI); void unregisterOpenPage(in nsIURI aURI); Constants Constant Value Description MATCH_ANYWHERE 0 Match anywhere in each searchable term. MATCH_BOUNDARY_ANYWHERE 1 Match first on word boundaries, and if we do not get enough results, then match anywhere in each searchable term. MATCH_BOUNDARY 2 Match on word boundaries in each searchable term. ...
mozIRepresentativeColorCallback
toolkit/components/places/mozIColorAnalyzer.idlScriptable Provides callback methods for mozIColorAnalyzer 1.0 66 Introduced Gecko 17.0 Inherits from: nsISupports Last changed in Gecko 17.0 (Firefox 17.0 /
Thunderbird 17.0 / SeaMonkey 2.14) Method overview void onComplete(in boolean success, [optional] in unsigned long color); Methods onComplete() Will be called when color analysis finishes. void onComplete( in boolean success, [optional] in unsigned long color ); Parameters success True if analysis was successful, false otherwise. Analysis can fail if the image is transparent, imageURI doesn't resolve to a valid image, or the image is too big. color The representative color as an integer in RGB form. e.g. 0xFF0...
mozIStorageBindingParams
The mozIStorageBindingParams interface is used to bind values to parameters prior to calling mozIStorageStatement.executeAsync(). storage/public/mozIStorageBindingParams.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Inherits from: nsISupports You can only create mozIStorageBindingParams objects by calling the mozIStorageBindingParamsArray.newBindingParams(). Method overview void bindByIndex(in unsigned long aIndex, in nsIVariant aValue); void bindBlobByIndex(in unsigned long aIndex, [array, const, size_is(aValueSize)] in octet aValue, in unsigned long aValueSize); void bindDoubleByIndex(in unsigned long aIndex, in double aValue); Native code only! void bindInt32ByIndex(in ...
mozIStorageBindingParamsArray
The mozIStorageBindingParamsArray interface is a container for mozIStorageBindingParams objects, and is used to store sets of bound parameters that will be used by the mozIStorageStatement.executeAsync(). storage/public/mozIStorageBindingParamsArray.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Inherits from: nsISupports You can only create these objects by calling the mozIStorageStatement.newBindingParamsArray(). Method overview void addParams(in mozIStorageBindingParams aParameters); mozIStorageBindingParams newBindingParams(); Attributes Attribute Type Description length unsigned long The number of mozIStorageBindingParams objects in the array. ...
mozIStorageCompletionCallback
This interface should be implemented to handle callbacks from asynchronous Storage API routines. storage/public/mozIStorageCompletionCallback.idlScriptable Please add a summary to this article. Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Inherits from: nsISupports Method overview void complete(); Methods complete() Called when an asynchronous storage routine has completed. void complete(); Parameters None. ...
mozIStorageConnection
geConnection.idlScriptable This interface represents a database connection attached to a specific file or an in-memory database. It is the primary interface for interacting with a database, including creating prepared statements, executing SQL, and examining database errors. 1.0 68 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) For a general overview on how to use this interface, see Storage. Method overview void asyncClose([optional] in mozIStorageCompletionCallback aCallback); void beginTransaction(); void beginTransactionAs(in PRInt32 transactionType); mozIStorageStatement clone([optional] in boolean aReadOnly); void close(); void commi...
mozIStorageError
The mozIStorageError interface represents errors returned by the Storage API, offering attributes to obtain the error code as well as a human-readable error message corresponding to the error that occurred. storage/public/mozIStorageError.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Inherits from: nsISupports Attributes Attribute Type Description message AUTF8String A human readable error string with details; this may be null if no details are available. Read only. result long One of the error code values listed under Constants on this page. Constants Constant Value Descriptio...
mozIStoragePendingStatement
The mozIStoragePendingStatement interface represents a pending asynchronous database statement, and offers the cancel() method which allows you to cancel the pending statement. storage/public/mozIStoragePendingStatement.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Inherits from: nsISupports Method overview void cancel(); Methods cancel() Cancels the pending statement. Fails only if you attempt to cancel the operation more than once. Note: For read statements, such as SELECT, once you cancel the statement, you will receive no further notifications about results. void cancel(); Parameters None. Return value In versions of Gecko prior to Gecko 1.9.2, this returned a boolean value that was true if the query ...
mozIStorageProgressHandler
The mozIStorageProgressHandler interface lets storage consumers receive callbacks during the execution of sqlite requests. storage/public/mozIStorageProgressHandler.idlScriptable Please add a summary to this article. Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Inherits from: nsISupports Method overview boolean onProgress(in mozIStorageConnection aConnection); Methods onProgress() The onProgress() method is called periodically while an sqlite operation is ongoing. This allows you to monitor the progress and possibly display status information to the user. boolean onProgress( in mozIStorageConnection aConnection ); Parameters <tt>aConnection</tt> A mozIStorageConnection connection indicating the connection for which the callback was invok...
mozIStorageResultSet
The mozIStorageResultSet interface represents a set of results from a storage statement. storage/public/mozIStorageResultSet.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Inherits from: nsISupports Method overview mozIStorageRow getNextRow(); Methods getNextRow() Returns the next row from the result set. mozIStorageRow getNextRow(); Parameters None. Return value A mozIStorageRow object containing the next row from the result set, or null if there are no more results. See also Storage mozIStorageConnection mozIStorageStatement ...
mozIStorageRow
The mozIStorageRow interface represents a row in the result set from a storage database query. storage/public/mozIStorageRow.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Inherits from: mozIStorageValueArray Method overview nsIVariant getResultByIndex(in unsigned long aIndex); nsIVariant getResultByName(in AUTF8String aName); Methods getResultByIndex() Returns the value from a specific column in the row, using a zero-based index to identify the column. nsIVariant getResultByIndex( in unsigned long aIndex ); Parameters aIndex The zero-based index of the column number whose value is to be returned. Return value An nsIVariant object containing the v...
mozIStorageStatementCallback
The mozIStorageStatementCallback interface represents a callback handler that the Storage API calls with result, error, and completion notifications while handling asynchronous database queries. storage/public/mozIStorageStatementCallback.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Inherits from: nsISupports Method overview void handleCompletion(in unsigned short aReason); void handleError(in mozIStorageError aError); void handleResult(in mozIStorageResultSet aResultSet); Constants Constant Value Description REASON_FINISHED 0 The statement has finished executing normally. REASON_CANCELED 1 The statement stopped executing because i...
mozIStorageStatementWrapper
ou execute the statement as a function, access bind variables by name as properties, etc. Firefox 3.5 note Firefox 3.5 adds support for these features directly into the mozIStorageStatement interface, so this interface is essentially deprecated. storage/public/mozIStorageStatementWrapper.idlScriptable Please add a summary to this article. Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Inherits from: nsISupports Method overview void initialize(in mozIStorageStatement aStatement); void reset(); boolean step(); void execute(); Attributes Attribute Type Description statement mozIStorageStatement The statement that is wrapped. row mozIStorageStatementRow The current row. Thr...
mozIStorageValueArray
The mozIStorageValueArray interface obtains provides methods to obtain data from a given result. For an introduction on how to use this interface, see the Storage overview document. storage/public/mozIStorageValueArray.idlScriptable Please add a summary to this article. ...
mozITXTToHTMLConv
The mozITXTToHTMLConv interface is used to convert text into HTML format. Its primary use is in converting user-entered text into properly-formatted HTML. netwerk/streamconv/public/mozITXTToHTMLConv.idlScriptable Please add a summary to this article. ...
mozIThirdPartyUtil
netwerk/base/public/mozIThirdPartyUtil.idlScriptable Utility functions for determining whether a given URI, channel, or window hierarchy is third party with respect to a known URI. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview boolean isThirdPartyChannel(in nsIChannel aChannel, [optional] in nsIURI aURI); boolean isThirdPartyURI(in nsIURI aFirstURI, in nsIURI aSecondURI); boolean isThirdPartyWindow(in nsIDOMWindow aWindow, [optional] in nsIURI aURI); Methods isThirdPartyChannel() Determine whether the given channel and its content window hierarchy is third party. This is done as follows: If aChannel is an nsIHttpChannel and has the 'forceAllowThirdPartyCookie'...
mozIVisitInfo
This may be null. sessionId long Read only: The sessionId of this visit. ...
mozIVisitStatusCallback
Implement this method to determine the results of the request. void isVisited( in nsIURI aURI, in boolean aVisitedStatus ); Parameters aURI The URI that was checked to see if it's been visited. aVisitedStatus true if the specified URI ha...
nsIAboutModule
netwerk/protocol/about/nsIAboutModule.idlScriptable This interface is implemented to add an 'about:' page. The contract id ends with a parameter that corresponds to the name of the about page. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview unsigned long getURIFlags(in nsIURI aURI); nsIChannel newChannel(in nsIURI aURI); Constants Constant Value Description URI_SAFE_FOR_UNTRUSTED_CONTENT (1 << 0) A flag that indicates whether a URI is safe for untrusted content. If it is, web pages and so forth will be allowed to link to this about: URI. Otherwise, only chrome will be able to link to it. ALLOW_SCRIPT (1 << 1) A flag that indicates whether script sho...
nsIAbstractWorker
dom/interfaces/threads/nsIDOMWorkers.idlScriptable This interface is an abstract interface used to implement the web workers architecture. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsIDOMEventTarget Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Attributes Attribute Type Description onerror nsIDOMEventListener The error listener for the worker. See also Using web workers nsIWorkerMessagePort nsIWorkerMessageEvent nsIWorkerScope nsIWorkerGlobalScope nsIWorker ...
nsIAccelerometerUpdate
xpcom/system/nsIAccelerometer.idlNot scriptable Replaced by nsIDeviceMotionUpdate 1.0 66 Introduced Gecko 2.0 Obsolete Gecko 6.0 Inherits from: nsIAccelerometer Last changed in Gecko 5.0 (Firefox 5.0 /
Thunderbird 5.0 / SeaMonkey 2.2) This method is only used in content tabs to receive nsIAcceleration data from the chrome process. Method overview void accelerationChanged(in double x, in double y, in double z); Methods accelerationChanged() void accelerationChanged( in double x, in double y, in double z ); Parameters x y z The coordinates of the nsIAcceleration data. ...
nsIAccessibilityService
accessible/public/nsIAccessibilityService.idlScriptable Please add a summary to this article. ...
nsIAccessible
tree is a subset of nodes in the DOM tree -- such as documents, focusable elements and text. Mozilla creates the implementations of nsIAccessible on demand. [scriptable, uuid=(c7520419-87ec-42bc-98cc-04c0bf173530)] interface nsIAccessible : nsISupports { ... }; accessible/public/nsIAccessible.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Overview This section provides short overview of methods and attributes of this interface. All methods and attributes are grouped by categories. Role, states and name These includes main properties used to describe the accessible. nsIAccessible.role to get the role of the accessible nsIAccessible.getState() to get states of the accessibe nsIAccessible.name, nsIAccessible...
nsIAccessibleEvent
accessible/public/nsIAccessibleEvent.idlScriptable An interface for accessibility events listened to by in-process accessibility clients, which can be used to find out how to get accessibility and DOM interfaces for the event and its target. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Attributes Attribute Type Description accessible nsIAccessible The nsIAccessible associated with the event. May return null if no accessible is available. Read only. accessibleDocument nsIAccessibleDocument The nsIAccessibleDocument that the event target nsIAccessible resides in. This can be used to get the DOM window, the DOM document and the window handler, among other things. Read only. DOMNode nsIDOMNode The nsIDOMNode associated with the...
nsIAccessibleRole
ROLE_TITLEBAR 1 Represents a title or caption bar for a window. It is used by MSAA only, supported automatically by MS Windows. ...
nsIAccessibleTable
accessible/public/nsIAccessibleTable.idlScriptable Please add a summary to this article. ...
nsIAccessibleTableCell
The result differs from 1 if the specified cell spans multiple columns. Read only. columnHeaderCells nsIArray Return an array of column header cells for this cell. Read only. ...
nsIAccessibleTableChangeEvent
accessible/public/nsIAccessibleEvent.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Attributes Attribute Type Description numRowsOrCols long Return the number of rows or cols. Read only. rowOrColIndex long Return the row or column index. Read only. ...
nsIAlertsService
toolkit/components/alerts/nsIAlertsService.idlScriptable This interface can be used to notify the user of something that does not require an immediate reaction. For example, it can be used to notify the user that their downloads are complete or that they have new mail. 1.0 66 Introduced Gecko 1.7 Inherits from: nsISupports Last changed in Gecko 22 (Firefox 22 /
Thunderbird 22 / SeaMonkey 2.19) By default a message is displayed in a small window that slides up from the bottom of the screen, holds there for a few seconds, then slides down. The specific appearance varies from platform to platform. Note: Prior Firefox 22, the alerts service was only supported on Windows in Gecko 1.7, had no effect on Mac OS X in Gecko 1.8, but was fully supported in Mac OS X in Geck...
nsIAnnotationService
toolkit/components/places/public/nsIAnnotationService.idlScriptable Stores arbitrary data about a web page. Supported for use from trusted code, such as extensions, but not from web content. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Implemented by: "@mozilla.org/browser/annotation-service;1". To use this service, use: var annotationService = Components.classes["@mozilla.org/browser/annotation-service;1"] .getService(Components.interfaces.nsIAnnotationService); Note: The annotation service is not thread-safe. You should only use it from the main thread. Method overview void setPageAnnotation(in nsIURI aURI, in AUTF8String aName, in nsIVar...
nsIAppShell
widget/public/nsIAppShell.idlNot scriptable Interface for the native event system layer. This interface is designed to be used on the main application thread only. ...
nsIApplicationCache
Each entry in the cache can be marked with a set of types, specified in the Constants section. ...
nsIApplicationCacheChannel
netwerk/base/public/nsIApplicationCacheChannel.idlScriptable This interface is implemented by communication channels that support application caches. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsIApplicationCacheContainer Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void markOfflineCacheEntryAsForeign(); Attributes Attribute Type Description chooseApplicationCache boolean When true, the channel will choose an application cache if one was not explicitly provided and none is available from the notification callbacks. The default value is false. This attribute will not be transferred through a redirect. Exceptions thrown NS_ERROR_ALREADY_OPENED If set after calling AsyncOpen() on the channel. inheritAp...
nsIApplicationCacheContainer
netwerk/base/public/nsIApplicationCacheContainer.idlScriptable This interface is used by objects that can be associated with an application cache. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Attributes Attribute Type Description applicationCache nsIApplicationCache The application cache with which the object is associated. See also Offline resources in Firefox nsIApplicationCache nsIApplicationCacheChannel nsIApplicationCacheService nsIApplicationCacheNamespace nsIDOMOfflineResourceList ...
nsIApplicationCacheNamespace
If a load from the cache fails to match on an exact cache entry, the namespace entries are searched for a substring match. ...
nsIApplicationCacheService
netwerk/base/public/nsIApplicationCacheService.idlScriptable This interface manages the set of application cache groups that manage offline resources for web applications. ...
nsIApplicationUpdateService
toolkit/mozapps/update/nsIUpdateService.idlScriptable This interface describes a global application service that handles performing background update checks. It also provides utilities for selecting and downloading update patches. ...
nsIAsyncStreamCopier
netwerk/base/public/nsIAsyncStreamCopier.idlScriptable This interface is used to copy the contents of one stream to another. Inherits from: nsIRequest Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Method overview void asyncCopy(in nsIRequestObserver aObserver, in nsISupports aObserverContext); void init(in nsIInputStream aSource, in nsIOutputStream aSink, in nsIEventTarget aTarget, in boolean aSourceBuffered, in boolean aSinkBuffered, in unsigned long aChunkSize, in boolean aCloseSource, in boolean aCloseSink); Methods asyncCopy() Starts the copy operation. The specified observer is notified when the copy completes. void asyncCopy( in nsIRequestObserver aObserver, in nsISupports aObserverContext ); Parameters aObserver Receives notifications. aO...
nsIAsyncVerifyRedirectCallback
netwerk/base/public/nsIAsyncVerifyRedirectCallback.idlScriptable Implement this interface to receive a callback that lets you know whether an asynchronous redirect was verified or vetoed. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) This interface implements the callbacks passed to the nsIChannelEventSink.asyncOnChannelRedirect() method. Method overview void onRedirectVerifyCallback(in nsresult result); Methods onRedirectVerifyCallback() Implements the asynchronous callback passed to nsIChannelEventSink.asyncOnChannelRedirect(). The result of the redirect decision is passed through this callback. void onRedirectVerifyCallback( in nsresult result ); Parameters ...
nsIAuthInformation
netwerk/base/public/nsIAuthInformation.idlScriptable A object that holds authentication information. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) The caller of nsIAuthPrompt2.promptUsernameAndPassword() or nsIAuthPrompt2.promptPasswordAsync() provides an object implementing this interface; the prompt implementation can then read the values here to prefill the dialog. After the user entered the authentication information, it should set the attributes of this object to indicate to the caller what was entered by the user. Attributes Attribute Type Description authenticationScheme AUTF8String The authentication scheme used for this request, if applicable. If the protocol for this...
nsIAuthModule
netwerk/base/public/nsIAuthModule.idlScriptable This interface is intended to be used as server and client authentication service. ...
nsIAutoCompleteObserver
toolkit/components/autocomplete/public/nsIAutoCompleteSearch.idlScriptable Please add a summary to this article. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void onSearchResult(in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); void onUpdateSearchResult(in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); Methods onSearchResult() Called when a search is complete and the results are ready. void onSearchResult( in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result ); Parameters search The search object that processed this search. result The search result object. onUpdateSearchResult() Called to update with new results. void onUpdateSearchResult( in nsIAutoComp...
nsIBidiKeyboard
is interface lets the application detect bidirectional writer users, and do some magic for them. A user is a bidirectional writer if they have keyboard layouts in both left-to-right and right-to-left directions (that is users who use Arabic, Iranian (Persian), or Israel (Hebrew) keyboard layout, beside an US (English) layout.) Inherits from: nsISupports Last changed in Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6) Method overview boolean isLangRTL(); void setLangFromBidiLevel(in PRUint8 aLevel); Attributes Attribute Type Description haveBidiKeyboards boolean Indicates whether or not the system has at least one keyboard for each direction (left-to-right and right-to-left) installed. Read only. Note: This throws NS_ER...
nsIBlocklistPrompt
xpcom/system/nsIBlocklistService.idlScriptable This interface is used, if available, by the default implementation of nsIBlocklistService to display a confirmation user interface to the user before blocking extensions or plugins. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void prompt([array, size_is(aCount)] in nsIVariant aAddons, [optional] in PRUint32 aCount); Methods prompt() Prompt the user about newly blocked addons. The prompt is then responsible for soft-blocking any addons that need to be afterwards. void prompt( [array, size_is(aCount)] in nsIVariant aAddons, in PRUint32 aCount Optional ); Parameters aAddons An array of addons and ...
nsIBlocklistService
xpcom/system/nsIBlocklistService.idlScriptable Please add a summary to this article. ...
nsIBrowserSearchService
netwerk/base/public/nsIBrowserSearchService.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Implemented by: @mozilla.org/browser/search-service;1. To access this service, use: var browserSearchService = Components.classes["@mozilla.org/browser/search-service;1"] .getService(Components.interfaces.nsIBrowserSearchService); Attempting to use any method or attribute of this interface before init() has completed will force the service to fall back to a slower, synchronous, initialization. This is not an issue if your code is executed in reaction to a user interaction, as initialization is complete by then, ...
nsIContentPref
name AString Read only. value nsIVariant Read only. See also nsIContentPrefService2 nsIContentPrefCallback2 ...
nsIContentPrefCallback2
This will be called exactly once for each method invocation, and afterward no other callback methods will be called. void handleCompletion( in unsigned short reason ); Parame...
nsIContentPrefService
Use the asynchronous interface nsIContentPrefService2 instead. Provides a way for extensions and browser code to save preferences for specific websites. Preferences are saved as key/value pairs on a per-website basis. dom/interfaces/base/nsIContentPrefService.idlScriptable Please add a summary to this article. Last changed in Gecko 2 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Inherits from: nsISupports Implemented by: @mozilla.org/content-pref/service;1. To create an instance, use: var contentPrefService = Components.classes["@mozilla.org/content-pref/service;1"] .getService(Components.interfaces.nsIContentPrefService); Method overview void addObserver(in AString aName, in nsIContentPrefObserver aObserver); nsIVariant getPref(in nsIVariant aGr...
nsIContentPrefService2
dom/interfaces/base/nsIContentPrefService2.idlScriptable Asynchronous API for Content Preferences 1.0 66 Introduced Gecko 20.0 Inherits from: nsISupports Last changed in Gecko 20.0 (Firefox 20.0 /
Thunderbird 20.0 / SeaMonkey 2.17) Description Content preferences allow the application to associate arbitrary data, or "preferences", with specific domains, or web "content". Specifically, a content preference is a structure with three values: a domain with which the preference is associated, a name that identifies the preference within its domain, and a value. (See nsIContentPref below.) For example, if you want to remember the user's preference for a certain zoom level on www.mozilla.org pages, you might store a preference whose domain is "www.mozilla.org", whose name i...
nsIContentSecurityPolicy
content/base/public/nsIContentSecurityPolicy.idlScriptable Describes an XPCOM component used to model and enforce Content Security Policies. ...
nsIContentView
content/base/public/nsIFrameLoader.idlScriptable Represents a scrollable content view whose contents are actually drawn by a separate process; this is part of the Electrolysis multi-process support framework. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) See Working with content views for details on how to use this API. Note: Currently, only <frame> and <iframe> elements are handled as content views. Support for using this API for all scrollable elements is coming; see bug 618975 for details. Method overview void scrollBy(in float dxPx, in float dyPx); void scrollTo(in float xPx, in float yPx); void setScale(in float xScale, in float yScale); Attribu...
nsIConverterInputStream
xpcom/io/nsIConverterInputStream.idlScriptable A unichar input stream that wraps an input stream. This allows reading unicode strings from a stream, automatically converting the bytes from a selected character encoding. 1.0 66 Introduced Gecko 1.8 Inherits from: nsIUnicharInputStream Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Implemented by: @mozilla.org/intl/converter-input-stream;1. To create an instance, use: var converterInputStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] .createInstance(Components.interfaces.nsIConverterInputStream); Method overview void init(in nsIInputStream aStream, in string aCharset, in long aBufferSize, in PRUnichar aReplacementChar); Constants C...
nsIConverterOutputStream
xpcom/io/nsIConverterOutputStream.idlScriptable This interface allows writing strings to a stream, doing automatic character encoding conversion. 1.0 66 Introduced Gecko 1.8 Inherits from: nsIUnicharOutputStream Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Implemented by: @mozilla.org/intl/converter-output-stream;1. To create an instance, use: var converterOutputStream = Components.classes["@mozilla.org/intl/converter-output-stream;1"] .createInstance(Components.interfaces.nsIConverterOutputStream); Method overview void init(in nsIOutputStream aOutStream, in string aCharset, in unsigned long aBufferSize, in PRUnichar aReplacementCharacter); Methods init() Initialize this stream. Must be called before any...
nsICookieManager2
The nsICookieManager2 interface contains additional methods that expand upon the nsICookieManager interface. netwerk/cookie/nsICookieManager2.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Inherits from: nsICookieManager This interface is included in The Services.jsm JavaScript code module. To create an object implementing this interface: Components.utils.import("resource://gre/modules/Services.jsm"); var cookieService = Services.cookies; Method overview void add(in AUTF8String aHost, in AUTF8String aPath, in ACString aName, in ACString aValue, in boolean aIsSecure, in boolean aIsHttpOnly, in boolean aIsSession, in PRInt64 aExpiry); boolean cookieExists(in nsICookie2 aCookie); ...
nsICookieStorage
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This interface represents the storage repository for cookies. modules/plugin/base/public/nsICookieStorage.idlNot scriptable Please add a summary to this article. Last changed in Gecko 1.7 Inherits from: nsISupports Method overview void getCookie(in string aCookieURL, in voidPtr aCookieBuffer, in PRUint32Ref aCookieSize); void setCookie(in string aCookieURL, in constVoidPtr aCookieBuffer, in unsigned long aCookieSize); Methods getCookie() Retrieves a cookie from the browser's persistent cookie store. ...
nsICrashReporter
xpcom/system/nsICrashReporter.idlScriptable Provides access to crash reporting functionality. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void annotateCrashReport(in ACString key, in ACString data); void appendAppNotesToCrashReport(in ACString data); void appendObjCExceptionInfoToAppNotes(in voidPtr aException); Native code only! void writeMinidumpForException(in voidPtr aExceptionInfo); Native code only! Attributes Attribute Type Description enabled boolean Enable or disable the crashreporter at runtime. minidumpPath nsILocalFile Get or set the path on the local system to which minidumps will be written when a crash happens. Exceptions thro...
nsICryptoHash
e This interface can be used to compute a cryptographic hash function of some data. You can, for example, calculate the SHA256 hash of a file to determine if it contains the data you think it does. The hash algorithms supported are MD2, MD5, SHA-1, SHA-256, SHA-384, and SHA-512. ...
nsICycleCollectorListener
xpcom/base/nsICycleCollectorListener.idlScriptable Interface to pass to the cycle collector to get information about the cycle collector graph while it is being built. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) The order of calls will be call to begin(); then for every node in the graph a call to noteObject() and calls to noteEdge() for every edge starting at that node; then a call to beginDescriptions(); then for every black node in the cycle collector graph a call to either describeRefcountedObject() or to describeGCedObject(); and then a call to end(). If begin() returns an error none of the other functions will be called. Method overview void begin(); void beginDescriptions()...
nsIDBChangeListener
There are a couple of ways to access the message database: if you have a nsIMsgFolder, you can do this like so: someFolder.msgDatabase.AddListener(myListener); Alternately, you can access the message database through the nsIMsgDbView like so: gFolderDisplay.view.dbView.db.AddListener(myListener); Meth...
nsIDOMChromeWindow
dom/interfaces/base/nsIDOMChromeWindow.idlScriptable This interface is implemented on the window object in chrome. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void beginWindowMove(in nsIDOMEvent mouseDownEvent); void getAttention(); void getAttentionWithCycleCount(in long aCycleCount); void maximize(); void minimize(); void notifyDefaultButtonLoaded(in nsIDOMElement defaultButton); void restore(); void setCursor(in DOMString cursor); Attributes Attribute Type Description browserDOMWindow nsIBrowserDOMWindow The related nsIBrowserDOMWindow instance which provides access to yet another layer of utility functions by chrome script. It will be null for DOMWindows not corresponding to browsers. ...
nsIDOMClientRect
dom/interfaces/base/nsIDOMClientRect.idlScriptable Represents a rectangular box. The type of box is specified by the method that returns such an object. It is returned by functions like element.getBoundingClientRect. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Attributes Attribute Type Description bottom float Y-coordinate, relative to the viewport origin, of the bottom of the rectangle box. Read only. height float Height of the rectangle box (This is identical to bottom minus top). Read only. left float X-coordinate, relative to the viewport origin, of the left of the rectangle box. Read only. right float...
nsIDOMEvent
Everything marked as Gecko 16.0 was previously available in that interface. See bug 761613. ...
nsIDOMFile
in Gecko, this interface currently inherits from nsISupports, but in the File API specification, it should be a Blob. This will likely change in the future, so avoid using any non-standard methods offered by this interface in order to ensure future compatibility. content/base/public/nsIDOMFile.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Inherits from: nsISupports This interface implements the DOM File object; for complete documentation, read up on that. See also nsIDOMFileList nsIDOMFileException DataTransfer Drag and drop ...
nsIDOMFileError
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The nsIDOMFileError interface describes errors that occur while using the DOM File API. ...
nsIDOMFileReader
The nsIDOMFileReader interface provides a way to read data from a file specified by an nsIDOMFile. content/base/public/nsIDOMFileReader.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Inherits from: nsISupports Implemented by: @mozilla.org/files/filereader;1. To create an instance, use: var FileReader = Components.classes["@mozilla.org/files/filereader;1"].createInstance(Components.interfaces.nsIDOMFileReader); This interface implements the DOM FileReader object; see that documentation for details. Examples OS.File for the main thread - Example - Save Canvas to Disk See also File API Specification Working Draft nsIDOMFile nsIDOMFileList nsIDOMFileException ...
nsIDOMFontFace
It's returned in a list you can get using inIDOMUtils.getUsedFontFaces(). Attributes Font source attributes These attributes indicate how the font was found during the font matching process. Note: The same physical font may have been found in multiple ways within a range. ...
nsIDOMGeoGeolocation
Summary The nsIDOMGeoGeolocation interface provides access to geolocation information. You can request a single notification of the user's current position, or you can monitor the position over time. dom/interfaces/geolocation/nsIDOMGeoGeolocation.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Inherits from: nsISupports Implemented by: @mozilla.org/geolocation;1. Starting in Gecko 1.9.2, you can access this service using: var geolocation = Components.classes["@mozilla.org/geolocation;1"] .getService(Components.interfaces.nsIDOMGeoGeolocation); Note: if nsIDGeoGeolocation throws an exception when importing, try using this: var geolocation = Components.classes["@mozilla.org/geolocatio...
nsIDOMGeoPosition
dom/interfaces/geolocation/nsIDOMGeoPosition.idlScriptable This interface describes a geographical location at a specific time. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Attributes Attribute Type Description address nsIDOMGeoPositionAddress The address of the user's current location, if available. Read only. coords nsIDOMGeoPositionCoords The user's current position information. Read only. timestamp DOMTimeStamp The time at which the reading was taken. Read only. See also Using geolocation ...
nsIDOMGeoPositionAddress
dress.idlScriptable This interface describes the geographical address of a location, including street, city, and country information, for example. This information may or may not be available, depending on the geolocation service being used. 1.0 66 Introduced Gecko 1.9.2 Obsolete Gecko 14.0 Inherits from: nsISupports Last changed in Gecko 11 (Firefox 11 /
Thunderbird 11 / SeaMonkey 2.8) This object is obtained from an nsIDOMGeoPositionAddress object via its address attribute. Note: This needs to be moved into the DOM Reference. Attributes Attribute Type Description city DOMString The city. Read only. country DOMString The country. Read only. countryCode Obsolete since Gecko 11 DOMString Removed in Firefox 11, since it isn't defined in the specificat...
nsIDOMGeoPositionCallback
The nsIDOMGeoPositionCallback interface is called when updated position information is available. You need to implement this interface to accept callbacks after using nsIDOMGeolocation.watchPosition(). dom/interfaces/geolocation/NsIDOMGeoPositionCallback.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Method overview void handleEvent(in nsIDOMGeoPosition position); Methods handleEvent() Called when new position information is available. void handleEvent( in nsIDOMGeoPosition position ); Parameters position An nsIDOMGeoPosition object indicating the updated location information. ...
nsIDOMGeoPositionCoords
Read only. longitude double The user's current longitude, in degrees. Read only. altitude double The user's current altitude, in meters. ...
nsIDOMGeoPositionErrorCallback
The nsIDOMGeoPositionErrorCallback interface is used to represent an object that receives callback notifications when geolocation errors occur. dom/interfaces/geolocation/nsIDOMGeoPositionErrorCallback.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Method overview void handleEvent(in nsIDOMGeoPositionError position); Methods handleEvent() Called to handle a geolocation error. void handleEvent( in nsIDOMGeoPosition position ); Parameters position The error that occurred, as an nsIDOMGeoPositionError object. ...
nsIDOMGeoPositionOptions
The nsIDOMGeoPositionOptions interface is used to specify options for geolocation operations. dom/interfaces/geolocation/nsIDOMGeoPositionOptions.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Inherits from: nsISupports Attributes Attribute Type Description enableHighAccuracy boolean If true, high accuracy mode is used. timeout unsigned long Maximum time in milliseconds before giving up on an attempt to retrieve location information. ...
nsIDOMHTMLAudioElement
The nsIDOMHTMLAudioElement interface is used to implement the HTML5 <audio> element. dom/interfaces/html/nsIDOMHTMLAudioElement.idlScriptable Please add a summary to this article. Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Inherits from: nsIDOMHTMLMediaElement Method overview unsigned long long mozCurrentSampleOffset(); void mozSetup(in PRUint32 channels, in PRUint32 rate); [implicit_jscontext] unsigned long mozWriteAudio(in jsval data); Methods mozCurrentSampleOffset() 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 futu...
nsIDOMHTMLTimeRanges
ments the DOM TimeRanges interface. Each time range represented by an nsIDOMHTMLTimeRanges object has an index number; you call the start() and end() methods to obtain the start and end times of each range, specifying the index number of the range to look up. dom/interfaces/html/nsIDOMHTMLTimeRanges.idlScriptable Please add a summary to this article. Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Inherits from: nsISupports Method overview float start(in unsigned long index); float end(in unsigned long index); Attributes Attribute Type Description length unsigned long The number of ranges represented by the nsIDOMHTMLTimeRanges object. Read only. Methods end() Returns the time offset to the end of the specified time range. float end( in unsigned ...
nsIDOMMouseScrollEvent
dom/interfaces/events/nsIDOMMouseScrollEvent.idlScriptable This interface represents a mouse scroll wheel event. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsIDOMMouseEvent Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Gecko 1.9.2 note Prior to Gecko 1.9.2, this inherited from nsISupports instead of from nsIDOMMouseEvent. Method overview void initMouseScrollEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMAbstractView viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in nsIDOMEventTarget relatedTarget...
nsIDOMMozNetworkStatsData
dom/network/interfaces/nsIDOMNetworkStats.idlScriptable Represents a single record in the network statistics database, as reported using the nsIDOMMozNetworkStatsManager interface. 1.0 66 Introduced Gecko 18.0 Inherits from: nsISupports Last changed in Gecko 18.0 (Firefox 18.0 /
Thunderbird 18.0 / SeaMonkey 2.15) Attributes Attribute Type Description rxBytes unsigned long The number of bytes received on the connection. Read only. txBytes unsigned long The number of bytes transmitted on the connection. Read only. date Date The date of the sample. Read only. ...
nsIDOMMozNetworkStatsManager
NOTE: Gecko is a fast evolving project. Please check dom/network/interfaces/nsIDOMNetworkStatsManager.idl to make sure this data is accurate. dom/network/interfaces/nsIDOMNetworkStatsManager.idlScriptable Interface that provides access to network usage statistics. Inherits from: nsISupports Last changed in Gecko 18.0 (Firefox 18.0 /
Thunderbird 18.0 / SeaMonkey 2.15) Implemented by: @mozilla.org/networkStatsManager;1. To create an instance, use: var networkStatsManager = Components.classes["@mozilla.org/networkStatsManager;1"] .createInstance(Components.interfaces.nsIDOMNetworkStatsManager); Furthermore, the NetworkStatsManager is published through a mozNetworkStats child object within the navigator object. If the object exists, you can use the Network St...
nsIDOMMozTouchEvent
s provides a mechanism for working with events from touch screens. This differs from tracking mouse events in that touch events can be generated independently for each finger touching the screen. This lets you process multi-finger touch gestures and actions. dom/interfaces/events/nsIDOMMozTouchEvent.idlScriptable Please add a summary to this article. ...
nsIDOMNavigatorDesktopNotification
dom/interfaces/notification/nsIDOMNavigatorDesktopNotification.idlScriptable Property that extends the navigator object. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Property that extends the navigator object. Attributes Attribute Type Description mozNotification nsIDOMDesktopNotificationCenter Read only. See also nsIDOMDesktopNotificationCenter ...
nsIDOMOfflineResourceList
application cache that allows web content's resources to be cached locally for use while offline. It includes methods for adding resources to and removing resources from the cache, as well as for enumerating the dynamically managed resource list. dom/interfaces/offline/nsIDOMOfflineResourceList.idlScriptable Please add a summary to this article. ...
nsIDOMOrientationEvent
The nsIDOMOrientationEvent interface describes the event that can be delivered to DOM windows, providing information from the device's accelerometer, allowing code to determine the orientation of the device. dom/interfaces/events/nsIDOMOrientationEvent.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Inherits from: nsIDOMEvent Method overview void initOrientationEvent(in DOMString eventTypeArg, in boolean canBubbleArg, in boolean cancelableArg, in double x, in double y, in double z); Attributes Attribute Type Description x double The amount of tilt along the X axis. Read only. y double The amount of tilt along the Y axis. Read only. z double The amount of tilt along the Z...
nsIDOMProgressEvent
dom/interfaces/events/nsIDOMProgressEvent.idlScriptable This interface represents the events sent with progress information while uploading data using the XMLHttpRequest object. 1.0 66 Introduced Gecko 1.9.1 Deprecated Gecko 22 Inherits from: nsIDOMEvent Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) The nsIDOMProgressEvent is used in the media elements (<video> and <audio>) to inform interested code of the progress of the media download. This implementation is a placeholder until the specification is complete, and is compatible with the WebKit ProgressEvent. Method overview void initProgressEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in boolean lengthComputableArg, in unsigned lon...
nsIDOMSimpleGestureEvent
dom/interfaces/events/nsIDOMSimpleGestureEvent.idlScriptable This interface describes a mouse or trackpad gesture event. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsIDOMMouseEvent Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) The nsIDOMSimpleGestureEvent interface is the datatype for all Mozilla-specific simple gesture events in the Document Object Model. The following events are generated: MozSwipeGesture - Generated when the user completes a swipe across across the input device. MozMagnifyGestureStart - Generated when the user begins the magnify ("pinch") gesture. The "delta" value represents the initial movement. MozMagnifyGestureUpdate - Generated periodically while the user is continuing the magnify ("pinch") gesture. The "d...
nsIDOMStorage
dom/interfaces/storage/nsIDOMStorage.idlScriptable This interface represents the storage space used for session storage in the DOM. Items stored in session storage may be accessed by any interested party in the same browsing context. 1.0 66 Introduced Gecko 1.8.1 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) A DOM window's session storage object can be retrieved from the window's sessionStorage attribute. A storage object stores an arbitrary set of key-value pairs, which may be retrieved, modified and removed as needed. A key may only exist once within a storage object, and only one value may be associated with a particular key. Keys are stored in a particular order with the condition that this order not cha...
nsIDOMStorage2
storage space used for local storage in the DOM. Items stored in local storage may only be accessed by the same origin that created the items in the first place. A DOM window's local storage object can be retrieved from the window's localStorage attribute. dom/public/idl/storage/nsIDOMStorage2.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Inherits from: nsISupports Method overview void clear(); DOMString getItem(in DOMString key); DOMString key(in unsigned long index); void removeItem(in DOMString key); void setItem(in DOMString key, in DOMString data); Attributes Attribute Type Description length unsigned long The number of keys stored in local storage. Methods clear() Clears the cont...
nsIDOMStorageEventObsolete
Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. dom/interfaces/storage/nsIDOMStorageEventObsolete.idlScriptable This interface represents an event that occurs to notify interested parties about changes to the contents of a DOM storage space; it is used for both session storage and local storage. 1.0 66 Introduced Gecko 1.8 Obsolete Gecko 2.0 Inherits from: nsIDOMEvent Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) When a DOM storage event is received, the recipient can check its domain attribute to determine which domain's data store has changed. If the value...
nsIDOMStorageItem
dom/interfaces/storage/nsIDOMStorageItem.idlScriptable This interface represents an object in DOM storage. This is for session storage. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Gecko 1.9.1 note Starting in Gecko 1.9.1 (Firefox 3.5), this is only used for session storage; previously, it was also used for global storage. Attributes Attribute Type Description secure boolean If true, the item was stored for an HTTPS page. Note: All items, regardless of whether they were stored for an HTTP page or an HTTPS page, are visible from HTTPS pages. However, HTTP pages can only see items stored from HTTP pages, and will not see items stored from HTTPS pages. As such, this attribute...
nsIDOMStorageList
dom/interfaces/storage/nsIDOMStorageList.idlScriptable This interface is used to access the contextual storage areas used by globalStorage by domain. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview nsIDOMStorage namedItem(in DOMString domain); Methods namedItem() Called when the list of available access points changes. nsIDOMStorage namedItem( in DOMString domain ); Parameters domain The name of the domain for whom to return the storage object. Return value The nsIDOMStorage object representing the data store for the specified domain.See also DOM Storage Structured client-side storage (HTML 5 specification) nsIDOMWindow ...
nsIDOMStorageManager
dom/interfaces/storage/nsIDOMStorageManager.idlScriptable This interface provides methods for managing data stored in the offline apps cache. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Implemented by @mozilla.org/dom/storagemanager;1 as a service: var domStorageManager = Components.classes["@mozilla.org/dom/storagemanager;1"] .getService(Components.interfaces.nsIDOMStorageManager); Method overview void clearOfflineApps(); nsIDOMStorage getLocalStorageForPrincipal(in nsIPrincipal aPrincipal, in DOMString aDocumentURI); long getUsage(in AString aOwnerDomain); Methods clearOfflineApps() Clears keys owned by offline applications. All data owned by...
nsIDOMStorageWindow
dom/interfaces/storage/nsIDOMStorageWindow.idlScriptable This interface provides access to a DOM window's client side storage objects. All DOM windows inherit from this interface. 1.0 66 Introduced Gecko 1.8.1 Obsolete Gecko 8.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) In Gecko 8.0 this interface has been merged into nsIDOMWindow, and this interface has been removed. Attributes Attribute Type Description globalStorage nsIDOMStorageList Global storage, accessible by domain. Read only. localStorage nsIDOMStorage Local storage for the current browsing context. Data stored in local storage may only be accessed from the same origin that inserted the ...
nsIDOMWindow
idlScriptable This interface is the primary interface for a window object. It represents a single window object that may contain child windows if the document in the window contains an HTML frameset document, or if the document contains iframe elements. 66 Introduced Gecko 1.0 Deprecated Gecko 44 Inherits from: nsISupports Last changed in Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4) Starting with Firefox 44, this file is empty as its features were either no longer used or are only available from C++ code; see dom/base/nsPIDOMWindow.h for those. While this interface is not officially defined by any standard bodies, it originates from the de-facto DOM Level 0 standard. Starting in Firefox 3, DOM windows are actually based on nsIDOMWindow2, which is a...
nsIDebug2
xpcom/base/nsIDebug2.idlScriptable Adds access to additional information in debug builds of Mozilla code by expanding upon the features in nsIDebug 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsIDebug Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Attributes Attribute Type Description assertionCount long The number of assertions since process start. This is normally zero in release builds, but does include calls to nsIDebug.assertion(). Read only. isDebugBuild boolean Whether XPCOM was compiled with DEBUG defined. This often correlates to whether other code (for example, Firefox, XULRunner) was compiled with DEBUG defined. Read only. See also nsIDebug ...
nsIDeviceMotion
xpcom/system/nsIDeviceMotion.idlScriptable This interface is used to implement accelerometer support. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Note: This interface was named nsIDeviceMotion prior to Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3). Method overview void addListener(in nsIDeviceMotionListener aListener); void addWindowListener(in nsIDOMWindow aWindow); Native code only! void removeListener(in nsIDeviceMotionListener aListener); void removeWindowListener(in nsIDOMWindow aWindow); Native code only! Methods addListener() When called, the accelerometer support implementation must begin to notify the specified nsIDeviceMotionListener by calli...
nsIDeviceMotionListener
xpcom/system/nsIDeviceMotion.idlScriptable This interface can be implemented by clients that want to be notified orientation or acceleration changes on supported devices. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Method overview void onMotionChange(in nsIDeviceMotionData aMotionData); Methods onMotionChange() Called when new orientation or acceleration data is available. void onMotionChange( in nsIDeviceMotionData aMotionData ); Parameters aAcceleration The nsIDeviceMotionData object describing updated motion information. See also MozOrientation nsIDOMOrientationEvent nsIDeviceMotion nsIDeviceMotionData ...
nsIDialogCreator
embedding/base/nsIDialogCreator.idlScriptable Please add a summary to this article. ...
nsIDictionary
extensions/xml-rpc/idl/nsIDictionary.idlScriptable A simple mutable table of objects, maintained as key/value pairs. Objects can be located and managed by referencing them by key. 66 Introduced Gecko 1.0 Obsolete Gecko 1.9.1 Inherits from: nsISummary Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Note: This interface was removed in Firefox 3.5; use Dict.jsm instead. See bug 668424 for further information. Method overview boolean hasKey(in string key); void getKeys(out PRUint32 count, [retval, array, size_is(count)] out string keys); nsISupports getValue(in string key); void setValue(in string key, in nsISupports value); nsISupports deleteValue(in string key); void clear(); ...
nsIDirIndexListener
netwerk/streamconv/public/nsIDirIndexListener.idlScriptable This interface is used to receive contents of directory index listings from a protocol. They can then be transformed into an output format (such as rdf, html and so on) Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void onIndexAvailable(in nsIRequest aRequest, in nsISupports aCtxt, in nsIDirIndex aIndex); void onInformationAvailable(in nsIRequest aRequest, in nsISupports aCtxt, in AString aInfo); Methods onIndexAvailable() Called for each directory entry. void onIndexAvailable( in nsIRequest aRequest, in nsISupports aCtxt, in nsIDirIndex aIndex ); Parameters aRequest The request. aCtxt Opaque parameter aIndex New index to add. onInformatio...
nsIDirectoryEnumerator
ctoryEnumerator.idlScriptable This interface provides a means for enumerating the contents of a directory. It is similar to nsISimpleEnumerator except the retrieved entries are QI'ed to nsIFile, and there is a mechanism for closing the directory when the enumeration is complete. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void close(); Attributes Attribute Type Description nextFile nsIFile The next file in the sequence. The nextFile attribute is the first element upon the first call. This attribute is null if there is no next element. Read only. Methods close() Closes the directory being enumerated, releasing the system resour...
nsIDirectoryIterator
The nsIDirectoryIterator interface provides a way to iterate over the entries in a directory. xpcom/obsolete/nsIFileSpec.idlScriptable Please add a summary to this article. ...
nsIDiskCacheStreamInternal
netwerk/cache/nsIDiskCacheStreamInternal.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void closeInternal(); Methods closeInternal() We use this method internally to close nsDiskCacheOutputStream under the cache service lock. void closeInternal(); Parameters None. ...
nsIDownload
f Firefox 26. Please use Downloads.jsm instead. toolkit/components/downloads/public/nsIDownload.idlScriptable This interface describes a download object. Download objects are used by the Download Manager (see nsIDownloadManager to manage files that are queued to download, being downloaded, and finished being downloaded.) Inherits from: nsITransfer Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Note: Once the download is completed, the Download Manager stops updating the nsIDownload object. Completed states are nsIDownloadManager::DOWNLOAD_FINISHED, nsIDownloadManager::DOWNLOAD_FAILED, and nsIDownloadManager::DOWNLOAD_CANCELED. Attributes Attribute Type Description amountTransferred long long The number of bytes downloaded so far. R...
nsIDragDropHandler
opHandler is an interface for communicating with the built-in drag and drop implementation in the content area. Use this to register where the listeners should attach (something that implements nsPIDOMEventTarget which is what we end up using under the hood). content/base/public/nsIDragDropHandler.idlScriptable Please add a summary to this article. Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Inherits from: nsISupports Method overview void detach(); void hookupTo(in nsIDOMEventTarget attachPoint, in nsIWebNavigation navigator); Methods detach() Unregisters all handlers related to drag and drop. void detach(); Parameters None. hookupTo() Attaches drag handlers to a specified receiver, setting up callbacks to let built-in behaviors be overridden. void hook...
nsIDragSession
widget/public/nsIDragSession.idlScriptable Provides support for interacting with an ongoing drag session during a drag and drop operation. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void getData( in nsITransferable aTransferable, in unsigned long aItemIndex ); boolean isDataFlavorSupported( in string aDataFlavor ); Attributes Attribute Type Description canDrop boolean Set the current state of the drag, whether it can be dropped or not. Usually the target "frame" sets this so the native system can render the correct feedback. dataTransfer nsIDOMDataTransfer The data transfer object for the current drag operation. dragAction unsigne...
nsIDroppedLinkHandler
dom/base/nsIDroppedLinkHandler.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview boolean canDropLink(in nsIDOMDragEvent aEvent, in PRBool aAllowSameDocument); AString dropLink(in nsIDOMDragEvent aEvent, out AString aName, [optional] in boolean aDisallowInherit); void dropLinks(in nsIDOMDragEvent aEvent, [optional] in boolean aDisallowInherit, [optional] out unsigned long aCount, [retval, array, size_is(aCount)] out nsIDroppedLinkItem aLinks); Methods canDropLink() Determines if a link being dragged can be dropped. boolean canDropLink( in nsIDOMDragEvent aEvent, in PRBool aAllowSameD...
nsIDroppedLinkItem
dom/base/nsIDroppedLinkHandler.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Attributes Attribute Type Description url DOMString URL of the dropped link. name DOMString Name of the dropped link. type DOMString MIME-Type of the dropped link. See also nsIDroppedLinkHandler ...
nsIEditorMailSupport
editor/idl/nsIEditorMailSupport.idlScriptable Provides simple editing actions for the
Thunderbird mail editor. Inherits from: nsISupports Last changed in Gecko 1.7 Method overview nsISupportsArray getEmbeddedObjects(); nsIDOMNode insertAsCitedQuotation(in AString aQuotedText, in AString aCitation, in boolean aInsertHTML); nsIDOMNode insertAsQuotation(in AString aQuotedText); void insertTextWithQuotations(in DOMString aStringToInsert); void pasteAsCitedQuotation(in AString aCitation, in long aSelectionType); void pasteAsQuotation(in long aSelectionType); void rewrap(in boolean aRespectNewlines); void stripCites(); Methods getEmbeddedObjects() Get a list of IMG and OBJECT tags in the current document. nsISupportsArray getEmbeddedObjects(); Parameters None. Return va...
nsIEffectiveTLDService
nsIIDNService and is thrown when aHost contains characters disallowed in URIs. NS_ERROR_INSUFFICIENT_DOMAIN_LEVELS This exception is thrown if there were insufficient subdomain levels in the hostname to satisfy the requested aAdditionalParts value. NS_ERROR_HOST_IS_IP_ADDRESS This exception is thrown if aHost is a numeric IPv4 or IPv6 address. Remarks Note: Prior to Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1), this method worked if you passed host strings starting with a period ("."). That is no longer the case, since these are not valid host names. You should strip leading periods off host names before passing them to this method. getPublicSuffix() Returns the public suffix of a URI. A public suffix is the highest-level domain under which individual domains may be registered; ...
nsIEventListenerInfo
ents/public/nsIEventListenerService.idlScriptable An instance of this interface describes how an event listener was added to an event target; these are returned by nsIEventListenerService.getListenerInfoFor, which provides a list of all the listeners to a given event target. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Method overview nsISupports getDebugObject(); AString toSource(); Attributes Attribute Type Description allowsUntrusted boolean Indicates whether or not the event listener allows untrusted events. Read only. capturing boolean Indicates whether or not the event listener is in capture mode. Read only. i...
nsIEventListenerService
content/events/public/nsIEventListenerService.idlScriptable A service that can be used to get a list of listeners observing events; this is primarily useful for debuggers. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4) Implemented by: @mozilla.org/eventlistenerservice;1. To create an instance, use: var eventListenerService = Components.classes["@mozilla.org/eventlistenerservice;1"] .getService(Components.interfaces.nsIEventListenerService); UniversalXPConnect privileges are required to use this service. Method overview void getEventTargetChainFor(in nsIDOMEventTarget aEventTarget, [optional] out unsigned long aCount, [retval, array, siz...
nsIExternalURLHandlerService
uriloader/exthandler/nsIExternalURLHandlerService.idlScriptable The external URL handler service is used for finding platform-specific applications for handling particular URLs. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview nsIHandlerInfo getURLHandlerInfoFromOS(in nsIURI aURL, out boolean aFound); Methods getURLHandlerInfoFromOS() Given a URL, looks up the handler info from the operating system. This should be overridden by each operating systems implementation. nsIHandlerInfo getURLHandlerInfoFromOS( in nsIURI aURL, out boolean aFound ); Parameters aURL The URL we are looking for. aFound Was an operating system default handler for this URL found? Return val...
nsIFaviconDataCallback
toolkit/components/places/public/nsIFaviconService.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void onComplete(in nsIURI aURI, in unsigned long aDataLen, [const,array,size_is(aDataLen)] in octet aData, in AUTF8String aMimeType); Methods onComplete() Called when the required favicon's information is available. It's up to the invoking method to state if the callback is always invoked, or called on success only. Check the method documentation to ensure that. The caller will receive the most information we can gather on the icon, but it's not guaranteed that all of them will be set. For some method...
nsIFeed
toolkit/components/feeds/public/nsIFeed.idlScriptable This interface represents a single Atom or RSS (Really Simple Syndication) news feed. It includes attributes that provide information about the feed, as well as access to the items or entries in the feed. 1.0 66 Introduced Gecko 1.8 Inherits from: nsIFeedContainer Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Attributes Attribute Type Description cloud nsIWritablePropertyBag2 The cloud element on a feed is used to identify the API endpoint of an rssCloud ping server, which distributes notifications of changes to this feed. enclosureCount long Indicates the number of enclosures associated with a feed. generator nsIFeedGenerator ...
nsIFeedContainer
categories nsIArray An array of the categories found in a feed or entry. Note: The returned array will contain nsIFeedCategory objects, except that interface has not been implemented yet. contributors nsIArray An array of nsIFeedPerson ...
nsIFeedElementBase
toolkit/components/feeds/public/nsIFeedElementBase.idlScriptable This interface is a base interface from which several of the other feed access interfaces derive. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Attributes Attribute Type Description attributes nsISAXAttributes All the attributes found on the element. Most derived interfaces provide convenience accessors for their standard fields, so this is only useful when looking for nonstandard fields. baseURI nsIURI The base URI for the entry or feed. Interwiki link ...
nsIFeedEntry
toolkit/components/feeds/public/nsIFeedEntry.idlScriptable This interface describes a single entry in an RSS or Atom news feed, providing attributes allowing access to the entry's data. 1.0 66 Introduced Gecko 1.8 Inherits from: nsIFeedContainer Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Attributes Attribute Type Description content nsIFeedTextConstruct The full text of the entry's content. This comes from the atom:content and/or content:encoded fields. enclosures nsIArray An array of all the enclosures included in the entry. These are used by podcasts, photocasts, and so forth. mediaContent nsIArray An array of all the enclosures or other media that might be displayed inline...
nsIFeedGenerator
toolkit/components/feeds/public/nsIFeedGenerator.idlScriptable This interface describes the software that generated an RSS or Atom news feed. 1.0 66 Introduced Gecko 1.8 Inherits from: nsIFeedElementBase Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Attributes Attribute Type Description agent AString The name of the software that created the feed. uri nsIURI A URI associated with the generator software. version AString A string indicating the version of the generator software that created the feed. Interwiki link ...
nsIFeedPerson
toolkit/components/feeds/public/nsIFeedPerson.idlScriptable This interface describes an author of or a contributor to an RSS or Atom feed. 1.0 66 Introduced Gecko 1.8 Inherits from: nsIFeedElementBase Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Attributes Attribute Type Description email AString The person's email address. name AString The name of the person. uri nsIURI A URI associated with the person; this is most likely the person's home page. See also nsIFeedElementBase Interwiki link ...
nsIFeedProcessor
toolkit/components/feeds/public/nsIFeedProcessor.idlScriptable This interface parses RSS or Atom feeds, triggering callbacks based on their contents during and after the processing. 1.0 66 Introduced Gecko 1.8.1 Inherits from: nsIStreamListener Last changed in Gecko 1.8.1 (Firefox 2 /
Thunderbird 2 / SeaMonkey 1.1) Implemented by: @mozilla.org/feed-processor;1. To create an instance, use: var feedProcessor = Components.classes["@mozilla.org/feed-processor;1"] .createInstance(Components.interfaces.nsIFeedProcessor); Method overview void parseAsync(in nsIRequestObserver requestObserver, in nsIURI uri); void parseFromStream(in nsIInputStream stream, in nsIURI uri); void parseFromString(in AString str, in nsIURI uri); ...
nsIFeedProgressListener
dlScriptable This interface defines callbacks used during the processing of an RSS or Atom feed. Programs using the feed content access API do not have to implement any of these callbacks; they are optional, but allow you to provide feedback during the parsing process. 1.0 66 Introduced Gecko 1.8 Inherits from: nsIFeedResultListener Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void handleEntry(in nsIFeedEntry entry, in nsIFeedResult result); void handleFeedAtFirstEntry(in nsIFeedResult result); void handleStartFeed(in nsIFeedResult result); void reportError(in AString errorText, in long lineNumber, in boolean bozo); Methods handleEntry() Called after each entry or item is processed. If...
nsIFeedResult
toolkit/components/feeds/nsIFeedResult.idlScriptable This interface provides access to HTTP and parsing metadata for a feed or entry. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void registerExtensionPrefix(in AString aNamespace, in AString aPrefix); Attributes Attribute Type Description bozo boolean The feed processor sets the bozo bit when a feed triggers a fatal error during XML parsing. There may still be feed metadata and entries that were parsed before the error occurred. doc nsIFeedContainer The parsed feed or entry. null if a non-feed was processed. headers nsIProperties The HTTP re...
nsIFeedResultListener
toolkit/components/feeds/public/nsIFeedListener.idlScriptable This interface should be implemented by programs to receive events from the feed parser as parsing progresses. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void handleResult(in nsIFeedResult result); Methods handleResult() Called when feed processing is complete. Even if an error occurred during processing, there may be valid data available for feed-level data or entries processed before the error occurred. If you don't care about doing progress display or the like, this is all you need to implement in order to receive the parsed feed. void handleResult( in nsIFeedResult result ); Pa...
nsIFeedTextConstruct
kit/components/feeds/public/nsIFeedTextConstruct.idlScriptable This interface represents RSS or Atom feed text fields that may contain plain text, HTML, or XHTML. Some extension elements also include "type" parameters, and this interface could be used to represent those as well. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8.1 (Firefox 2 /
Thunderbird 2 / SeaMonkey 1.1) Implemented by: @mozilla.org/feed-textconstruct;1, but users usually don't need to create instances of this directly. Various other feed-related interfaces, such as nsIFeed, nsIFeedEntry, and nsIFeedContainer have attributes that return objects implementing nsIFeedTextConstruct. Method overview nsIDOMDocumentFragment createDocumentFragment(in nsIDOMElement element)...
nsIFileProtocolHandler
netwerk/protocol/file/nsIFileProtocolHandler.idlScriptable This interface provides methods to convert between nsIFile and nsIURI. It also provides access to Internet shortcuts stored on the host operating system's file system. Inherits from: nsIProtocolHandler Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Method overview nsIFile getFileFromURLSpec(in AUTF8String url); AUTF8String getURLSpecFromActualFile(in nsIFile file); AUTF8String getURLSpecFromDir(in nsIFile file); AUTF8String getURLSpecFromFile(in nsIFile file); nsIURI newFileURI(in nsIFile aFile); nsIURI readURLFile(in nsIFile file); Methods getFileFromURLSpec() Converts the URL string into the corresponding nsIFile if possible. A local file wi...
nsIFileURL
netwerk/base/public/nsIFileURL.idlScriptable Provides access to the underlying nsIFile object corresponding to a URL. The URL scheme need not be file:, since other local protocols may map URLs to files (e.g., resource:). Inherits from: nsISupports Last changed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Attributes Attribute Type Description file nsIFile Get/Set nsIFile corresponding to this URL. The getter returns a reference to an immutable object. Callers must clone before attempting to modify the returned nsIFile object. Note: This constraint might not be enforced at runtime, so beware! The setter clones the nsIFile object (allowing the caller to safely modify the nsIFile object after setting it on this interface). ...
nsIFormHistory2
toolkit/components/satchel/public/nsIFormHistory.idlScriptable A service which holds a set of name/value pairs. The names correspond to form field names, and the values correspond to values the user has submitted. So, several values may exist for a single name. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Note: This interface provides no means to access stored values. Stored values are used by the FormFillController to generate autocomplete matches. Method overview void addEntry(in AString name, in AString value); boolean entryExists(in AString name, in AString value); boolean nameExists(in AString name); void removeAllEntries(); void removeEntriesByTimeframe(in lon...
nsIFrameLoader
content/base/public/nsIFrameLoader.idlScriptable Handles loading a frame. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Note: This interface works in tandem with the nsIContentView interface to manage frames across processes if Electrolysis is in use to support per-frame processes. Method overview void activateFrameEvent(in AString aType, in boolean capture); void activateRemoteFrame(); void destroy(); void loadFrame(); void loadURI(in nsIURI aURI); void sendCrossProcessKeyEvent(in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, [optional] in boolean aPreventDefault); void sendCrossProcess...
nsIFrameMessageListener
content/base/public/nsIMessageManager.idlScriptable Implement this interface in a remote frame handling process to receive messages from the browser process. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) This interface is used when implementing out-of-process handling of frames; the process handling a frame should implement this interface in order to receive messages. Method overview void receiveMessage(); Methods receiveMessage() Note: This method is for JavaScript only. Called to deliver a message to the frame handling process; called with one parameter, which has the following properties: name The name of the message. sync A bool...
nsIFrameMessageManager
content/base/public/nsIMessageManager.idlScriptable Provides methods for managing message listeners on local frames. This provides a way for local frames to receive messages from remote frames. 1.0 66 Introduced Gecko 2.0 Obsolete Gecko 17.0 Inherits from: nsISupports Last changed in Gecko 17.0 (Firefox 17.0 /
Thunderbird 17.0 / SeaMonkey 2.14) This interface is obsolete and was removed in Firefox 17. You should use nsIMessageListenerManager or nsIMessageSender instead. Method overview void addMessageListener(in AString aMessage, in nsIFrameMessageListener aListener, [optional] in boolean listenWhenClosed); void removeMessageListener(in AString aMessage, in nsIFrameMessageListener aListener); void sendAsyncMessage(in ...
nsIGSettingsCollection
xpcom/system/nsIGSettingsService.idlScriptable Please add a summary to this article. ...
nsIGSettingsService
xpcom/system/nsIGSettingsService.idlScriptable Please add a summary to this article. ...
nsIGeolocationUpdate
xpcom/system/nsIGeolocationProvider.idlScriptable Provides a way for a geolocation provider to notify the system that a new location is available. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Interface provides a way for a geolocation provider to notify the system that a new location is available. Method overview void update(in nsIDOMGeoPosition position); Methods update() Notify the geolocation service that a new geolocation has been discovered. Note: This must be called on the main thread. void update( in nsIDOMGeoPosition position ); Parameters position A nsIDOMGeoPosition object describing the updated position information. See also Using geolocation nsIGeolocationP...
nsIHTMLEditor
editor/idl/nsIHTMLEditor.idlScriptable Please add a summary to this article. ...
nsIHapticFeedback
xpcom/system/nsIHapticFeedback.idlScriptable Implemented to provide support for haptic feedback (that is, vibration support). ...
nsIHttpActivityDistributor
netwerk/protocol/http/nsIHttpActivityObserver.idlScriptable This interface is used to register and unregister clients that wish to observe HTTP transport activity. This is primarily useful for debuggers and other traffic monitoring tasks. ...
nsIHttpActivityObserver
netwerk/protocol/http/nsIHttpActivityObserver.idlScriptable This interface provides a way for http transport activities to be reported to observers. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void observeActivity(in nsISupports aHttpChannel, in PRUint32 aActivityType, in PRUint32 aActivitySubtype, in PRTime aTimestamp, in PRUint64 aExtraSizeData, in ACString aExtraStringData); Attributes Attribute Type Description isActive boolean true when the interface is active and should observe HTTP activity, otherwise false. If this is false, the observeActivity() method should not be called. Read only. Note: This attribute is present only for compatibility and shou...
nsIHttpChannelInternal
netwerk/protocol/http/nsIHttpChannelInternal.idlScriptable An internal interface for HTTP channels. Using features exposed by this interface is not recommended, as it will change in unpredictable ways. ...
nsIHttpUpgradeListener
netwerk/protocol/http/nsIHttpChannelInternal.idlScriptable The callback interface for nsIHttpChannelInternal.HTTPUpgrade; this is called when an HTTP protocol upgrade is finished. 1.0 66 Introduced Gecko 6.0 Inherits from: nsISupports Last changed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) This is used, for example, by WebSockets in order to upgrade an HTTP channel to use the WebSocket protocol. Method overview void onTransportAvailable(in nsISocketTransport aTransport, in nsIAsyncInputStream aSocketIn, in nsIAsyncOutputStream aSocketOut); Methods onTransportAvailable() Called when an HTTP protocol upgrade attempt is completed, passing in the information needed by the protocol handler to take over the channel that is no longer being u...
nsIINIParser
Also, if you need to write to an INI file, use nsIINIParserWriter. ...
nsIINIParserFactory
Method overview nsIINIParser createINIParser(in nsILocalFile aINIFile); Methods createINIParser() Creates an INI parser, returning the nsIINIParser object that you can use to parse it. ...
nsIINIParserWriter
nsIINIParserWriter xpcom/ds/nsIINIParser.idlScriptable Allows writing to an INI-format configuration file. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10) This interface provides methods that allow writing to INI-format configuration files. INI files contain zero or more sections, denoted by a name in square brackets, followed by zero or more lines of text with a property name on the left, then an equals sign ("="), then the value of the property. To create an nsIINIParserWriter object, you use the nsIINIParserFactory interface to create a parser, then nsISupports.QueryInterface() that to get an nsIINIParserWriter, like this: let writer = Components.classes["@mozilla.org/...
nsIIdleService
widget/nsIIdleService.idlScriptable The idle service lets you monitor how long the user has been 'idle', that is they have not used their mouse or keyboard. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 16 (Firefox 16 /
Thunderbird 16 / SeaMonkey 2.13) You can get the idle time directly, but in most cases you will want to register an observer for a predefined interval. The observer will get an 'idle' notification when the user is idle for that interval (or longer), and receive a 'back' (Gecko 3 to 15) or 'active' (Gecko 16+) notification when the user starts using their computer again. Note: The idle service is for computer-wide idle detection, not just application idle detection. In other words, even if the user is working i...
nsIInputStream
A blocking input stream may suspend the calling thread in order to satisfy a call to close(), available(), read(), or readSegments(). A non-blocking input stream, on the other hand, must not block the calling thread of execution. ...
nsIInstallLocation
toolkit/mozapps/extensions/public/nsIExtensionManager.idlScriptable Interface representing a location where extensions, themes and so on are installed. 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>. You can get the install location of a particular add-on using nsIExtensionManager interface: var il = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Compo...
nsIJetpack
js/jetpack/nsIJetpack.idlScriptable This interface enables communication between the chrome process and a remote Jetpack process. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void sendMessage(in AString aMessageName /* [optional] in jsval v1, [optional] in jsval v2, ... */); void registerReceiver(in AString aMessageName, in jsval aReceiver); void unregisterReceiver(in AString aMessageName, in jsval aReceiver); void unregisterReceivers(in AString aMessageName); void evalScript(in AString aScript); nsIVariant createHandle(); void destroy(); Methods sendMessage() This method asynchronously sends a message to the Jetpack process. void sendMessage( in AStr...
nsIJetpackService
js/jetpack/nsIJetpackService.idlScriptable This interface enables the creation of new Jetpack processes. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Implemented by: @mozilla.org/jetpack/service;1. Method overview nsIJetpack createJetpack(); Methods createJetpack() This method creates a new Jetpack process and returns an nsIJetpack interface that represents it. nsIJetpack createJetpack(); Parameters None. Return value An nsIJetpack interface representing the remote process. History See bug 556846 for details. See also nsIJetpack Jetpack Processes ...
nsIJumpListBuilder
Modifying an applied jump list is not permitted. Callers should begin the creation of a new jump list using initListBuild(), add sub lists using addListToBuild(), then commit the jump list using commitListBuild(). ...
nsIJumpListItem
To add types, create the specific interface here, add an implementation class to WinJumpListItem, and add support to addListBuild and removed items processing. ...
nsILivemarkService
toolkit/components/places/public/nsILivemarkService.idlScriptable This interface is used to create and reload livemarks. You can also use this check whether something is a livemark or not. 1.0 66 Introduced Gecko 1.8 Obsolete Gecko 22.0 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) This interface is obsolete. Implemented by: @mozilla.org/browser/livemark-service;2. To use this service, use: var livemarkService = Components.classes["@mozilla.org/browser/livemark-service;2"] .getService(Components.interfaces.nsILivemarkService); Method overview long long createLivemark(in long long folder, in AString name, in nsIURI siteURI, in nsIURI feedURI, in long index); ...
nsILoginInfo
nsILoginInfo is an object containing information for a login stored by the Login Manager. To create and manage logins use nsILoginManager. toolkit/components/passwordmgr/public/nsILoginInfo.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Inherits from: nsISupports Implemented by: @mozilla.org/login-manager/loginInfo;1. To create an instance, use: var loginInfo = Components.classes["@mozilla.org/login-manager/loginInfo;1"] .createInstance(Components.interfaces.nsILoginInfo); Method overview nsILoginInfo clone(); boolean equals(in nsILoginInfo aLoginInfo); void init(in AString aHostname, in AString aFormSubmitURL, in AString aHttpRealm, in AString aUsername, in A...
nsILoginManagerCrypto
toolkit/components/passwordmgr/public/nsILoginManagerCrypto.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview AString decrypt(in AString cipherText); AString encrypt(in AString plainText); Attributes Attribute Type Description isLoggedIn boolean Current login state of the token used for encryption. If the user is not logged in, performing a crypto operation will result in a master password prompt. Read only. uiBusy boolean true when a master password prompt is being displayed. Read only. Methods decrypt() Decrypts the specified string, returning the plain text value. Can throw if the user cancels entry of t...
nsILoginManagerStorage
toolkit/components/passwordmgr/public/nsILoginManagerStorage.idlScriptable This interface is implemented by modules that wish to provide storage mechanisms for the Login Manager. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) For example, if you wish to provide operating system integration with a native password manager system, implementing and registering a storage module for the Login Manager is how you do it. See Creating a Login Manager storage module for details. Note: Extensions that simply want to access/store logins should use the Login Manager service and nsILoginManager interface instead. The Login Manager will handle selecting and using the correct nsILoginManangerStorage...
nsILoginMetaInfo
toolkit/components/passwordmgr/public/nsILoginMetaInfo.idlScriptable An object that contains metadata for logins stored by the Login Manager. This data can usually be ignored by most users of the Login Manager, which will create and maintain appropriate default values. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) You can specifically modify these values by passing changes into nsILoginManager.modifyLogin() using an nsIPropertyBag2 object as the input. Metadata properties are ignored when comparing logins. Attributes Attribute Type Description guid AString The GUID to uniquely identify the login. This can be any arbitrary string, but a format as created by nsIUUIDGenerator is rec...
nsIMacDockSupport
To create an instance, use: var dock = Components.classes["@mozilla.org/widget/macdocksupport;1"] .getService(Components.interfaces.nsIMacDockSupport); See Working with the Mac OS X Dock for details and examples. ...
nsIMemoryMultiReporter
xpcom/base/nsIMemoryReporter.idlScriptable Reports multiple memory measurements using a callback function that gets called once for each measurement. 1.0 66 Introduced Gecko 7.0 Inherits from: nsISupports Last changed in Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9) If you want to gather multiple measurements in a single operation (such as a single traversal of a large data structure), you can use a multi-reporter to do so. The callback, which must implement the nsIMemoryMultiReporterCallback interface, receives values that match the fields in the nsIMemoryReporter object. In order for a multi-reporter to gather and generate reports, you need to call collectReports(). This will call the specified callback's nsIMemoryMultiReporterCallback.callback...
nsIMemoryMultiReporterCallback
xpcom/base/nsIMemoryReporter.idlScriptable Implement this interface to handle callbacks from nsIMemoryMultiReporter instances. 1.0 66 Introduced Gecko 7.0 Inherits from: nsISupports Last changed in Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4) Method overview void callback(in ACString process, in AUTF8String path, in PRInt32 kind, in PRInt32 units, in PRInt64 amount, in AUTF8String description, in nsISupports closure); Methods callback() Called to provide information from a multi-reporter. Implement this method to handle the report information. void callback( in ACString process, in AUTF8String path, in PRInt32 kind, in PRInt32 units, in PRInt64 amount, in AUTF8String description, in nsISupports closure ); Parameters pro...
nsIMenuBoxObject
layout/xul/base/public/nsIMenuBoxObject.idlScriptable Represents the box object for a XUL menu. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) To get access to the box object for a given menu, use code like this: var boxObject = xulMenu.boxObject.QueryInterface(Components.interfaces.nsIMenuBoxObject); Method overview boolean handleKeyPress(in nsIDOMKeyEvent keyEvent); void openMenu(in boolean openFlag); Attributes Attribute Type Description activeChild nsIDOMElement The currently active menu or menuitem child of the menu box. openedWithKey boolean true if the menubar was opened using the keyboard; otherwise false. Note: For Gecko 2.0, the openedWithKey a...
nsIMessageListenerManager
dom/base/nsIMessageManager.idlScriptable This interface enables clients to listen for messages sent using the nsIMessageBroadcaster, nsIMessageSender, or nsISyncMessageSender interfaces. 1.0 66 Introduced Gecko 17 Inherits from: nsISupports Last changed in Gecko 41 (Firefox 41 /
Thunderbird 41 / SeaMonkey 2.38) Implemented by: @mozilla.org/globalmessagemanager;1. To access this service, use: var globalMM = Components.classes["@mozilla.org/globalmessagemanager;1"] .getService(Components.interfaces.nsIMessageListenerManager); Method overview void addMessageListener(in AString messageName, in nsIMessageListener listener, [optional] in boolean listenWhenClosed) void removeMess...
nsIMessageWakeupService
content/base/public/nsIMessageWakeupService.idlScriptable Implements the Message Manager wakeup service; this lets other components be woken up when specific Message Manager messages arrive. By using this service, you can avoid starting those components until they're needed. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Note: This service was introduced in Gecko 5.0 on Firefox for Android, but was not provided on desktop until Gecko 13.0 (Firefox 13). There is no IDL for this interface. The parentprocessmessagemanager is used for this, so messages send from childprocessmessagemanagers will be heard. Requesting wakeups To request a wakeup, a wakeup condition must be registered with the c...
nsIMessenger
er interface provides functions for managing the history, undo and redo operations, and for loading, saving, or deleting messages and attachments in mailnews. Inherits from: nsISupports Implemented by: @mozilla.org/messenger;1. To create an instance, use: messenger = Components.classes["@mozilla.org/messenger;1"] .createInstance(Components.interfaces.nsIMessenger); In
Thunderbird, a global nsIMessenger object is defined as messenger via the createMessenger function in mailWindow.js. Method overview void setDisplayCharset(in ACString aCharset); void setWindow(in nsIDOMWindow ptr, in nsIMsgWindow msgWindow); void openURL(in ACString aURL); void loadURL(in nsIDOMWindow ptr, in ACString aURL); void launchExternalURL(in ACString a...
nsIMicrosummary
s/places/public/nsIMicrosummaryService.idlScriptable This interface defines attributes and methods for dealing with microsummaries generated by an nsIMicrosummaryGenerator. 1.0 66 Introduced Gecko 1.8 Obsolete Gecko 6.0 Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Warning: Microsummary support was removed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Method overview void addObserver(in nsIMicrosummaryObserver observer); boolean equals(in nsIMicrosummary aOther); void removeObserver(in nsIMicrosummaryObserver observer); void update(); Attributes Attribute Type Description content AString The content of the microsummary. Since generators and pages can ...
nsIMicrosummaryGenerator
toolkit/components/places/public/nsIMicrosummaryService.idlScriptable This interface provides access to a microsummary that has been installed in Firefox. 1.0 66 Introduced Gecko 1.8 Obsolete Gecko 6.0 Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Warning: Microsummary support was removed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Method overview long calculateUpdateInterval(in nsIDOMNode aPageContent); boolean equals(in nsIMicrosummaryGenerator aOther); AString generateMicrosummary(in nsIDOMNode aPageContent); Attributes Attribute Type Description loaded boolean Has the generator itself (which may be a remote resource) been loaded. Read only. localURI nsIURI For generators installed by the user...
nsIMicrosummaryObserver
toolkit/components/places/public/nsIMicrosummaryService.idlScriptable This interface provides methods for observing changes to micrummaries. 1.0 66 Introduced Gecko 1.8 Obsolete Gecko 6.0 Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Warning: Microsummary support was removed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Method overview void onContentLoaded(in nsIMicrosummary microsummary); void onElementAppended(in nsIMicrosummary microsummary); void onError(in nsIMicrosummary microsummary); Methods onContentLoaded() Called when an observed microsummary updates its content. Since an observer might watch multiple microsummaries at the same time, the microsummary whose content has been updated gets passed t...
nsIMicrosummaryService
oolkit/components/places/public/nsIMicrosummaryService.idlScriptable This interface provides methods for managing installed microsummaries, and the bookmarks they apply to. ...
nsIMicrosummarySet
toolkit/components/places/public/nsIMicrosummaryService.idlScriptable This interface provides access to sets of microsummaries returned from the nsIMicrosummaryService. 1.0 66 Introduced Gecko 1.8 Obsolete Gecko 6.0 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Warning: Microsummary support was removed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Method overview void addObserver(in nsIMicrosummaryObserver observer); nsISimpleEnumerator Enumerate(); void removeObserver(in nsIMicrosummaryObserver observer); Methods addObserver() Add a microsummary observer to this microsummary set. Adding an observer to a set is the equivalent of...
Building an Account Manager Extension
turn false; }, QueryInterface: XPCOMUtils.generateQI([ Components.interfaces.nsIMsgAccountManagerExtension ]) } Step 2: Building a Component We convert the interface to a XPCOM Component and register it in the component manager as Account Manager Extension. Therefore we add the following code to the previous. The JavaScript file has to be saved either in the extension's or
Thunderbird's component directory. // Define the Contract information needed for this Component... // ... the Unique Component Identifier (change it if you copied this example!)... DevmoAccountManagerExtension.prototype.classID = Components.ID("{659ce960-9dfb-11dd-ad8b-0800200c9a55}"); // ... the description and ... DevmoAccountManagerExtension.prototype.classDescription = "Devmo Account Manager Extension...
nsIMsgAccountManagerExtension
An Account Manager Extension is a XPCOM compontent implementing this Interface. The interface is basically a manifest and defines the properties of the new Panel. A Panel consists of a XUL file with a Page Element as root element and the Property File containing the localized name. Note: The Account Manager relies on a very strong naming scheme to load and unload a panel. ...
nsIMsgDBViewCommandUpdater
The nsIMsgDBViewCommandUpdater interface controls changes that occur as the selection changes. mailnews/base/public/nsIMsgDBView.idl#349Scriptable Please add a summary to this article. Last changed in Gecko 1.9 (Firefox 3) Inherits from: nsISupports In
Thunderbird this is implemented for different windows in several different places: nsMsgDBViewCommandUpdater (for the standalone message window) nsMsgDBViewCommandUpdater (for the threadpane message window) nsMsgSearchCommandUpdater (for search dialogs) Method overview void updateCommandStatus(); void displayMessageChanged(in nsIMsgFolder aFolder, in AString aSubject, in ACString aKeywords); void updateNextMessageAfterDelete(); Methods updateCommandStatus() Called when the number of selected items changes. void updateC...
nsIMsgFolder
This page is out of date. Check //github.com/RealityRipple/UXP/blob/master/mailnews/base/public/nsIMsgFolder.idl for the newer methods (esp. isSpecialFolder and such). ...
nsIMsgProtocolInfo
canLoginAtStartUp boolean True if the account type can perform biff during startup. Read only. defaultDoBiff boolean True if the biff should be enabled by default for the account type. Read only. defaultLocalFilePath nsILocalFile The default path under which all server data for this account type will be stored. foldersCreateAsync boolean New in
Thunderbird 24 (bug 832034) preflightPrettyNameWithEmailAddress boolean Unused. Read only. requiresUsername boolean True if the server requires a username to log on. Read only. serverIID nsIIDPtr The IID of the server-specific interface, used during account creation. Read only. showComposeMsgLink boolean True if Compose UI actions should be enabled ...
nsIMsgSearchSession
To create an instance, use: var searchSession = Components.classes["@mozilla.org/messenger/searchSession;1"] .createInstance(Components.interfaces.nsIMsgSearchSession); To use the instance append search terms, set the scope, and then call search(). ...
nsIMsgThread
The nsIMsgFolder interface is used to interact with threads in
Thunderbird. Inherits from: nsISupports Method overview void addChild(in nsIMsgDBHdr child, in nsIMsgDBHdr inReplyTo, in boolean threadInThread, in nsIDBChangeAnnouncer announcer); nsIMsgDBHdr getChildAt(in long index); nsMsgKey getChildKeyAt(in long index); nsIMsgDBHdr getChild(in nsMsgKey msgKey); nsIMsgDBHdr getChildHdrAt(in long index); nsIMsgDBHdr getRootHdr(out long index); void removeChildAt(in long index); void removeChildHdr(in nsIMsgDBHdr child, in nsIDBChangeAnnouncer announcer); void markChildRead(in boolean bRead); nsIMsgDBHdr getFirstUnreadChild(); nsISimpleEnumerator enumerateMessages(in nsMsgKey parent); Att...
nsIMsgWindow
mailnews/base/public/nsIMsgWindow.idlScriptable Please add a summary to this article. Inherits from: nsISupports Last changed in Gecko 8 (Firefox 8 /
Thunderbird 8 / SeaMonkey 2.5) Implemented by: @mozilla.org/messenger/msgwindow;1. To create an instance, use: msgWindow = Components.classes["@mozilla.org/messenger/msgwindow;1"] .createInstance(Components.interfaces.nsIMsgWindow); In
Thunderbird the default message window is stored in the global variable msgWindow. Method overview void displayHTMLInMessagePane(in AString title, in AString body, in boolean clearMsgHdr); void StopUrls(); void closeWindow(); Attributes Attribute Type Description windowCommands n...
nsIMsgWindowCommands
mailnews/base/public/nsIMsgWindow.idlScriptable This interface defines methods used by the back end to update the user interface in a mail or news message list. Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) The JavaScript implementation of this used by
Thunderbird is given here. Method overview void selectFolder(in ACString folderUri); void selectMessage(in ACString messageUri); void clearMsgPane(); Methods selectFolder() This method is called by the backend to change the folder displayed in the message window. This could be as a result of clicking on a new mail alert, or by clicking a link to a newsgroup. void selectFolder( in ACString folderUri ); Parameters folderUri The URI of the folder to select. selectMessage() This method is called by the backe...
nsIMutableArray
As above, it is legal to add null elements to the array. Note also that null elements can be created as a side effect of insertElementAt(). ...
nsINavHistoryContainerResultNode
toolkit/components/places/public/nsINavHistoryService.idlScriptable A foundation for the interfaces that provide a description of a query result on the Places service that describes a container (which is any kind of grouping, including bookmark folders). ...
nsINavHistoryQuery
toolkit/components/places/public/nsINavHistoryService.idlScriptable Encapsulates all the query parameters you're likely to need when building up history UI. All parameters are ANDed together. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) The nsINavHistoryQuery is not intended to be a super-general query mechanism. This was designed so that most queries can be done in only one SQL query. This is important because, if the user has their profile on a networked drive, query latency can be non-negligible Method overview nsINavHistoryQuery clone(); void getFolders([optional ]out unsigned long count, [retval,array,size_is(count)] out long long folders); void getTransitions([optio...
nsINavHistoryQueryOptions
toolkit/components/places/nsINavHistoryService.idlScriptable Represents the global options for executing a query. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10) Method overview nsINavHistoryQueryOptions clone(); Attributes Attribute Type Description applyOptionsToContainers boolean If true, the query options are only applied to the containers. asyncEnabled boolean When true, the root container node generated by these options and all of its descendant containers are opened asynchronously if they support doing so. By default, this is false. Note:...
nsINavHistoryQueryResultNode
toolkit/components/places/nsINavHistoryService.idlScriptable Used for Places queries and as a base class for bookmark folders. 1.0 66 Introduced Gecko 1.8 Inherits from: nsINavHistoryContainerResultNode Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Note: If you request that places not be expanded in the options that generated the node, the node will report that it has no children and will never try to populate itself. Method overview void getQueries([optional] out unsigned long queryCount, [retval,array,size_is(queryCount)] out nsINavHistoryQuery queries); Attributes Attribute Type Description folderItemId long long For both simple folder nodes and simple-folder-query nodes, this is set to the concrete itemId of the folder. ...
nsINavHistoryResult
Result objects represent the model in which the data is stored. External components provide the view and controller pieces of the puzzle; they define how the data looks and how the data is interacted with. ...
nsINavHistoryResultNode
toolkit/components/places/public/nsINavHistoryService.idlScriptable This is the base class for all Places history result nodes, containing the URI, title, and other general information. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Attributes Attribute Type Description accessCount unsigned long Total number of times the URI has been accessed. For hosts, this is the total number of the children under it, rather than the total number of times the host has been accessed (getting that information would require an additional query, so for performance reasons that information isn't given by default). Read only. bookmarkIndex long When this item is in a bookmark folder (its parent ...
nsINavHistoryResultViewer
Lets nsINavHistoryResult instances notify Places views of changes in the results. Removed in Gecko 2.0 and replaced with the nsINavHistoryResultObserver interface, which is similar but allows multiple clients to observe the result at once. 1.0 66 Introduced Gecko 1.9 Obsolete Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Obsolete since Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Note: Most methods in this interface were renamed in Gecko 1.9.2, and others have slightly different parameter lists. Method overview voi...
nsINetworkLinkService
netwerk/base/public/nsINetworkLinkService.idlScriptable Network link status monitoring service. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5) Implemented by: @mozilla.org/network/network-link-service;1 as a service: var networkLinkService = Components.classes["@mozilla.org/network/network-link-service;1"] .getService(Components.interfaces.nsINetworkLinkService); Attributes Attribute Type Description isLinkUp boolean This is set to true when the system is believed to have a usable network connection. The link is only up when network connections can be established. For example, the link is down during DHCP configurati...
nsIParserUtils
parser/html/nsIParserUtils.idlScriptable Provides non-Web HTML parsing functionality to Firefox extensions and XULRunner applications. 1.0 66 Introduced Gecko 13.0 Inherits from: nsISupports Last changed in Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11) Warning: Do not use this from within Gecko--use nsContentUtils, nsTreeSanitizer, and so on directly instead. Implemented by: @mozilla.org/parserutils;1 as a service: var parserUtils = Components.classes["@mozilla.org/parserutils;1"] .getService(Components.interfaces.nsIParserUtils); Method overview AString convertToPlainText(in AString src, in unsigned long flags, in unsigned long wrapCol); nsIDOMDocumentFragment parseFragment(in AString fragment, in unsig...
nsIRadioInterfaceLayer
dom/system/gonk/nsIRadioInterfaceLayer.idlScriptable Used to implement the interface between the Telephony API and the radio hardware in a telephone. 1.0 66 Introduced Gecko 12.0 Inherits from: nsISupports Last changed in Gecko 14.0 (Firefox 14.0 /
Thunderbird 14.0 / SeaMonkey 2.11) Implemented by: @mozilla.org/telephony/system-worker-manager;1. To create an instance, use: var radioInterfaceLayer = Components.classes["@mozilla.org/telephony/system-worker-manager;1"] .getService(Components.interfaces.nsIInterfaceRequestor) .createInstance(Components.interfaces.nsIRadioInterfaceLayer); Method overview void answerCall(in unsigned long callIndex); void deactivateDataCall(in DOMString cid, in DOMString reason...
nsIRequest
netwerk/base/nsIRequest.idlScriptable This interface is used by the request initiator to control the request. Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) For example nsIChannel typically passes itself as the nsIRequest argument to the nsIStreamListener on each onStartRequest, onDataAvaliable, and onStopRequest invocation. Method overview void cancel(in nsresult aStatus); boolean isPending(); void resume(); void suspend(); Attributes Attribute Type Description loadFlags nsLoadFlags The load flags of this request. Bits 0-15 are reserved. When added to a load group, this request's load flags are merged with the load flags of the load group. ...
nsISHEntry
docshell/shistory/public/nsISHEntry.idlScriptable Each document or subframe in Session History will have a nsISHEntry associated with it which will hold all information required to recreate the document from history. Inherits from: nsIHistoryEntry Last changed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Implemented by: @mozilla.org/browser/session-history-entry;1. To create an instance, use: var shentry = Components.classes["@mozilla.org/browser/session-history-entry;1"] .createInstance(Components.interfaces.nsISHEntry); Method overview void addChildShell(in nsIDocShellTreeItem shell); nsIDocShellTreeItem childShellAt(in long index); void clearChildShells(); nsISHEntry clone(); void create(in nsIURI URI, in AString title, in nsIIn...
nsISHistory
A handle to the session history object can be obtained from nsIWebNavigation. In a non-embedded situation, the owner of the session history component must create a instance of it and set it in the nsIWebNavigation object. ...
nsIScriptableInputStream
xpcom/io/nsIScriptableInputStream.idlScriptable This interface provides scriptable access to a nsIInputStream instance. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview unsigned long available(); void close(); void init(in nsIInputStream aInputStream); string read(in unsigned long aCount); ACString readBytes(in unsigned long aCount); Methods available() Return the number of bytes currently available in the stream. Note: This method should not be used to determine the total size of a stream, even if the stream corresponds to a local file. Moreover, since a stream may make available more than 2^32 bytes of data, this method is incapable of expressing the entire size of the u...
nsIScriptableUnescapeHTML
parser/html/nsIScriptableUnescapeHTML.idlScriptable This interface is a utility interface that exposes the kind of markup parser behavior that the feed service needs. 1.0 66 Introduced Gecko 1.8 Obsolete Gecko 14.0 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Note: As of Firefox 14, this interface is obsolete (but still available for compatibility with legacy extensions) and all its functionality is available with more configuration options via the nsIParserUtils interface. Implemented by: @mozilla.org/feed-unescapehtml;1 as a service: var scriptableUnescapeHTML = Components.classes["@mozilla.org/feed-unescapehtml;1"] .getService(Components.interfaces.nsIScriptableUnes...
nsIScriptableUnicodeConverter
ta from or writing data to don't require you to use this legacy representation, you should use TextDecoder and TextEncoder (available to chrome JavaScript via Components.utils.importGlobalProperties) instead of this API. intl/uconv/idl/nsIScriptableUConv.idlScriptable This interface is a Unicode encoder for use by scripts. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Implemented by: @mozilla.org/intl/scriptableunicodeconverter. To create an instance, use: var converter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"] .createInstance(Components.interfaces.nsIScriptableUnicodeConverter); Method overview ACString ConvertFromUnicode(in AString aSrc); ACString Finish(); AStri...
nsISearchEngine
netwerk/base/public/nsIBrowserSearchService.idlScriptable Please add a summary to this article. Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Inherits from: nsISupports Method overview void addParam(in AString name, in AString value, in AString responseType); nsISearchSubmission getSubmission(in AString data, [optional] in AString responseType, [optional] in AString purpose); boolean supportsResponseType(in AString responseType); Attributes Attribute Type Description alias AString An optional shortcut alias for the engine. When non-null, this is a unique identifier. description AString A text description describing the engine.
nsISearchSubmission
netwerk/base/public/nsIBrowserSearchService.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Attributes Attribute Type Description postData nsIInputStream The POST data associated with a search submission, wrapped in a MIME input stream. May be null. Read only. uri nsIURI The URI to submit a search to. Read only. ...
nsISelection
Implemented by: ?????????????????????????????????????. ...
nsISelection2
content/base/public/nsISelection2.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 1.8 Obsolete Gecko 8.0 Inherits from: nsISelection Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) In Gecko 8.0 this Interface was merged into the nsISelectionPrivate interface. Method overview void GetRangesForInterval(in nsIDOMNode beginNode, in PRInt32 beginOffset, in nsIDOMNode endNode, in PRInt32 endOffset, in PRBool allowAdjacent, out PRUint32 resultCount, [retval, array, size_is(resultCount)] out nsIDOMRange results); void GetRangesForIntervalCOMArray(in nsIDOMNode beginNode, in PRInt32 beginOffset, in nsIDOMNode endNode, in PRInt32 endOffset, in PRBool allowAdjacent, in RangeArray re...
nsISelection3
Method overview void modify(in DOMString alter, in DOMString direction, in DOMString granularity); Methods modify() Modifies the selection. Note that the parameters are case-insensitive. ...
nsISessionStore
r/components/sessionstore/nsISessionStore.idlScriptable Provides a means for extensions and other code to store data in association with browser sessions, tabs, and windows. The API operates on top-level browser.xul and navigator.xul windows; see Note on windows for details. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) In versions of Firefox prior to 3.5, the user preference browser.sessionstore.enabled must be true for these calls to be successful. Starting in Firefox 3.5, this preference is no longer used. Method overview void deleteTabValue(in nsIDOMNode aTab, in AString aKey); void deleteWindowValue(in nsIDOMWindow aWindow, in AString aKey); nsIDOMNode dup...
nsISmsService
dom/sms/interfaces/nsISmsService.idlScriptable Used to send SMS text messages for the WebSMS API 1.0 66 Introduced Gecko 13.0 Inherits from: nsISupports Last changed in Gecko 15.0 (Firefox 15.0 /
Thunderbird 15.0 / SeaMonkey 2.12) Implemented by: @mozilla.org/sms/smsservice;1. To create an instance, use: var smsService = Components.classes["@mozilla.org/sms/smsservice;1"] .createInstance(Components.interfaces.nsISmsService); Method overview [implicit_jscontext] nsIDOMMozSmsMessage createSmsMessage(in long id, in DOMString delivery, in DOMString sender, in DOMString receiver, in DOMString body, in jsval timestamp, in bool read ); unsigned short getNumberOfMessagesForText(in DOMString text); boolean hasSupport(); ...
nsISocketProvider
netwerk/socket/nsISocketProvider.idlScriptable This interface represents a socket provider. It is implemented by several types of socket classes like: UDP, SOCKS, TLS, SSL, and so on. Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Implemented by: @mozilla.org/network/socket;2?type=foo. To create an instance, use: var socketProvider = Components.classes["@mozilla.org/network/socket;2?type="] .createInstance(Components.interfaces.nsISocketProvider); Method overview void addToSocket(in long aFamily, in string aHost, in long aPort, in string aProxyHost, in long aProxyPort, in unsigned long aFlags, in PRFileDescStar aFileDesc, out nsISupports aSecurityInfo); Native code only! void newSocket(in lo...
nsISocketTransport
netwerk/base/public/nsISocketTransport.idlScriptable This interface specializes nsITransport for communication over network sockets. It provides methods to open blocking or non-blocking, buffered or unbuffered streams between two end-point in a IP based network. Inherits from: nsITransport Last changed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) Note: Connection setup is triggered by opening an input or output stream, it does not start on its own. Completion of the connection setup is indicated by a STATUS_CONNECTED_TO notification to the event sink (if set). To create an instance, call nsISocketTransportService.createTransport() Method overview PRNetAddr getPeerAddr(); Native code only! PRNetAddr getSelfAddr(); Native code only! ...
nsISound
Please use the HTML 5 <audio> tag instead. Note that nsISound instances may play the sounds using another thread; however, this is not controlled by the caller. Implemented by: @mozilla.org/sound;1. ...
nsISpeculativeConnect
etworking code provide hints to the networking layer that an HTTP connection attempt to a particular site is likely to happen soon; this lets the networking layer begin setting up TCP and, if appropriate, SSL handshakes to save time when the connection is actually opened later. 1.0 66 Introduced Gecko 15.0 Inherits from: nsISupports Last changed in Gecko 15.0 (Firefox 15.0 /
Thunderbird 15.0 / SeaMonkey 2.12) To use this service, simply call nsISupports.QueryInterface() on the nsIIOService you plan to use for the connection, to get access to the I/O service's implementation of nsISpeculativeConnect. Then call speculativeConnect() to let the networking layer know what you might be doing in the future. Method overview void speculativeConnect(in nsIURI aURI, in nsIInterfaceRequ...
nsIStyleSheetService
Allows extensions or embeddors to add to the built-in list of user or agent style sheets. layout/base/nsIStyleSheetService.idlScriptable Please add a summary to this article. Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Inherits from: nsISupports Implemented by: @mozilla.org/content/style-sheet-service;1. To create an instance, use: var styleSheetService = Components.classes["@mozilla.org/content/style-sheet-service;1"] .getService(Components.interfaces.nsIStyleSheetService); Method overview void loadAndRegisterSheet(in nsIURI sheetURI, in unsigned long type); boolean sheetRegistered(in nsIURI sheetURI, in unsigned long type); void unregisterSheet(in nsIURI sheetURI, in unsigned long type); ...
nsISupportsPriority
xpcom/threads/nsISupportsPriority.idlScriptable This interface exposes the general notion of a scheduled object with an integral priority value. Following UNIX conventions, smaller (and possibly negative) values have higher priority. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) This interface does not strictly define what happens when the priority of an object is changed. An implementation of this interface is free to define the side-effects of changing the priority of an object. In some cases, changing the priority of an object may be disallowed (resulting in an exception being thrown) or may simply be ignored. Method overview void adjustPriority(in long delta); Attributes A...
nsISupports proxies
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. XPCOM proxies were a technology which allowed code to make asynchronous or synchronous XPCOM calls to a different thread on arbitrary XPCOM interfaces. This technology has been removed in Firefox 12 because it was very complex and often lead to strange deadlock conditions. It is no longer needed because JavaScript code can no longer run on arbitrary threads, and compiled code can use compiled runnable to achieve the same effect in a much simpler manner. ...
nsISyncJPAKE
services/crypto/component/nsISyncJPAKE.idlScriptable Please add a summary to this article. ...
nsITXTToHTMLConv
You should normally obtain an instance via the nsIStreamConverterService interface. ...
nsITaggingService
toolkit/components/places/public/nsITaggingService.idlScriptable Provides methods to tag/untag a URI, to retrieve URIs for a given tag, and to retrieve all tags for a URI. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Implemented by: @mozilla.org/browser/tagging-service;1. To use this service, use: var taggingSvc = Components.classes["@mozilla.org/browser/tagging-service;1"] .getService(Components.interfaces.nsITaggingService); Method overview void tagURI(in nsIURI aURI, in nsIVariant aTags); void untagURI(in nsIURI aURI, in nsIVariant aTags); nsIVariant getURIsForTag(in AString aTag); nsIVar...
nsITaskbarPreview
Instead, you use nsITaskbarTabPreview or nsITaskbarWindowPreview as appropriate. ...
nsITaskbarPreviewButton
widget/public/nsITaskbarPreviewButton.idlScriptable This interface is used on Microsoft Windows to get access to a window preview's toolbar button properties. These buttons are displayed below the window preview. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) You can't directly instantiate this interface. Instead, you use the nsITaskbarWindowPreview.getButton() to get the objects representing the buttons. Attributes Attribute Type Description disabled boolean If true, the button is disabled. This is not the same as visible, which indicates whether or not the button should be displayed at all. dismissOnClick boolean If true, the array of previews should be dismissed when the butt...
nsITaskbarPreviewController
widget/public/nsITaskbarPreviewController.idlScriptable This interface is used on Microsoft Windows to provide the behavior of taskbar previews. Its methods and properties are used by the nsITaskbarPreview interface. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Clients should provide their own implementation of this interface. Depending on whether the controller is connected to an nsITaskbarTabPreview or nsITaskbarWindowPreview, only certain methods and attributes need to be implemented. Method overview boolean drawPreview(in nsIDOMCanvasRenderingContext2D ctx); boolean drawThumbnail(in nsIDOMCanvasRenderingContext2D ctx, in unsigned long width, in unsigned long ...
nsITaskbarProgress
widget/public/nsITaskbarProgress.idlScriptable Starting in Windows 7, applications can display a progress notification in the taskbar. This class wraps around the native functionality to do this. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Method overview void setProgressState(in nsTaskbarProgressState state, in unsigned long long currentValue Optional, in unsigned long long maxValue Optional); Constants Constant Value Description STATE_NO_PROGRESS 0 Stop displaying progress on the taskbar button. This should be used when the operation is complete or canceled. STATE_INDETERMINATE 1 Display a cycling, indeterminate progress bar. STATE_NORMAL 2 Display a determinate, no...
nsITaskbarTabPreview
widget/public/nsITaskbarTabPreview.idlScriptable This interface is used on Microsoft Windows to control tab preview specific behavior. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsITaskbarPreview Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Tab preview support is disabled by default in Gecko 1.9.2 Creating an nsITaskbarTabPreview for a window will automatically hide that window's nsITaskbarWindowPreview; this is done by Windows and cannot be prevented. When there are no more tab previews left for a window, the window preview is automatically made visible again. An application may have as many tab previews as memory allows. You can't directly instantiate this interface; instead, call the nsIWinTaskbar.createTaskbarTabPreview(). Metho...
nsITaskbarWindowPreview
widget/public/nsITaskbarWindowPreview.idlScriptable This interface is used on Microsoft Windows to represent the preview for a window in the taskbar. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsITaskbarPreview Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) You can't directly instantiate this interface; instead, call nsIWinTaskbar.getTaskbarWindowPreview() to get the taskbar preview for a specific window. Window preview behavior By default, Windows implements much of the behavior for applications in a standard way. This interface's primary purpose is to let Gecko applications take control over parts of the preview; however, certain parts of the preview are not controlled using this interface. For example, the title and icon for each previe...
nsITelemetry
toolkit/components/telemetry/nsITelemetry.idlScriptable A service to gather performance data that can be tracked over time to allow generating histograms. ...
nsITextInputProcessor
dom/interfaces/base/nsITextInputProcessor.idlScriptable This interface is a text input events synthesizer and manages its composition and modifier state 1.0 66 Introduced Gecko 38 Inherits from: nsISupports Last changed in Gecko 38.0 (Firefox 38.0 /
Thunderbird 38.0 / SeaMonkey 2.35) The motivation of this interface is to provide better API than nsIDOMWindowUtils to dispatch key events and create, modify, and commit composition in higher level. nsIDOMWindowUtils has provided the methods which dispatched keyboard events and composition events almost directly. Therefore they sometimes caused impossible scenarios in automated tests (what's tested with such events?) and JS-IME and/or JS-Keyboard on Firefox OS or add-ons may dispatch events with wrong rules. For solving ...
nsITextInputProcessorNotification
When Gecko supports new notification to IME, this interface may have some new attributes. So, nsITextInputProcessorCallback won't be changed for keeping backward compatibility. ...
nsIThreadPool
When you send events to the thread pool, the pool creates a new thread to process the event, up to the number of threads specified by the threadLimit attribute. ...
nsIThreadPoolListener
The notification happens on the newly created thread. void onThreadCreated(); Parameters None. ...
nsITimer
instances must be initialized by calling one of the initialization methods. You may also re-initialize (using one of the initialization methods) an existing instance to avoid the overhead of destroying and creating a timer. It is not necessary to cancel the timer in that case. xpcom/threads/nsITimer.idlScriptable Please add a summary to this article. Last changed in Gecko 5 (Firefox 5 /
Thunderbird 5 / SeaMonkey 2.2) Inherits from: nsISupports Implemented by: @mozilla.org/timer;1. To create an instance, use: var timer = Components.classes["@mozilla.org/timer;1"] .createInstance(Components.interfaces.nsITimer); Users of instances of nsITimer should keep a reference to the timer until it is no longer needed in order to assure the timer is fired. Method overview vo...
nsIToolkitProfile
Method overview nsIProfileLock lock(out nsIProfileUnlocker aUnlocker); void remove(in boolean removeFiles); Attributes Attribute Type Description localDir nsILocalFile The location of the profile local directory, which may be the same as the root directory. ...
nsITransferable
widget/nsITransferable.idlScriptable A container for typed data that can be transferred from one place or owner to another, possibly involving format conversion. These objects are used during drag-and-drop operations. Inherits from: nsISupports Last changed in Gecko 13.0 (Firefox 13.0 /
Thunderbird 13.0 / SeaMonkey 2.10) Implemented by: @mozilla.org/widget/transferable;1. To create an instance, use: var transferable = Components.classes["@mozilla.org/widget/transferable;1"] .createInstance(Components.interfaces.nsITransferable); It's important to note that a flavor, which specifies a type of data the transferable supports, is represented by a null-terminated string indicating the MIME type of the format supported by the flavor. Method overview void add...
nsITransport
netwerk/base/public/nsITransport.idlScriptable This interface provides a common way of accessing i/o streams connected to some resource. This interface does not in any way specify the resource. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) This interface provides methods to open blocking or non-blocking, buffered or unbuffered streams to the resource. The name "transport" is meant to connote the inherent data transfer implied by this interface (that is, data is being transfered in some fashion via the streams exposed by this interface). A transport can have an event sink associated with it. The event sink receives transport-specific events as the transfer is occurring. For a socket transport, these events can include status about t...
nsIURI
netwerk/base/public/nsIURI.idlScriptable This is an interface for an uniform resource identifier with internationalization support, offering attributes that allow setting and querying the basic components of a URI, and methods for performing basic operations on URIs. Inherits from: nsISupports Last changed in Gecko 6.0 (Firefox 6.0 /
Thunderbird 6.0 / SeaMonkey 2.3) See the following RFCs for details: RFC3490: Internationalizing Domain Names in Applications (IDNA) RFC3986: Uniform Resource Identifier (URI): Generic Syntax RFC3987: Internationalized Resource Identifiers Subclasses of nsIURI, such as nsIURL, impose further structure on the URI. To create an nsIURI object, you should use nsIIOService.newURI(), like this: function makeURI(aURL, aOriginCharset, aBaseURI) { var i...
nsIURIFixup
docshell/base/nsIURIFixup.idlScriptable Interface implemented by objects capable of fixing up strings into URIs. ...
nsIURLFormatter
toolkit/components/urlformatter/public/nsIURLFormatter.idlScriptable This interface exposes methods to substitute variables in URL formats. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Variable names can contain 'A-Z' letters and '_' characters. Mozilla applications linking to Mozilla websites are strongly encouraged to use URLs of the following format: http[s]://%SERVICE%.mozilla.[com|org]/%LOCALE%/ Method overview AString formatURL(in AString aFormat); AString formatURLPref(in AString aPref); Methods formatURL() Formats a string URL. The set of known variables is predefined. If a variable is unknown, it is left unchanged and a non-fatal error is reported. ASt...
nsIURLParser
This was never a valid part of a URL, and is now no longer supported. This makes URLs with semicolons in them work correctly. ...
nsIUUIDGenerator
xpcom/base/nsIUUIDGenerator.idlScriptable This interface can be used to generate an ID that can be considered globally unique, often referred to as a UUID or GUID. 1.0 66 Introduced Gecko 1.8.1 Inherits from: nsISupports Last changed in Gecko 1.8.1 (Firefox 2 /
Thunderbird 2 / SeaMonkey 1.1) Implemented by @mozilla.org/uuid-generator; as a service: var uuidGenerator = Components.classes["@mozilla.org/uuid-generator;1"] .getService(Components.interfaces.nsIUUIDGenerator); Method overview nsIDPtr generateUUID(); void generateUUIDInPlace(in nsNonConstIDPtr id); Native code only! Methods generateUUID() Obtains a new UUID using appropriate platform-specific methods to obtain a nsID that can be considered to be globally unique. nsIDPtr generate...
nsIUpdate
first and attempt to apply that, then if the application process fails fall back to downloading a complete file-replace patch. This object also contains information about the update that the front end and other application services can use to learn more about what is going on. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview nsIUpdatePatch getPatchAt(in unsigned long index); nsIDOMElement serialize(in nsIDOMDocument updates); Attributes Attribute Type Description appVersion AString The Application version of this update. billboardURL AString The URL to a page that is typically localized to display in the update prompt. buildID AString The build ID of this updat...
nsIUpdateCheckListener
toolkit/mozapps/update/nsIUpdateService.idlScriptable An interface describing an object that listens to the progress of an update check operation. This object is notified as the check continues, finishes and if it has an error. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void onCheckComplete(in nsIXMLHttpRequest request, [array, size_is(updateCount)] in nsIUpdate updates, in unsigned long updateCount); void onError(in nsIXMLHttpRequest request, in nsIUpdate update); void onProgress(in nsIXMLHttpRequest request, in unsigned long position, in unsigned long totalSize); Methods onCheckComplete() Called when the update check is completed. void onCheckComplete( ...
nsIUpdateChecker
toolkit/mozapps/update/nsIUpdateService.idlScriptable This interface describes an object that knows how to check for software updates. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void checkForUpdates(in nsIUpdateCheckListener listener, in boolean force); void stopChecking(in unsigned short duration); Constants Constant Value Description CURRENT_CHECK 1 Constant for the stopChecking() method indicating that only the current update check should be stopped. CURRENT_SESSION 2 Constant for the stopChecking() method indicating that all update checks during the current session should be stopped. ANY_CHECKS 3 Constant for the stopChecking() method indicating ...
nsIUpdateItem
toolkit/mozapps/extensions/public/nsIExtensionManager.idlScriptable Describes an item managed by the extension system, providing metadata describing the item. 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) This interface is obsolete; instead of using the Extension Manager, you should use the Addon Manager. Method overview void init(in AString id, in AString version, in AString installLocationKey, in AString minAppVersion, in AString maxAppVersion, in AString name, in AString downloadURL, in AString xpiHash, in AString iconURL, in AString updateURL, in AString updateKey, in long type, in AString targetAppID); Attributes Attr...
nsIUpdateManager
toolkit/mozapps/update/nsIUpdateService.idlScriptable This interface describes a global application service that maintains a list of previously installed updates, as well as the currently in use update. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview nsIUpdate getUpdateAt(in long index); void saveUpdates(); Attributes Attribute Type Description activeUpdate nsIUpdate An nsIUpdate object describing the currently in use update. This update is not in the history list. Read only. updateCount long The number of updates in the history list; the updates can be fetched by calling getUpdateAt(). Read only. Methods getUpdateAt() Returns the update at the specified...
nsIUpdatePatch
toolkit/mozapps/update/nsIUpdateService.idlScriptable An interface that describes an object representing a patch file that can be downloaded and applied to a version of this application so that it can be updated. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview nsIDOMElement serialize(in nsIDOMDocument updates); Attributes Attribute Type Description finalURL AString The final URL this patch was being downloaded from. hashFunction AString The hash function to use when determining the integrity of the patch file. hashValue AString The value of the hash function named in hashFunction that should be computed if the file is not corrupt. selected boolean tr...
nsIUpdatePrompt
toolkit/mozapps/update/nsIUpdateService.idlScriptable This interface describes an object that can be used to show various update-related notifications to the user. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void checkForUpdates(); void showUpdateAvailable(in nsIUpdate update); void showUpdateDownloaded(in nsIUpdate update, [optional] in boolean background); void showUpdateError(in nsIUpdate update); void showUpdateHistory(in nsIDOMWindow parent); void showUpdateInstalled(); Methods checkForUpdates() Presents a user interface that checks for and displays the available updates. void checkForUpdates(); Parameters None. showUpdateAvailable() Shows a mess...
nsIUpdateTimerManager
/mozapps/update/nsIUpdateTimerManager.idlScriptable This interface provides a global application service that provides support for long-duration timers (on the order of many days, weeks, or even months). These timers are used to schedule update checks in the future, for example. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void registerTimer(in AString id, in nsITimerCallback callback, in unsigned long interval); Methods registerTimer() Presents a user interface that checks for and displays the available updates. void registerTimer( in AString id, in nsITimerCallback callback, in unsigned long interval ); Parameters id An ID used to...
nsIUploadChannel2
netwerk/base/public/nsIUploadChannel2.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Method overview void explicitSetUploadStream(in nsIInputStream aStream, in ACString aContentType, in long long aContentLength, in ACString aMethod, in boolean aStreamHasHeaders); Methods explicitSetUploadStream() Sets a stream to be uploaded by this channel with the specified Content-Type and Content-Length header values. Most implementations of this interface require that the stream: implement threadsafe addRef and release implement nsIInputStream.readSegments() implement nsISeekableStream.seek(). void explicitSetUploadStream( in nsIInputSt...
nsIUrlListManagerCallback
toolkit/components/url-classifier/public/nsIUrlListManager.idlScriptable Interface for a class that manages updates of the url classifier database. ...
nsIVariant
sIVariant.idlScriptable XPConnect has magic to transparently convert between nsIVariant and JS types. We mark the interface [scriptable] so that JS can use methods that refer to this interface. But we mark all the methods and attributes [noscript] since any nsIVariant object will be automatically converted to a JS type anyway. ...
nsIVersionComparator
A version-part consists of up to four parts, all of which are optional: <number-a><string-b><number-c><string-d (everything else)> A version-part may also consist of a single asterisk "*" which indicates * "infinity". ...
nsIWebBrowser
.idlScriptable This interface is implemented by web browser objects. Embedders use this interface during initialization to associate the new web browser instance with the embedders chrome and to register any listeners. The interface may also be used at runtime to obtain the content DOM window and from that the rest of the DOM. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Warning: This interface was frozen for a very long time, but was unfrozen for Gecko 2.0. Method overview void addWebBrowserListener(in nsIWeakReference aListener, in nsIIDRef aIID); void removeWebBrowserListener(in nsIWeakReference aListener, in nsIIDRef aIID); Attributes Attribute Type Description containerWindow nsIWebBr...
nsIWebBrowserChrome3
embedding/browser/webBrowser/nsIWebBrowserChrome3.idlScriptable An extension to nsIWebBrowserChrome2. 1.0 66 Introduced Gecko 2.0 Inherits from: nsIWebBrowserChrome2 Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview AString onBeforeLinkTraversal(in AString originalTarget, in nsIURI linkURI, in nsIDOMNode linkNode, in PRBool isAppTab); Methods onBeforeLinkTraversal() Determines the appropriate target for a link. AString onBeforeLinkTraversal( in AString originalTarget, in nsIURI linkURI, in nsIDOMNode linkNode, in PRBool isAppTab ); Parameters originalTarget The original link target. linkURI Link destination URI. linkNode Link DOM node. isAppTab Whether or not the link is in...
nsIWebBrowserPersist
embedding/components/webbrowserpersist/nsIWebBrowserPersist.idlScriptable Interface for persisting DOM documents and URIs to local or remote storage. Inherits from: nsICancelable Last changed in Gecko 36.0 (Firefox 36.0 /
Thunderbird 36.0 / SeaMonkey 2.33) Implemented by: @mozilla.org/embedding/browser/nsWebBrowser;1 and @mozilla.org/embedding/browser/nsWebBrowserPersist;1. To create an instance, use: var webBrowserPersist = Components.classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"] .createInstance(Components.interfaces.nsIWebBrowserPersist); Method overview void cancelSave(); void saveChannel(in nsIChannel aChannel, in nsISupports aFile); void saveDocument(in nsIDOMDocument aDocument, in nsISupports aFile, in nsI...
nsIWebContentHandlerRegistrar
xpfe/appshell/public/nsIWebContentHandlerRegistrar.idlScriptable Applications wishing to use web content handlers need to implement this interface. Typically they will prompt the user to confirm adding an entry to the local list. ...
nsIWebNavigationInfo
docshell/base/nsIWebNavigationInfo.idlScriptable Exposes a way to get information on the capabilities of Gecko web navigation objects. ...
nsIWebProgressListener
uriloader/base/nsIWebProgressListener.idlScriptable This interface is implemented by clients wishing to listen in on the progress associated with the loading of asynchronous requests in the context of a nsIWebProgress instance as well as any child nsIWebProgress instances. Inherits from: nsISupports Last changed in Gecko 15 (Firefox 15 /
Thunderbird 15 / SeaMonkey 2.12) nsIWebProgress describes the parent-child relationship of nsIWebProgress instances. Method overview void onLocationChange(in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI aLocation, [optional] in unsigned long aFlags); void onProgressChange(in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aCurSelfProgress, in long aMaxSelfProgress, in long aCurTotalProgress, in long aMax...
nsIWebSocketChannel
nsIWebSocketChannel netwerk/protocol/websocket/nsIWebSocketChannel.idlScriptable Provides support for WebSocket channels. 1.0 66 Introduced Gecko 8.0 Inherits from: nsISupports Last changed in Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5) Implemented by: ?????????????????????????????????????. To create an instance, use: var webSocketChannel = Components.classes["@mozilla.org/????????????????????????????"] .createInstance(Components.interfaces.nsIWebSocketChannel); Method overview void asyncOpen(in nsIURI aURI, in ACString aOrigin, in nsIWebSocketListener aListener, in nsISupports aContext); void close(in unsigned short aCode, in AUTF8String aReason); void sendBinaryMsg(in ACString aMsg); void sen...
nsIWebSocketListener
netwerk/protocol/websocket/nsIWebSocketListener.idlScriptable Implement this interface to receive WebSocket traffic events asynchronously after calling nsIWebSocketChannel.asyncOpen(). ...
nsIWebappsSupport
toolkit/components/webapps/nsIWebappsSupport.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void installApplication(in wstring title, in wstring uri, in wstring iconUri, in wstring iconData); boolean isApplicationInstalled(in wstring uri); Methods installApplication() This method installs a web application. void installApplication( in wstring title, in wstring uri, in wstring iconUri, in wstring iconData ); Parameters title The user-friendly name of the application. uri The uri of the web application. iconUri The uri of icon of the web application. iconData A base64 encoded representation of the applicat...
nsIWifiAccessPoint
This string is in the format "XX-XX-XX-XX-XX-XX". Read only. rawSSID ACString The public name of the wireless network, as an ASCII string. This string is null if not available. Read only. ...
nsIWifiListener
netwerk/wifi/nsIWifiListener.idlScriptable This interface is implemented by clients interested in receiving notifications when the list of available WiFi access points changes. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Method overview void onChange([array, size_is(aLen)] in nsIWifiAccessPoint accessPoints, in unsigned long aLen); void onError(in long error); Methods onChange() Called when the list of available access points changes. void onChange( [array, size_is(aLen)] in nsIWifiAccessPoint accessPoints, in unsigned long aLen ); Parameters accessPoints An array of nsIWifiAccessPoint objects representing all currently-available WiFi access points. aLen The number ...
nsIWifiMonitor
netwerk/wifi/nsIWifiMonitor.idlScriptable This interface can be used to be alerted when the list of available WiFi access points changes. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) This is used, for example, by Geolocation to use WiFi access points for location detection. Implemented by @mozilla.org/wifi/monitor;1 as a service: var wifiMonitor = Components.classes["@mozilla.org/wifi/monitor;1"] .getService(Components.interfaces.nsIWifiMonitor); Method overview void startWatching(in nsIWifiListener aListener); void stopWatching(in nsIWifiListener aListener); Methods startWatching() Starts listening for changes to the WiFi access point list. void startWa...
nsIWinTaskbar
By default, there is a single taskbar preview per top level window (excluding pop-ups). This preview is represented by an nsITaskbarWindowPreview object. ...
nsIWindowMediator
xpfe/appshell/public/nsIWindowMediator.idlScriptable The window mediator is a Mozilla component that keeps track of open windows. Inherits from: nsISupports Last changed in Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5) The two most common uses of nsIWindowMediator are, enumerating all windows of a given type and getting the most recent / any window of a given type. Implemented by: @mozilla.org/appshell/window-mediator;1 as a service: var windowMediator = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); Method overview void addListener(in nsIWindowMediatorListener aListener); boolean calculateZPosition(in nsIXULWindow inWindow, in unsigned long inPosition, in nsIWi...
nsIWorker
dom/interfaces/threads/nsIDOMWorkers.idlScriptable This interface represents a DOM worker thread. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsIAbstractWorker Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) For usage details, see worker and the article Using DOM workers. Method overview void postMessage(in DOMString aMessage, [optional] in nsIWorkerMessagePort aMessagePort); Attributes Attribute Type Description onmessage nsIDOMEventListener An object to receive notifications when messages are received on the worker's message port. Methods postMessage() Used to allow the worker to send a message back to the web application that created it. void postMessage( in DOMString aMessage, in nsIWorkerMessagePort aMessagePort Opt...
nsIWorkerFactory
You don't need to use it anymore to create workers from chrome. Instead, you can just do new Worker or new ChromeWorker. Implemented by: threads/workerfactory;1. ...
nsIWorkerGlobalScope
dom/interfaces/threads/nsIDOMWorkers.idlScriptable This interface is an abstract interface representing the 'inside' of a worker. This interface allows a worker to look up information about itself, as well as to control itself. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Attributes Attribute Type Description location nsIWorkerLocation Read only. navigator nsIWorkerNavigator Read only. onerror nsIDOMEventListener self nsIWorkerGlobalScope Returns the global scope object itself. Read only. See also Using web workers nsIWorkerMessagePort nsIWorkerMessageEvent nsIWorkerScope nsIAbstractWorker nsIWorker ...
nsIWorkerMessageEvent
dom/interfaces/threads/nsIDOMWorkers.idlScriptable This interface represents an event in a web worker thread's event queue. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsIDOMEvent Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Method overview void initMessageEvent(in DOMString aTypeArg, in boolean aCanBubbleArg, in boolean aCancelableArg, in DOMString aDataArg, in DOMString aOriginArg, in nsISupports aSourceArg); Attributes Attribute Type Description data DOMString The event's data. Read only. origin DOMString The event's origin. Read only. source nsISupports The event's source. Read only. Methods initMessageEvent() Initializes the message event. voi...
nsIWorkerMessagePort
dom/interfaces/threads/nsIDOMWorkers.idlScriptable This interface represents a worker thread's message port, which is used to allow the worker to post messages back to its creator. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 /
Thunderbird 3.0 / SeaMonkey 2.0) Method overview void postMessage(in DOMString aMessage); Methods postMessage() Posts a message into the event queue. void postMessage( in DOMString aMessage ); Parameters aMessage The message to post. See also Using web workers nsIWorkerMessageEvent nsIWorkerGlobalScope nsIWorkerScope nsIAbstractWorker nsIWorker ...
nsIWorkerScope
dom/interfaces/threads/nsIDOMWorkers.idlScriptable This interface represents the global scope in which a worker's script runs. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsIWorkerGlobalScope Last changed in Gecko 1.9.2 (Firefox 3.6 /
Thunderbird 3.1 / Fennec 1.0) Method overview void postMessage(in DOMString aMessage, [optional] in nsIWorkerMessagePort aMessagePort); void close(); Attributes Attribute Type Description onclose nsIDOMEventListener A listener object to be called when the worker stops running. onmessage nsIDOMEventListener A listener object to be called when a message is posted on the port. The message is in the event's data member. Methods close() Allows the worker to terminate itself. If a listener has been established by se...
nsIWritablePropertyBag
void deleteProperty( in AString name ); Parameters name Property to delete. Exceptions thrown NS_ERROR_FAILURE If a property with that name doesn't exist. ...
nsIWritablePropertyBag2
xpcom/ds/nsIWritablePropertyBag2.idlScriptable This interface extends nsIPropertyBag2 with methods for setting properties. ...
nsIXFormsModelElement
extensions/xforms/nsIXFormsModelElement.idlScriptable Defines scriptable methods for manipulating instance data and updating computed and displayed values. 1.0 66 Introduced Gecko 1.8 Obsolete Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview nsIDOMDocument getInstanceDocument(in DOMString instanceID); void rebuild(); void recalculate(); void refresh(); void revalidate(); Methods getInstanceDocument() nsIDOMDocument getInstanceDocument( in DOMString instanceID ); Parameters instanceID The ID of the instance element to be returned. Return value An nsIDOMDocument. Exceptions thrown DOMException If there is no matching instance data. rebuild() Signals the XFor...
nsIXFormsNSInstanceElement
nsIXFormsNSInstanceElement is implemented by all XForms <instance/> elements, defining Mozilla extensions. extensions/xforms/nsIXFormsNSInstanceElement.idlScriptable Please add a summary to this article. Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Interface Code [scriptable, uuid(80669b92-8331-4f92-aaf8-06e80e6827b3)] interface nsIXFormsNSInstanceElement : nsISupports { nsIDOMDocument getInstanceDocument(); }; Methods getInstanceDocument nsIDOMDocument getInstanceDocument(); getInstanceDocument returns a DOM Document that corresponds to the instance data associated with the instance element. Essentially it is just a shortcut to nsIXFormsModelElement::getInstanceDocument() for the given instance element. Related Interfaces nsIXFormsModelElement Exa...
nsIXFormsNSModelElement
nsIXFormsNSModelElement is implemented by all XForms <model/> elements. It defines Mozilla extensions to the nsIXFormsModelElement interface. extensions/xforms/nsIXFormsNSModelElement.idlScriptable Please add a summary to this article. Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Interface Code [scriptable, uuid(85fd60c7-1db7-40c0-ae8d-f723fdd1eea8)] interface nsIXFormsNSModelElement : nsISupports { nsIDOMNodeList getInstanceDocuments(); }; Methods getInstanceDocuments nsIDOMNodeList getInstanceDocuments(); getInstanceDocuments returns a nsIDOMNodeList containing all the instance documents for the model, making it possible to enumerate over instances in the model without knowing their names. Related Interfaces nsIXFormsModelElement Example Code Non...
nsIXMLHttpRequest
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. nsIXMLHttpRequest along with nsIJSXMLHttpRequest and nsIXMLHttpRequestEventTarget are Mozilla's implementation details of the DOM XMLHttpRequest object. Note: If you're a web developer or a Mozilla add-on developer, please refer to the XMLHttpRequest documentation instead. This page contains documentation, specific to Mozilla application and add-on developers. ...
nsIXMLHttpRequestEventTarget
content/base/public/nsIXMLHttpRequest.idlScriptable This interface provides access to the event listeners used when uploading data using the XMLHttpRequest object. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsIDOMEventTarget Last changed in Gecko 5.0 (Firefox 5.0 /
Thunderbird 5.0 / SeaMonkey 2.2) Attributes Attribute Type Description onabort nsIDOMEventListener A JavaScript function object that gets invoked if the operation is canceled by the user. onerror nsIDOMEventListener A JavaScript function object that gets invoked if the operation fails to complete due to an error. onload nsIDOMEventListener A JavaScript function object that gets invoked when the operation is successfully completed. onloadend nsIDOMEventListener A JavaScript function obje...
nsIXMLHttpRequestUpload
content/base/public/nsIXMLHttpRequest.idlScriptable This interface provides access to the features needed when uploading data using nsIXMLHttpRequest. ...
nsIXPCException
js/src/xpconnect/idl/xpcexception.idlScriptable These exception objects are the preferred types of exceptions when implementing xpcom interfaces in JavaScript. ...
nsIXPCScriptable
ot really an XPCOM interface. For example, callers must guarantee that they set the *_retval of the various methods that return a boolean to PR_TRUE before making the call. Implementations may skip writing to *_retval unless they want to return PR_FALSE. js/src/xpconnect/idl/nsIXPCScriptable.idlNot scriptable Please add a summary to this article. ...
nsIXSLTProcessorObsolete
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. ...
nsIXULBrowserWindow
xpfe/appshell/public/nsIXULBrowserWindow.idlScriptable Provides methods that may be called from the internals of the browser area to tell the containing XUL window to update its user interface. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) The XULBrowserWindow attribute exists on the nsIXULWindow interface although both Firefox and SeaMonkey also store their nsIXULBrowserWindow reference in the global XULBrowserWindow object accessible from JavaScript code. Note: The XULBrowserWindow object offered to JavaScript code provides a great many more methods and attributes than those listed here, which are only the ones available to C++ code. See the documentation for XULBrowserWindow for details. Method overview AString onBeforeLinkTrav...
nsIXULRuntime
xpcom/system/nsIXULRuntime.idlScriptable Provides information about the XUL runtime to allow extensions and XUL applications to determine information about the XUL runtime. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Implemented by: @mozilla.org/xre/app-info;1. To get an instance, use: var xulRuntime = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULRuntime); Method overview void invalidateCachesOnRestart(); Attributes Attribute Type Description accessibilityEnabled boolean If true, the accessibility service is running. Read only. browserTabsRemoteAutostart ...
nsIXULSortService
content/xul/templates/public/nsIXULSortService.idlScriptable A service used to sort the contents of a XUL widget. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) Method overview void insertContainerNode(in nsIRDFCompositeDataSource db, in nsRDFSortState sortStatePtr, in nsIContent root, in nsIContent trueParent, in nsIContent container, in nsIContent node, in boolean aNotify); Native code only! Obsolete since Gecko 1.9 void sort(in nsIDOMNode aNode, in AString aSortKey, in AString aSortHints); Constants Constant Value Description SORT_COMPARECASE 0x0001 SORT_INTEGER 0x0100 Methods Native code only!insertContainerNode Obsolete since Gecko 1.9 (Firefox 3)This feature is obsolete. Although it may still work in some b...
nsIXULWindow
When the window is destroyed, it will fire a "xul-window-destroyed" notification through the global observer service. This signals the application in case it needs to quit. ...
nsIXmlRpcClient
Warning: This interface was removed from Firefox 3 and is no longer available. extensions/xml-rpc/idl/nsIXmlRpcClient.idlScriptable Please add a summary to this article. ...
nsIXmlRpcFault
solete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. extensions/xml-rpc/idl/nsIXmlRpcClient.idlScriptable An XML-RPC exception. XML-RPC server fault codes are returned wrapped in this; access it using nsIXPConnect.GetPendingException->data. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 /
Thunderbird 1.5 / SeaMonkey 1.0) Method overview void init(in PRInt32 faultCode, in string faultSring); string toString(); Attributes Attribute Type Description faultCode PRInt32 Read only. faultString string Read only. Methods init() void getData( in PRInt32 faultCode, in string faultString ); Parameters faultCode t...
nsIZipReaderCache
modules/libjar/nsIZipReader.idlScriptable Please add a summary to this article. Inherits from: nsISupports Last changed in Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7) Implemented by: @mozilla.org/libjar/zip-reader-cache;1. To create an instance, use: var zipReaderCache = Components.classes["@mozilla.org/libjar/zip-reader-cache;1"] .createInstance(Components.interfaces.nsIZipReaderCache); Method overview nsIZipReader getInnerZip(in nsIFile zipFile, in AUTF8String zipEntry); nsIZipReader getInnerZip(in nsIFile zipFile, in string zipEntry); Obsolete since Gecko 10 nsIZipReader getZip(in nsIFile zipFile); void init(in unsigned long cacheSize); Methods getInnerZip() Returns a (possibly shared) cached nsIZipReader ...
nsPIPromptService
This interface defines the meaning of each indexes of GetInt(), SetInt(), GetString() and SetString() of the nsIDialogParamBlock interface but they are defined on in C++. The indexes for GetString() and SetString() are: eMsg The value is 0. ...
XPCOM Interface Reference by grouping
nsIAlertsService nsIWebProgress nsIWebProgressListener nsIWebProgressListener2 Update nsIUpdate nsIUpdateChecker nsIUpdateCheckListener nsIUpdateItem nsIUpdateManager nsIUpdatePatch nsIUpdatePrompt nsIUpdateTimerManager nsIProgrammingLanguage
Thunderbird Credentials nsIMsgAccountManagerExtension Element nsIEditorMailSupport Message nsIDBChangeAnnouncer nsIDBChangeListener nsIMessenger nsIMsgCompFields nsIMsgCustomColumnHandler nsIMsgDatabase nsIMsgDBHdr nsIMsgDBView nsIMsgDBViewCommandUpdater nsIMsgFolder ...
nsMsgNavigationType
The nsMsgNavigationType interface contains constants used for message navigation in
Thunderbird. For example to move forward a message, you would call: // assuming gDBView is a global nsIMsgDBView var resultId = new Object(); var resultIndex = new Object(); var threadIndex = new Object(); gDBView.viewNavigate(Components.interfaces.nsMsgNavigationType.nextMessage, resultId, resultIndex, threadIndex, true); The nsMsgNavigationType interface is defined as a global variable in
Thunderbird: var nsMsgViewCommandType = Components.interfaces.nsMsgViewCommandType; mailnews/base/public/nsIMsgDBView.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9 (Firefox 3) Constants Name Value Description firstMessage 1 Go to the first message in the view.
nsMsgViewCommandType
For example to mark a message read, you would call: // assuming gDBView is a global nsIMsgDBView gDBView.doCommand(Components.interfaces.nsMsgViewCommandType.markMessagesRead); mailnews/base/public/nsIMsgDBView.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9 (Firefox 3) Constants Name Value Description markMessagesRead 0 Marks the selected messages as read. markMessagesUnread 1 Mark the selected messages as unread toggleMessageRead 2 Toggle the read flag of the selected messages flagMessages 3 Flag the selected messages. ...
nsMsgViewFlagsType
This interface isn't ever implemented. It is only used to store constants. ...
nsMsgViewSortOrder
This interface isn't ever implemented. It is only used to store constants. For example to sort by date you would pass a function the value: Components.interfaces.nsMsgViewSortOrder.ascending mailnews/base/public/nsIMsgDBView.idlScriptable Please add a summary to this article. ...
nsMsgViewSortType
This interface isn't ever implemented. It is only used to store constants. For example to sort by date you would pass a function the value: Components.interfaces.nsMsgViewSortType.byDate mailnews/base/public/nsIMsgDBView.idlScriptable Please add a summary to this article. ...
nsMsgViewType
This interface isn't ever implemented. It is only used to store constants. ...
Using nsIPasswordManager
just had to use the Password Manager for a project I was working on, so I thought I'd braindump my notes to the wiki while I was at it. This code is tested, but barely, and I am by no means an expert on this area. Review and cleanup would be appreciated. Zachlipton 22:52, 18 July 2006 (PDT) The code on this page will work with applications using Toolkit 1.8 and below such as Firefox 2.0.0.x and
Thunderbird 2.0.0.x. For similar functionality in Toolkit 1.9, see Using nsILoginManager. Working with Password Manager Extensions often need to securely store passwords to external sites, web applications, and so on. To do so securely, they can use nsIPasswordManager, which provides for secure storage of sensitive password information. Getting nsIPasswordManager To get a component implementing nsIPasswordMa...
Mozilla technologies
e to MNG, providing a spec suitable for the most common usage of animated images on the Internet.DocShellDocshell is the second iteration of what originally started out as WebShell. ...
DB Views (message lists)
on 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. ...
Gloda examples
See Creating a gloda message query for more examples. ...
MailNews Filters
o the xbl widget in the filter editor If your action has a parameter, add code to initialize the ui editing an existing filter here and to save to the filter here Add your action to filter.properties so it will show up in the filter log. Finally, add protocol-specific code to apply your filter action in the various ApplyFilterHit methods IMAP POP3 News and "after the fact" Since SeaMonkey and
Thunderbird share the filter code, you will also need to update the SeaMonkey .dtd and .property files. I may have missed some places, but that's a start, anyway. It would be really nice if we had a mechanism for extensions to add their own filter actions. Most if not all of the above pieces of code would be involved in the extension mechanism. ...
Message Interfaces
nsIMsgHdr nsIMsgHdr - this interface describes headers for all mail messages. It can be used to retrieve address, subject and related header information for a mail message. nsIMsgDBHdr nsIMsgDBHdr - this interface describes headers for mail messages. It is a child of nsIMsgHdr (see above). nsIMsgThread nsIMsgThread - this interface is used to interact with threads in
Thunderbird. nsIMsgDBView nsIMsgDBView - The nsIMsgDBView interface handles the display of mail in the threadpane and preview pane of
Thunderbird and other XPCOM based mail cients. ...
FAQ
The old contents of this FAQ page were duplicated in the Setting up extension development environment article and the Building a
Thunderbird extension article. (Duplicate content has been removed from this page.) Other resources can be found on the
Thunderbird Extension development portal page. MozillaZine's Getting started tutorial might provide some useful general pointers regarding developing Mozilla extensions. ...
Finding the code for a feature
is used to store the list of valid tags, so it is not the correct way to tag messages. Tags are applied using the message database property "keyword". I know the underlying code, but I don't remember the user interface level function to do it. But here is how I find out. There are two key tools that you need. The first is the DOM inspector extension which I have routinely installed in all of my
Thunderbird installations. (For debug builds, you can make it appear by default using "ac_add_options --enable-extensions=default,venkman,inspector" which is part of my standard configuration). The second is mozilla's source code search tool mxr. I keep two prominent links to this on my Firefox toolbar, one to comm-central string search, and one to comm-central file search. So, how did I use those to figure...
Activity Manager examples
See the Activity Manager page for a general description of the component. See the Activity Manager interfaces page for an overview of the related interfaces. If the default implementation of nsIActivityProcess, nsIActivityWarning and nsIActivityEvent are not sufficient for the activity initiator, activity developers can provide their own components to extend the capabilities. Default implementations can be found in nsActivity.js file. ...
Access StringBundle from Overlay
Stringbundles are handy for localizing your project by removing all of your strings into a separate, easy to access text file. Unfortunately adding the bundles into
Thunderbird isn't as easy as adding them to your XUL overlay. The most efficient way to append these strings is by attaching them to an existing stringbundleset as such: <stringbundleset id="stringbundleset"> <stringbundle src="chrome://your_extension/locale/overlay.properties" id="your-extension-strings" /> </stringbundleset> Now that your stringbundle is attached you can access it from JavaScript as follows: var str = document.getElementById("your-extension-strings"); //get the stringbundle object itself str.getString("propertyName"); //get a string (and do something with it) Alternative way ...
Access Window
You can do many things with the window object, such as accessing the height or width of the window/tab or setting its title, registering timer events and much more. The Window API will give you the complete details. Since window is a global variable you can use it directly from your JavaScript file. Check if the window is a tab or the root window window.addEventListener("load", function(e) { alert("Is root?: " + isRoot()); }, false); function isRoot() { if(window != window.top) return "false"; else return "true"; } The example above tells you if the window object is a reference of the application window or of one of it is a tabs. ...
Styling the Folder Pane
It is now possible to place non-mail entities in the folder pane. Treeview row/cell properties CSS Property Equivalent call Explanation folderNameCol -- A property for indicating that a column is the folder name column. hasUnreadMessages-true aFolder.getNumUnread(false) > 0 Indicates that the folder (but not subfolders) has unread messages. isServer-true aFolder.isServer Indicates that the folder is a root folder (one that represents a server). ...
Using tab-modal prompts
That is, when an alert occurred, it blocked the user interface on all tabs in the window until the user dismissed the prompt. Window-modal alert. Gecko 2.0 introduces tab modal prompts, which only block the tab with which they're associated. Only the window.alert() method gets this by default; you get this by default. ...
Using the Mozilla symbol server
e to download. This may make it appear as if the script has gotten stuck, but it will continue. Symbol indices are named like so: symbols.mozilla.org/{lowercased:Name}/{lowercased:Name}-{Version}-{Platform}-{BuildID}-symbols.txt. The Platform is either 'Darwin' (for Mac) or 'Linux'. The rest of values are based on the contents of the application.ini file under the [App] heading: For example, the
Thunderbird 3.1b2 release with Name=
Thunderbird, Version=3.1b2, BuildID=20100430125415 would have a filename of "
thunderbird-3.1b2-Linux-20100430125415-symbols.txt" under the
thunderbird directory at symbols.mozilla.org. Its contents are a list of paths to files, all relative to the directory the BLAH-symbols.txt file is found in. The source server In addition to symbols, Mozilla also has a source server,...
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. ...
Standard OS Libraries
Environments" (known as "DE"s). WMs on Ubuntu work a little differently but we'll revisit this topic later in this article (Did you know they have a *special* Firefox build for Ubuntu?). So DEs are a stack over WMs. There is also a layer known as shell, GnomeShell is the shell used in Gnome 3, it is the outter shell. GTK+ is the framework used under Firefox (and other Mozilla applications like
Thunderbird). The other framework used in Unix systems is Qt. Firefox is officially supported only for GTK+ at the moment, therefore GTK+ is required for Firefox to run. Attempting to install Firefox on a a non-GTK+ based Linux build such as KaOSx, which is Qt based (details on KaOSx at the time of this writing: KDELibs version 4.1.4.3, Qt version 4.8.6, 64bit) would install GTK+ libraries along with it in o...
Plug-in Development Overview - Plugins
uffer or file. The result from the server can also be sent to a particular browser window or frame for display, or delivered to the plug-in instance in a new stream. The NPN_PostURLNotify function operates like NPN_PostURL, except that it notifies the plug-in of the result when the operation completes. For information about using these methods, see URLs. Starting in Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7), you can get the origin of the document in a secure, convenient way by calling NPN_GetValue() to retrieve the value of the variable NPNVdocumentOrigin. The returned value is the Unicode serialization of the document's origin converted to NFKC-encoded (that is, normalized) UTF-8. Your plug-in must free the returned string's memory by calling NPN_MemFree() when you're done wit...
URLs - Plugins
mpleted and the reason for completion. void NPP_URLNotify(NPP instance, const char* url, NPReason reason, void* notifyData); The instance and url parameters have the same definitions as those of NPN_GetURL. The notifyData parameter contains the private plug-in data passed to the corresponding call to NPN_GetURLNotify and NPN_PostURLNotify. Warning: In Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1), NPN_GetURLNotify() does not notify the plug-in if notifyData is NULL. See bug 638367 for details. Getting the URL and Displaying the Page To retrieve a URL and display it on a specified target page, you use the NPN_GetURL and NPN_GetURLNotify functions. The URL can be displayed in the same window or frame, a new window, or a different window or frame, depending on the valu...
Preferences System
hen calling openDialog() to open a preferences dialog, "toolbar" should be included in the features string. ...
Index - Firefox Developer Tools
(or Cmd+Shift+I) is pressed from one of the applications for which DOM Inspector has explicit support (i.e., menuitems placed via overlay). 9 Introduction to DOM Inspector DOM_Inspector The DOM Inspector is a Mozilla extension that you can access from the Tools > Web Development menu in SeaMonkey, or by selecting the DOM Inspector menu item from the Tools menu in Firefox and
Thunderbird, or by using Ctrl/Cmd+Shift+I in either application. DOM Inspector is standalone; it supports all toolkit applications, and it's possible to embed it in your own XULRunner app. DOM Inspector can serve as a sanity check to verify the state of the DOM, or it can be used to manipulate the DOM by hand, if desired. 10 All keyboard shortcuts Tools, l10n:priority This page lists all...
Remote Debugging - Firefox Developer Tools
debug Web sites and Web apps running in other browsers or runtimes. The other browser might be on the same device as the tools themselves or on a different device, such as a phone connected over USB. The detailed instructions for connecting the developer tools are specific to the runtime. You can connect the developer tools to Gecko-based runtimes like Firefox Desktop, Firefox for Android, and
Thunderbird. Firefox Desktop Firefox for Android over USB ...
Console.group() - Web APIs
ine group in the Web Console log. This indents following console messages by an additional level, until console.groupEnd() is called. Note: This feature is available in Web Workers. Syntax console.group([label]); Parameters label Label for the group. Optional. (Chrome 59 tested) Does not work with console.groupEnd(). Using groups in the console Requires Gecko 9.0(Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6) You can use nested groups to help organize your output by visually associating related messages. To create a new nested block, call console.group(). The console.groupCollapsed() method is similar, but the new block is collapsed and requires clicking a disclosure button to read it. Note: From Gecko 9 until Gecko 51, the groupCollapsed() method was the same as group(). Colla...
DOMParser - Web APIs
or document: <parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml"> (error description) <sourcetext>(a snippet of the source XML)</sourcetext> </parsererror> The parsing errors are also reported to the Error Console, with the document URI (see below) as the source of the error. Parsing SVG or HTML The DOMParser can also be used to parse an SVG document (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7) or an HTML document (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9). There are three different results possible, selected by the MIME type given. If the MIME type is text/xml, the result will be an XMLDocument If the MIME type is image/svg+xml, the result will be an SVGDocument If the MIME type is text/html, the result will be an HTMLDocument let parser = new DOMPar...
Document.createEntityReference() - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Prior to Gecko 7.0 this method showed up as present, due to bug bug 9850, it always only returned null. The only workaround is to create a text node, CDATA section, attribute node value, etc. ...
Document.createNodeIterator() - Web APIs
lled for each node in the subtree based at root which is accepted as included by the whatToShow flag to determine whether or not to include it in the list of iterable nodes (a simple callback function may also be used instead). The method should return one of NodeFilter.FILTER_ACCEPT, NodeFilter.FILTER_REJECT, or NodeFilter.FILTER_SKIP. See the Example. Note: Prior to Gecko 12.0 (Firefox 12.0 /
Thunderbird 12.0 / SeaMonkey 2.9), this method accepted an optional fourth parameter (entityReferenceExpansion) that is not part of the DOM4 specification, and has therefore been removed. This parameter indicated whether or not the children of entity reference nodes were visible to the iterator. Since such nodes were never created in browsers, this paramater had no effect. Example const nodeIterator = docu...
Document.importNode() - Web APIs
is imported -- the new node has no children. Note: In the DOM4 specification, deep was an optional argument with a default value of true. This default has changed in the latest spec! The new default value is false. Best Practice: Though it's still an optional argument, you should always provide the deep argument for backward and forward compatibility. With Gecko 28.0 (Firefox 28 /
Thunderbird 28 / SeaMonkey 2.25 / Firefox OS 1.3), the console warns developers not to omit the argument. Starting with Gecko 29.0 (Firefox 29 /
Thunderbird 29 / SeaMonkey 2.26)), a shallow clone is defaulted instead of a deep clone. Return value The copied importedNode in the scope of the importing document. Note: importedNode's Node.parentNode is null, since it has not yet been inserted into t...
Document.xmlVersion - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Returns the version number as specified in the XML declaration (e.g., <?xml version="1.0"?>) or "1.0" if the declaration is absent. This attribute was never really useful, since it always returned 1.0, and has been removed in DOM Level 4. As such, Firefox 10 no longer implements it. Its primary use in the past was to detect whether or not the document was being rendered as XML rather than HTML. ...
File.fileName - Web APIs
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. Obsolete since Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Returns the name of the file. For security reasons the path is excluded from this property. This property is deprecated. Use File.name instead. Syntax var name = instanceOfFile.fileName; Value A string Specification Not part of any specification. ...
File.getAsBinary() - Web APIs
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. Obsolete since Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Summary The getAsBinary method allows to access the file's data in raw binary format. Note: This method is obsolete; you should use the FileReader method readAsBinaryString() or readAsArrayBuffer() instead. Syntax var binary = instanceOfFile.getAsBinary(); Returns A string. Examp...
File.getAsText() - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Summary The getAsText method provides the file's data interpreted as text using a given encoding. Note: This method is obsolete; you should use the FileReader method readAsText() instead. Syntax var str = instanceOfFile.getAsText(encoding); Parameters encoding A string indicating the encoding to use for the returned data. If this string is empty, UTF-8 is assumed. Returns A string containing the file's data interpreted as text in the specified encoding. ...
Headers.getAll() - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The getAll() method of the Headers interface used to return an array of all the values of a header within a Headers object with a given name; in newer versions of the Fetch spec, it has been deleted, and Headers.get() has been updated to fetch all header values instead of only the first one. If the requested header doesn't exist in the Headers object, it returns an empty array. For security reasons, some headers can only be controller by the user agent. ...
KeyboardEvent - Web APIs
ill generate the following sequence of events: keydown keypress keyup keydown keypress keyup <<repeating until the user releases the key>> keyup In these environments, unfortunately, there's no way for web content to tell the difference between auto-repeating keys and keys that are just being pressed repeatedly. Auto-repeat handling prior to Gecko 5.0 Before Gecko 5.0 (Firefox 5.0 /
Thunderbird 5.0 / SeaMonkey 2.2), keyboard handling was less consistent across platforms. Windows Auto-repeat behavior is the same as in Gecko 4.0 and later. Mac After the initial keydown event, only keypress events are sent until the keyup event occurs; the inter-spaced keydown events are not sent. Linux The event behavior depends on the specific platform. It will either behave like Windows or Mac d...
NameList - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Note: Although this interface was previously implemented in Gecko, there was no way to actually create one. NameList has been removed, effective with Gecko 10.0 The NameList interface provides an abstraction for an ordered collection of name and namespace value pairs. Items can be accessed by a 0-based index. The DOM spec does not specify how the collection is to be implemented. Properties NameList.length Read only Methods NameList.contains() Returns a Boolean. ...
Node.nodePrincipal - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The Node.nodePrincipal read-only property returns the nsIPrincipal object representing current security context of the node. Note: This property exists on all nodes (HTML, SVG, MathML, XUL, etc.), but only if the script trying to use it has chrome privileges. Syntax principalObj = Node.nodePrincipal Value An nsIPrincipal object representing the node's security context. Notes This property is read-only; attempting to write to it will throw an exception. In addition, this property may only be accessed from privileged code. ...
Selection.selectionLanguageChange() - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Selection.selectionLanguageChange() method is a Gecko/Firefox internal method that was exposed to web pages until Firefox 29. ...
SharedWorker() - Web APIs
The SharedWorker() constructor creates a SharedWorker object that executes the script at the specified URL. This script must obey the same-origin policy. Note: there is disagreement among browser manufacturers about whether a data URI is of the same origin or not. Although Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7) and later accept data URIs, that's not the case in all other browsers. Syntax var myWorker = new SharedWorker(aURL, name); var myWorker = new SharedWorker(aURL, options); Parameters aURL A DOMString representing the URL of the script the worker will execute. It must obey the same-origin policy. name Optional A DOMString specifying an identifying name for the SharedWorkerGlobalScope representing the scope of the worker, which is mainly useful for debugging pur...
UserDataHandler - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Summary When associating user data with a key on a node, Node.setUserData() can also accept, in its third argument, a handler which will be called when the object is cloned, imported, deleted, renamed, or adopted. Per the specification, exceptions should not be thrown in a UserDataHandler. In both document.importNode() and Node.cloneNode(), although user data is not copied over, the handler will be called. Properties None. ...
VideoPlaybackQuality.totalFrameDelay - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The VideoPlaybackQuality.totalFrameDelay read-only property returns a double containing the sum of the frame delay since the creation of the associated HTMLVideoElement. The frame delay is the difference between a frame's theoretical presentation time and its effective display time. ...
WebSocket.close() - Web APIs
n Optional A human-readable string explaining why the connection is closing. This string must be no longer than 123 bytes of UTF-8 text (not characters). Exceptions thrown INVALID_ACCESS_ERR An invalid code was specified. SYNTAX_ERR The reason string is too long or contains unpaired surrogates. Note: In Gecko, this method didn't support any parameters prior to Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5). Specifications Specification Status Comment HTML Living Standard The definition of 'WebSocket.close()' in that specification. Living Standard Initial definition ...
Window.defaultStatus - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Summary Gets/sets the status bar text for the given window. Syntax var sMsg = window.defaultStatus; window.defaultStatus = sMsg; Parameters sMsg is a string containing the text to be displayed by default in the statusbar. ...
Window.directories - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Summary Returned the window personalbar toolbar object. Use the window.personalbar instead. Syntax var dirBar = window.directories; Parameters dirBar is an object of the type BarProp. ...
Window.home() - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The Window.home() method returns the window to the home page. ...
Window.mozAnimationStartTime - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Returns the time, in milliseconds since the epoch, at which animations started now should be considered to have started. This value should be used instead of, for example, Date.now(), because this value will be the same for all animations started in this window during this refresh interval, allowing them to remain in sync with one another. This also allows JavaScript-based animations to remain synchronized with CSS transitions and SMIL animations triggered during the same refresh interval. ...
Window.mozPaintCount - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Returns the number of times the current document has been painted to the screen in this window. Syntax var paintCount = window.mozPaintCount; paintCount stores the window.mozPaintCount property value. The window.mozPaintCount value is a long long, and starts at zero when the document is first created, incrementing by one each time the document is painted. ...
Window.onmozbeforepaint - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Summary An event handler for the MozBeforePaint event. This is used in concert with the window.mozRequestAnimationFrame() method to perform smooth, synchronized animations from JavaScript code. Syntax window.onmozbeforepaint = funcRef; funcRef is the handler function. Example See window.mozRequestAnimationFrame() for an example. Notes This event fires immediately before the browser window is repainted, if the event has been requested by one or more scripts calling window.mozRequestAnimationFrame(). ...
Window.routeEvent() - Web APIs
Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The Window method routeEvent(), which is obsolete and no longer available, used to be called to forward an event to the next object that has asked to capture events. Browser Compatibility The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
WindowOrWorkerGlobalScope.setInterval() - Web APIs
r possibility is to use an anonymous function to call your callback, although this solution is a bit more expensive. Example: var intervalID = setInterval(function() { myFunc('one', 'two', 'three'); }, 1000); Another possibility is to use function's bind. Example: var intervalID = setInterval(function(arg1) {}.bind(undefined, 10), 1000); Inactive tabs Requires Gecko 5.0(Firefox 5.0 /
Thunderbird 5.0 / SeaMonkey 2.2) Starting in Gecko 5.0 (Firefox 5.0 /
Thunderbird 5.0 / SeaMonkey 2.2), intervals are clamped to fire no more often than once per second in inactive tabs. The "this" problem When you pass a method to setInterval() or any other function, it is invoked with the wrong this value. This problem is explained in detail in the JavaScript reference. Explanation Code executed by s...
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
h. To implement a 0 ms timeout in a modern browser, you can use window.postMessage() as described here. Note: The minimum delay, DOM_MIN_TIMEOUT_VALUE, is 4 ms (stored in a preference in Firefox: dom.min_timeout_value), with a DOM_CLAMP_TIMEOUT_NESTING_LEVEL of 5. Note: 4 ms is specified by the HTML5 spec and is consistent across browsers released in 2010 and onward. Prior to (Firefox 5.0 /
Thunderbird 5.0 / SeaMonkey 2.2), the minimum timeout value for nested timeouts was 10 ms. Timeouts in inactive tabs throttled to >= 1000ms To reduce the load (and associated battery usage) from background tabs, timeouts are throttled to firing no more often than once per second (1,000 ms) in inactive tabs. Firefox implements this behavior since version 5 (see bug 633421, the 1000ms constant can be tweak...
Worker() - Web APIs
The Worker() constructor creates a Worker object that executes the script at the specified URL. This script must obey the same-origin policy. Note: that there is a disagreement among browser manufacturers about whether a data URI is of the same origin or not. Though Gecko 10.0 (Firefox 10.0 /
Thunderbird 10.0 / SeaMonkey 2.7) and later accept data URIs, that's not the case in all other browsers. Syntax var myWorker = new Worker(aURL, options); Parameters aURL A USVString representing the URL of the script the worker will execute. It must obey the same-origin policy. options Optional An object containing option properties that can be set when creating the object instance. Available properties are as follows: type: A DOMString specifying the type of worker to create. The value can be c...
Synchronous and asynchronous requests - Web APIs
tion of code to handle the "timeout" event by setting the ontimeout handler. Usage: function showMessage (message) { console.log(message + this.responseText); } loadFile("message.txt", 2000, showMessage, "New message!\n"); Here, we're specifying a timeout of 2000 ms. Note: Support for timeout was added in Gecko 12.0. Synchronous request Note: Starting with Gecko 30.0 (Firefox 30.0 /
Thunderbird 30.0 / SeaMonkey 2.27), Blink 39.0, and Edge 13, synchronous requests on the main thread have been deprecated due to their negative impact on the user experience. Synchronous XHR requests often cause hangs on the web. But developers typically don't notice the problem because the hang only manifests with poor network conditions or when the remote server is slow to respond. Synchronous XHR is now ...
Accessibility FAQ - Accessibility
For interface design with XUL, follow the Accessibile XUL Authoring Guidelines (archive.org). I'm interested in helping promote the fine accessibility features that Firefox provides, what can I do? Join the ...
background-size - CSS: Cascading Style Sheets
mensions, it also has intrinsic proportions. If it has no dimensions or only one dimension, it may or may not have proportions. CSS <gradient>s have no intrinsic dimensions or intrinsic proportions. Background images created with the element() function use the intrinsic dimensions and proportions of the generating element. Note: The behavior of <gradient>s changed in Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5). Before this, they were treated as images with no intrinsic dimensions, but with intrinsic proportions identical to that of the background positioning area. Note: In Gecko, background images created using the element() function are currently treated as images with the dimensions of the element, or of the background positioning area if the element is SVG, with the correspon...
Audio and Video Delivery - Developer guides
e beginning through 10.5 seconds. http://example.com/video.ogv#t=,02:00:00 Specifies that the video should play from the beginning through two hours. http://example.com/video.ogv#t=60 Specifies that the video should start playing at 60 seconds and play through the end of the video. Note: The playback range portion of the media element URI specification was added to Gecko 9.0 (Firefox 9.0 /
Thunderbird 9.0 / SeaMonkey 2.6). At this time, this is the only part of the Media Fragments URI specification implemented by Gecko, and it can only be used when specifying the source for media elements, and not in the address bar. Error handling Starting in Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1), error handling has been revised to match the latest version of the HTML5 specification. Inst...
Event developer guide - Developer guides
You should instead use the standard touch events API, supported since Gecko/Firefox 6 with multi-touch support added in Gecko/Firefox 12.Using device orientation with 3D transformsThis article provides tips on how to use device orientation information in tandem with CSS 3D transforms. ...
Index - Developer guides
nts This overview of events and event handling explains the code design pattern used to react to incidents occurring when a browser accesses a web page, and it summarizes the types of such incidents modern web browsers can handle. 25 Touch events (Mozilla experimental) DOM The experimental touch events API described on this page was available from Gecko 2.0 (Firefox 4 /
Thunderbird 3.3 / SeaMonkey 2.1) to Gecko/Firefox 17. You should instead use the standard touch events API, supported since Gecko/Firefox 6 with multi-touch support added in Gecko/Firefox 12. 26 Using device orientation with 3D transforms Advanced, CSS, DOM, NeedsUpdate, Orientation, Transforms This article provides tips on how to use device orientation information in tandem with CSS 3D ...
Proxy - JavaScript
item object by its property This proxy extends an array with some utility features. As you see, you can flexibly "define" properties without using Object.defineProperties. This example can be adapted to find a table row by its cell. In that case, the target will be table.rows. ...
<mpadded> - MathML
ith "+" or "-") . width Sets or increments the width. Possible values: Any length or an increment/decrement (a length prefixed with "+" or "-") . Pseudo-units It is possible to use the keywords "depth", "height", and "width" as a pseudo-unit for the attributes depth, height, lspace, voffset, and width. They represent each length of the same-named dimension. Prior to Gecko 7.0 (Firefox 7.0 /
Thunderbird 7.0 / SeaMonkey 2.4) the MathML2 pseudo-unit lspace was allowed, which is no longer present in the MathML3 Recommendation and has been removed now. Examples <math> <mpadded height="+150px" width="100px" lspace="2height"> <mi> x </mi> <mo> + </mo> <mi> y </mi> </mpadded> </math> Specifications Specification Status Comment MathML 3.0The definition ...
<mtable> - MathML
environments baseline. center: See baseline. top: The top of the table aligns on the environments baseline. In addition, values of the align attribute can end with a rownumber (e.g. align="center 3"). This allows you to align the specified row of the table rather than the whole table. A negative Integer value counts rows from the bottom of the table. Starting with Gecko 8.0 (Firefox 8.0 /
Thunderbird 8.0 / SeaMonkey 2.5) the interpretation of negative values has been corrected (bug 601436). In Gecko 17.0 (Firefox 17.0 /
Thunderbird 17.0 / SeaMonkey 2.14) the parsing has been updated to treat whitespace correctly. alignmentscope Unimplemented class, id, style Provided for use with stylesheets. columnalign Specifies the horizontal alignment of the cells. Multiple values separated by space...