Search completed in 1.23 seconds.
690 results for "seamonkey":
Your results are loading. Please wait...
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. You can use this page if all you really want is a button for some special purpose. ...
... a starting point if you plan to write a more complex extension. Note that this extension is very 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. ...
... plan to write a more complex extension. Note that this extension is very 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. ...
...And 16 more matches
Extensions support in SeaMonkey 2 - Archive of obsolete content
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. The Basics To support SeaMonkey 2 as a target application, you need to add it to the list of target applications in the extension's install.rdf file. The code for that will look something like this: <em:targetApplication> <!-- SeaMonkey --> <Description> <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id> <em:minVersion>2.0</em:minVersion> <em:maxVersion>2.*</em:maxVersion> </Description> </em:targetApplication> The install.js is not supported any more and should be removed. Differences as compared to other toolkit/-based applications You need to overlay/open differ...
...id> <em:minVersion>2.0</em:minVersion> <em:maxVersion>2.*</em:maxVersion> </Description> </em:targetApplication> The install.js is not supported any more and should be removed. Differences as compared to other toolkit/-based applications You need to overlay/open different chrome URLs as compared to Firefox. ...
...There are exceptions, but these are few and far between. SeaMon...
...And 12 more matches
Simple SeaMonkey build
Minimum and recommended hardware requirements for Mozilla development are: Recommended: 8GB of RAM (having only 4GB RAM and 4GB swap may give memory errors during compile) 35 GB free disk space. This will accomodate Visual Studio 2013 Community Edition, the required SDKs, the MozillaBuild package, the Mercurial source repository and enough free disk space to compile. ...
...-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 'Development Tools' 'Development Librari...
...fault you will arrive in your Windows user home directory which is likely to contain spaces in its path (e.g. C:\Users\myaccount). This can lead to problems later in the building stage. To avoid that, create a directory without spaces in its path (e.g. mkdir /c/mozilla-src) and switch to it before building (cd /c/mozilla-src). Problems? See Windows build prerequisites. Building SeaMonkey Building SeaMonkey requires at least 2 GB of disk space and 256 MB of available RAM. # Get the source # for Aurora, use https://hg.mozilla.org/releases/comm-aurora/ and comm-aurora instead # for Beta, use https://hg.mozilla.org/releases/comm-beta/ and comm-beta instead # for Release, use https://hg.mozilla.org/releases/comm-release/ and comm-release instead hg clone https://hg.mozilla.org/comm-...
...And 2 more matches
Creating a Skin for SeaMonkey 2.x - Archive of obsolete content
Introduction You're going to make a theme for SeaMonkey 2, but don't know how? I hope this manual will help you. Contents Getting Started ...
Textbox (XPFE autocomplete) - Archive of obsolete content
alueAt, 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. ...
...ce Gecko 1.9.1 Type: boolean Note: Applies to: Thunderbird and SeaMonkeyIf true, the autocomplete popup will be displayed even when there are no matches. If false, the default value, the popup will be hidden. This attribute is obsolete as of Gecko 1.9.1; to control the display of the popup, use the minresultsforpopup attribute instead. 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. ...
... 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. ...
...And 23 more matches
textbox (Toolkit autocomplete) - Archive of obsolete content
ttributes 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 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. ...
...h;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-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 Thunde...
...And 16 more matches
imgIContainer
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(aCount), const] in ch...
... 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 Missing Descri...
...aged 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 unsigned long i...
...And 16 more matches
Complete - Archive of obsolete content
Introduction You can use the Custom Toolbar Button tutorial as a very simple introduction to extensions. ...
...Introduction You can use the Custom Toolbar Button tutorial as a very simple introduction to extensions. ...
...re 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 implements languages and themes. Overall structure This extension's internal name is allcustom. It uses this name as the...
...And 12 more matches
Index - Archive of obsolete content
of guidelines on how to control the look and feel of your extension while leaving 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 distri...
... 279 Custom XUL Elements with XBL No summary! 280 Getting Started with Firefox Extensions Extensions 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. 281 Handling Preferences Add-ons, Extensions, XUL, XUL School No summary! 282 Intercepting Page Loads No summary! 283 Introduction Welcome to the XUL School Tutorial! 284 JavaScript Object Management JavaScript, Object, Tutorials No summary! 285 Local Storage Guide, Storage, XUL ...
...r extensions to easily save and restore data across Firefox sessions. There is a simple API that lets extensions access the session store feature. 298 Setting up an extension development environment Add-ons, Extensions, Guide 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). 299 Signing an XPI Add-ons, Code snippets, Extensions, Guide, NeedsHelp, XPInstall This article describes how to sign your own Firefox extensions with a code-signing certificate on a Windows platform. It was developed from the linux article So you want to sign your XPI package? by MozDev Group's Pete Collins. 300 Signing an extension Ad...
...And 9 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. ...
... 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. ...
...arious 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. ...
...And 9 more matches
nsINavBookmarksService
s/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); void beginUp...
...eans 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 aParentFolder ...
... 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( in nsIURI aU...
...And 9 more matches
nsIAppShellService
xpfe/appshell/nsIAppShellService.idlScriptable Provides the AppShellService. ...
...ConsiderQuit 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() Obsolete since Ge...
...seTopLevelWindow( 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 window(s) opened. ...
...And 7 more matches
toolbar - Archive of obsolete content
v-events" accesskey="E" label="Events" disabled="true"/> </toolbar> </toolbox> Attributes autohide Type: boolean When set to true, the toolbar will be invisible unless the Alt key is pressed by the user. When set to false, the default, the toolbar is visible. This only has an effect on Windows and needs to be combined with type="menubar" and a menubar element. ...
...nubar element. currentset Not in SeaMonkey 1.x Type: comma-separated string The current set of displayed items on the toolbar. This will be modified when the user customizes the toolbar. The value of this attribute should be a comma-separated list of item IDs from the toolbarpalette or, additionally, any of the following strings: "separator", "spring", "spacer". customindex Not in SeaMonkey 1.x Type: integer This value is the index of the toolbar in the list of the custom toolbars. The value is updated automatically by the toolbar customization dialog. customizable Not in SeaMonkey 1.x Type: boolean Set this attribute to true on toolbars that can be customized. This causes the set of buttons to be persisted across sessions. ...
...When set to false, the default, the grippy will be shown. ...
...And 6 more matches
2006-11-17 - Archive of obsolete content
Discussions How to translate mozilla to a language called Quiche How to translate mozilla to a language called Quiche. ...
... Discussions How to translate mozilla to a language called Quiche How to translate mozilla to a language called Quiche. ...
... Discussions How to translate mozilla to a language called Quiche How to translate mozilla to a language called Quiche. ...
...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); Obs...
...e 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 aFaviconURI, out AUTF8St...
...ize 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 aFaviconURI ); Pa...
...And 6 more matches
Mozilla Quirks Mode Behavior
s 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 be applied to li...
...f 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 selector, if a pse...
...aceholder 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 standards mode.] Line height (not line-height) calculations are different to fix bug 5821 and bug 24186 (some other issues are described in bug 22274). See almost standards mode for more details. There are a bunch of quirks to get percentage heights on images, tables, ob...
...And 5 more matches
nsIEditorIMESupport
editor/idl/nsIEditorIMESupport.idlScriptable Please add a summary to this article. ...
...d 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
Command line options
te: profile_name is case sensitive. If you don't specify a profile name then the profile manager is opened instead. You must use an upper case P on Linux with versions older than 7.x, as there lower case invokes purify mode (memory and leak detection). Other platforms accept both upper and lower case. -profile "profile_path" Start with the profile with the given path. Firefox, Thunderbird and SeaMonkey2.x only. "profile_path" can either be an absolute path ("/path/to/profile") or a relative path ("path/to/profile"). Note: On Mac OS X specifying a relative path is not supported anymore from Firefox 4.0 and up due to a regression, see bug 673955. Browser -browser Start with the browser component. Firefox and SeaMonkey only. -foreground Make this instance the active application. -new-tab...
...n absolute path ("/path/to/profile") or a relative path ("path/to/profile"). Note: On Mac OS X specifying a relative path is not supported anymore from Firefox 4.0 and up due to a regression, see bug 673955. Browser -browser Start with the browser component. Firefox and SeaMonkey only. -foreground Make this instance the active application. -new-tab URL Open URL in a new tab. Firefox and SeaMonkey2.x only. -new-window URL Open URL in a new window. Firefox and SeaMonkey2.x only. --kiosk URL Open URL full screen without user interface. Firefox 71 and later. -preferences Open options/preferences window. Firefox and SeaMonkey2.x only. -private Opens Firefox in permanent private browsing mode. Firefox 3.6 and later only. May not be applicable in older Ubuntu for Firefox 20 and later, c...
...refox. Firefox 20 and later only. -private-window URL Open URL in a new private browsing window. If a private browsing window is already open, a new tab is opened in the existing window. Firefox 29 and later only. Does not work in Firefox 31 on linux mint 17 nor on Firefox 48 on Windows 7. URL opens in a non-private window. -search term Search term with your default search engine. Firefox and SeaMonkey 2.1 and later only. -setDefaultBrowser Set the application as the default browser. Firefox only. -url URL Open URL in a new tab or window, depend on the browser option. -url can be omitted. You may list multiple URLs, separated by spaces. Firefox and SeaMonkey only. firefox www.mozilla.com firefox www.mozilla.com developer.mozilla.org Note: When opening multiple URLs, Firefox always opens ...
...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 lon...
...Return value Missing Description Exceptions thrown Missing Exception Missing Descript...
...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.8 (Firefox 1.5 ...
...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 ...
...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. ...
...s 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. ...
... 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. Return value An integ...
...ScrollbarVisibility() 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 29.0 / Thunderbird...
...And 4 more matches
Index
2 Account Provisioner The Account Provisioner is the dialog that first comes up when starting Thunderbird. ...
...ager interfaces thunderbird This page describes the programmatic interfaces behind the Activity Manager component. The functionality of the component is described on the Activity Manager page, and the Activity Manager examples page has code snippets. See nsIActivityManager.idl and nsIActivity.idl files for source documentation. ...
...Address book 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. ...
...And 4 more matches
Source code directories overview - Archive of obsolete content
This document is a guide for developers to the directory structure of the Mozilla source code tree. It gives a bird's eye view of the source code so a developer can get a good idea what is in Mozilla and where to find things. It is a good document for a new Mozilla developer to start learning about the Mozilla code base. This document contains material for SeaMonkey, Firefox, and Toolkit. It is a living document which is (supposed to be) updated monthly according to changes in the Mozilla source tree. See also similar information in Mozilla Source Code Directory Structure, and also see the more detailed overview of how the parts of Gecko fit together. Introduction: Common Subdirectories A common naming scheme is used throughout the Mozilla source trees. At the top level is the name of the pro...
...hich is (supposed to be) updated monthly according to changes in the Mozilla source tree. See also similar information in Mozilla Source Code Directory Structure, and also see the more detailed overview of how the parts of Gecko fit together. Introduction: Common Subdirectories A common naming scheme is used throughout the Mozilla source trees. At the top level is the name of the product (e.g. seamonkey). At the second level is the name of the module (e.g. the editor directory in seamonkey). The third level is where the common naming scheme usually takes over. Many third level directories contain the base, the public and the idl directories. Although not required, these common names are typically used for a common purpose. If files can be grouped into submodules, they are usually put in their ow...
...y). The third level is where the common naming scheme usually takes over. Many third level directories contain the base, the public and the idl directories. Although not required, these common names are typically used for a common purpose. If files can be grouped into submodules, they are usually put in their own third level directory and given a unique name (e.g. txmgr in the editor directory in seamonkey). Beneath this third level directory, there may be fourth level base, public and idl directories. Thus, the scheme is recursive; it can apply to submodules, sub-submodules and so on. base contains the basic (core) functionality for the module. Base contains all the source code that cannot be categorized into a submodule. build contains any special makefiles for building the particular module.
...And 3 more matches
Getting Started - Archive of obsolete content
A .jar file is in reality a renamed zip archive. Opening the .jar files in your archive manager of choice should result in the file being automatically detected as being a zip archive. However, if your application doesn't detect classic.jar as a standard zip archive, rename the file classic.zip and continue extraction. ...
...A .jar file is in reality a renamed zip archive. Opening the .jar files in your archive manager of choice should result in the file being automatically detected as being a zip archive. However, if your application doesn't detect classic.jar as a standard zip archive, rename the file classic.zip and continue extraction. ...
...e Seamonkey 2 installation directory. A .jar file is in reality a renamed zip archive. Opening the .jar files in your archive manager of choice should result in the file being automatically detected as being a zip archive. However, if your application doesn't detect classic.jar as a standard zip archive, rename the file classic.zip and continue extraction. Classic.jar locations Linux: folder_with_seamonkey/chrome/classic.jar Windows: folder_with_seamonkey\chrome\classic.jar For Mac OS X: folder_with_seamonkey/chrome/classic.jar Copy classic.jar to another easily accessible folder -- Classic is recommended -- extract the contents of that folder, being sure to maintain the directory structure. Directories Inside classic.jar is one directory, skin. skin skin simply contains another directory, classic...
...And 3 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 n...
...F8String 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 ); Parameters aURI Th...
...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 markPageAsFollowedLink( in nsIU...
...And 3 more matches
nsIDownloadManager
oads.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 nsIMIMEInfo aMIMEInfo,...
...e 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 progress, or one tha...
... 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.5 / Thunderbird ...
...And 3 more matches
nsIXPConnect
js/src/xpconnect/idl/nsIXPConnect.idlNot scriptable Provides the XPConnect service. ...
...ct 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. aParent The parent ...
...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 be a strong GC ro...
...And 3 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 instance without ...
... 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 another instance wit...
...And 2 more matches
Mac stub installer - Archive of obsolete content
Run the installer from the opt "Mozilla Installer" folder. ...
... Run the installer from the opt "Mozilla Installer" folder. ...
...er built and ready to debug you may want to debug the XPInstall engine in the context of the installer rather than in the context of the browser. To do this, in addition to the above steps to set up the mac installer to debug you will need to do the following: Create a file named xpcom.xpi with the shared libraries in the structure described under the [xpcom] section in: <http://lxr.mozilla.org/seamonkey/sou...ackages-mac#33> Note that if you are using the debug target of the installer binary all shared libraries are expected to have the name format <libName>Debug.shlb Now set a break point at XPI_Init() in the mac installer code and step into xpistub and eventually the XPInstall engine will load including symbols so you can set a break point in the XPInstall engine itself. How do I add an i...
...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. ...
...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 The presentat...
...cessible 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 The DOM windo...
...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 nsICmdLin...
...rofile 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 window(s) opened. ...
...l 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 ns...
...dering 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 destroyed. Native code o...
...r'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 document should n...
...And 2 more matches
nsIPluginHost
dom/plugins/base/nsIPluginHost.idlScriptable Please add a summary to this article. ...
...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 only!deletePluginNa...
...OCKS 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 getPluginFactory( ...
...And 2 more matches
Mozilla
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 Using C++ in Mo...
...infrastructure. This document will help you understand all the pieces that comprise Mozilla's continuous integration systems. Cookies in Mozilla Suggestions as to needed documentation can be directed to Mike Connor. Cookies Preferences in Mozilla These preferences apply to most Mozilla products (including Firefox and Seamonkey), however they are application-specific, so not all of them may apply to you. The default values given are for Firefox 3. Creating a Firefox sidebar Web publishers can offer visitors a Firefox sidebar to encourage their engagement. There are two ways to create a sidebar for Firefox users: the Social API and an extension. You can choose either dependi...
...ir engagement. There are two ways to create a sidebar for Firefox users: the Social API and an extension. You can choose either depending on your needs and resources. Creating a Language Pack To create a language pack, or a localization repack, you first need to go through the initial setup process. Creating a localized Windows installer of SeaMonkey Preamble: not all of the programs listed below are necessary. Some of them are simply the ones I use because I like them, while others are scripts that I've created to speed up the work. You can in every case choose the program you prefer to do some operations, and you can also decide not to use any of my scripts and manually enter all of the commands by hand. ...
...And 2 more matches
Browser detection using the user agent - HTTP
diaQueryUpdated = orientationChanged = false; },0)); Which part of the user agent contains the information you are looking for? As there is no uniformity of the different part of the user agent string, this is the tricky part. Browser Name When people say they want "browser detection", often they actually want "rendering engine detection". Do you actually want to detect Firefox, as opposed to SeaMonkey, or Chrome as opposed to Chromium? Or do you actually simply want to see if the browser is using the Gecko or the WebKit rendering engine? If this is what you need, see further down the page. Most browsers set the name and version in the format BrowserName/VersionNumber, with the notable exception of Internet Explorer. But as the name is not the only information in a user agent string that is in...
...only information in a user agent string that is in that format, you can not discover the name of the browser, you can only check if the name you are looking for. But note that some browsers are lying: Chrome for example reports both as Chrome and Safari. ...
...ring, Chromium often reports itself as Chrome too or Seamonkey sometimes reports itself as Firefox. Also, pay attention not to use a simple regular expression on the BrowserName, user agents also contain strings outside the Keyword/Value syntax. Safari & Chrome contain the string 'like Gecko', for instance. ...
...And 2 more matches
Download Manager preferences - Archive of obsolete content
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 paused but will not...
...0000. browser.download.manager.retention 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. ...
...ether or not to use the Downloads window (true) or display download status in the status bar (false) in the browser window. Default value is true. browser.download.useDownloadDir A boolean value that indicates whether or not the user's preference is to automatically save files into the download directory. If this value is false, the user is asked what to do. In Thunderbird and SeaMonkey the default is false. In Other Applications the default is true. browser.helperApps.deleteTempFileOnExit A boolean value that indicates whether or not to delete the temporary file used by the Download Manager after the download is complete. On Mac the default value is false. On Other OSes the default value is true If a preference is not set when the Download Manager...
...r.download.folderList equals 2. browser.download.folderList Indicates the default folder to download a file to. 0 indicates the Desktop; 1 indicates the systems default downloads location; 2 indicates a custom (see: browser.download.dir) folder. In Firefox 3 and earlier, the default is 0 (except on Windows Vista, where it's toggled to 1 on initial launch). In Firefox 3.5 and SeaMonkey, the default is 1 on all platforms. For Thunderbird, the default is 0. See also nsIDownloadManager nsIDownload nsIDownloadManagerUI ...
Unix stub installer - Archive of obsolete content
Copy the installer.ini and config.ini files over into the src2 directory. ...
...en in dist. These are eventually zipped with the directory structure preserved. Read the top of the packages-unix file for it's simple syntax and semantics. Add an <component>.jst install script template file (the jst extension stands for javascript template indicating this is a template for the final install.js for the <component>.xpi. Checkin the <component>.jst to the: <http://lxr.mozilla.org/seamonkey/sou.../packager/unix> directory. Note that there are two macro strings in the .jsts: $Version$ which is replaced at packages time with the browser version. $SpaceRequired$ which is replaced at package time with the amount of space in KB required for the package when it is fully extracted. Add a [ComponentX] section to the config.ini template file named config.it found at: <http://lxr.mozilla.
....../packager/unix> directory. Note that there are two macro strings in the .jsts: $Version$ which is replaced at packages time with the browser version. $SpaceRequired$ which is replaced at package time with the amount of space in KB required for the package when it is fully extracted. ...
...The resulting stub and full installers will be delivered to "mozilla/installer/{stub,sea}". ...
Windows stub installer - Archive of obsolete content
(If you need to rebuild stub installer, got to /mozilla/xpinstall/wizard/windows/setup and type "nmake /f makefile.win") Go to mozilla/xpinstall/wizard/windows/builder On the shell prompt type "perl build.pl". Now you will find an installer *and* the xpcom.xpi and other debug xpis delivered to mozilla/dist/WIN32_D.OBJ/install. ...
...een in dist. These are eventually zipped with the directory structure preserved. Read the top of the packages-win file for it's simple syntax and semantics. Add an <component>.jst install script template file. The jst extension stands for javascript template indicating this is a template for the final install.js for the <component>.xpi. Checkin the <component>.jst to the: <http://lxr.mozilla.org/seamonkey/sou...ckager/windows> directory. Note that there are several macro strings--a macro name wrapped in dollar ($) signs--which may be used in the .jsts, including: $Version$ which is replaced at packages time with the browser version. $SpaceRequired$ which is replaced at package time with the amount of space in KB required for the package when it is fully extracted. Other macro strings listed in ...
..."Version", which is one of the macro strings, until you find the line $line =~ s/\$Version\$/$inVersion/i; Other macro strings are grouped in this section. As with "Version", the macro name will be the first string in the substitution statement on each line. ...
...The resulting stub installer and packages will be delivered to "mozilla/dist/WIN32OBJ_D/installer". ...
Custom toolbar button - 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 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. ...
... this extension is very 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. ...
... Required tools You will need two tools. ...
... Required tools You will need two tools. ...
Using nsIXULAppInfo - Archive of obsolete content
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. ...
...For example, one of unfrozen functions you're ...
...For example, one of unfrozen functions you're relying on was changed. Note: nsIX...
...mponents.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 your code is running under. For example, one of unfrozen functions you're relying on was changed. Note: nsIXULAppInfo provides information about the application and the platform, be careful to use the right one, especially when dealing with XULRunner-based applications. In such ca...
textbox - Archive of obsolete content
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 code This event ...
...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: script code This even...
... 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, used for e...
...olds 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 attribute. plac...
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. ...
...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 property of CSS), with ...
...ies 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 stretching mathemat...
... 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 scientists. MathJax font...
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. ...
...ee 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 getSelection(); Paramete...
... 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() DOMString queryCommand...
...ided 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. Implemented by Clas...
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 Ge...
...laceWord, 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 immediately. Note: ...
...sers, 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". setFilter() Used...
...eck() 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. ...
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...
... 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 node which was cl...
...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. ...
...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" is fired just be...
...lse 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 bookmarks are suc...
... 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 aIsInitialImport ); ...
nsITreeView
layout/xul/base/src/tree/public/nsITreeView.idlScriptable This interface is used by the tree widget to get information about what and how to display a tree widget. Inherits from: nsISupports Last changed in Gecko 22 (Firefox 22 / Thunderbird 22 / SeaMonkey 2.19) Implementing a nsITreeView in lieu of DOM methods for tree creation can improve performance dramatically, and removes the need to make changes to the tree manually when changes to the database occur. Further information about creating treeviews is given in the XUL Tutorial. Method overview boolean canDrop(in long index, in long orientation, in nsIDOMDataTransfer dataTransfer); boolean canDropBeforeAfter(in long index, in boolean before); Obsolete since Gecko 1.8 boolean canDropOn(in long index)...
...rientation 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 to test drop bef...
...e 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 occur. Otherwise fa...
... 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, properties) { v...
Miscellaneous - Archive of obsolete content
Example for Firefox: Services.startup.quit(Services.startup.eForceQuit|Services.startup.eRestart); M...
... Example for Firefox: Services.startup.quit(Services.startup.eForceQuit|Services.startup.eRestart); Mouse and keyboard Detecting mouse wheel events When scrolling the mouse wheel on an ...
...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 // handling for fields dynamically added to the page (e.g., by page...
Index - Archive of obsolete content
Archive › Mozilla › XUL › Index
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:SeaMonkey.) 958 Code Samples Add-ons, Extensions This page contains sample code that you can use with the Custom Toolbar Button tutorial. 959 Complete ...
...bird. (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. ...
...ve 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. (For SeaMonkey 2, Firefox, Thunderbird and Sunbird, see the page: Custom Toolbar Button) 961 Toolbar customization events Toolbars, XUL When toolbars are customized, events are sent to their parent window. You can use window.addEventListener() to listen for these events in order to keep abreast of changes to toolbars. 962 Tree Widget Changes XUL This describes changes i...
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. ...
...hat use backslash characters, double each backslash character. On operating systems that use forward-slash characters, specify the file in the normal way. const path = "C:\\WINDOWS\\CHARMAP.EXE" var file = Components .classes["@mozilla.org/file/local;1"] .createInstance(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 = "...
...me = "Toolkit:PasswordManager" const uri = chrome://messenger/content/preferenc...wpasswords.xul" Mail & Newsgroups const name = "mail:3pane" const uri = "chrome://messenger/content/" Sunbird Passwords* const name = "Toolkit:PasswordManager" const uri = "chrome://passwordmgr/content/passwordManager.xul" Seamonkey Navigator const name = "navigator:browser" const uri = "chrome://navigator/content/" Mail & Newsgroups const name = "mail:3pane" const uri = "chrome://messenger/content/" Composer const name = "composer:html" const uri = "chrome://editor/content/" Address Book const name = "m...
Archived Mozilla and build documentation - Archive of obsolete content
to install the DOM Inspector extension as well. Creating a Skin for Mozilla In order to create a skin for mozilla, you will need to know three things. How to edit images, extract zip files, and how to modify CSS. Mozilla uses standard gif, png, and jpeg images for the buttons and CSS to style everything else in the interface. Creating a Skin for SeaMonkey 2.x You're going to make a theme for SeaMonkey 2, but don't know how? I hope this manual will help you. Creating regular expressions for a microsummary generator A regular expression is a special kind of string (i.e. a sequence of characters) that matches patterns of characters in other strings. Microsummary generators use them to identify the pages that the gene...
...g 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 placeh...
...especially when you have different fixes in the same tree. Using a distributed versioning system like SVK takes out much of the hassle of managing your patches. Venkman Venkman is the code name for Mozilla's JavaScript Debugger. It aims to provide a powerful JavaScript debugging environment for Mozilla based browsers namely Firefox, Netscape 7.x/9.x and SeaMonkey. Note that it is not included in the Gecko-based browsers such as K-Meleon, Galeon and Netscape 8.x. Venkman has been provided as part of the Mozilla install distribution since October 2001, as well as an extension package in XPI format. Video presentations Mozilla is actively working to produce video presentations that can help you learn how t...
2006-10-13 - Archive of obsolete content
Do early testing using code from this link. Discussions MozillaTranslator 5.13 RFEs MozillaTranslator 5.13 is ready to be released in a few weeks. Author is declaring RFE (Request for Enhancement). A few bugs have been listed. ...
...Do early testing using code from this link. Discussions MozillaTranslator 5.13 RFEs MozillaTranslator 5.13 is ready to be released in a few weeks. Author is declaring RFE (Request for Enhancement). A few bugs have been listed. ...
...Do early testing using code from this link. Discussions MozillaTranslator 5.13 RFEs MozillaTranslator 5.13 is ready to be released in a few weeks. Author is declaring RFE (Request for Enhancement). A few bugs have been listed. ...
Chrome registration
d 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 line is a comment - ...
...S.jar!/locale/necko/ content xbl-marquee jar:comm.jar!/content/xbl-marquee/ content pipnss jar:pipnss.jar!/content/pipnss/ locale pipnss en-US jar:en-US.jar!/locale/pipnss/ # Firefox-only overlay chrome://browser/content/pageInfo.xul chrome://pippki/content/PageInfoOverlay.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} # SeaMonkey-only overlay chrome://navigator/content/pageInfo.xul chrome://pippki/content/PageInfoOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} overlay chrome://communicator/content/pref/preftree.xul chrome://pippki/content/PrefOverlay.xul content pippki jar:pippki.jar!/content/pippki/ locale pippki en-US jar:en-US.jar!/locale/pippki/ content ...
...tered chrome. This is very helpful when trying to write a chrome.manifest file as you can inspect where the files are being mapped from (jar files, local directory, etc.) Old-style contents.rdf manifests Before the plaintext manifests were introduced (which happened in Firefox 1.5, Toolkit 1.8), RDF manifests named "contents.rdf" were used to register chrome. This format is deprecated; however, SeaMonkey versions before version 2 do not support the plaintext manifest format yet, so contents.rdf manifests are required for extensions that wish to maintain backwards compatibility with Firefox 1.0 or the suite. Gecko 1.9.2 note The contents.rdf manifest format is no longer supported at all starting with Gecko 1.9.2; add-ons already installed using this format will continue to work but can no lo...
Cookies Preferences in Mozilla
These preferences apply to most Mozilla products (including Firefox and Seamonkey), however they are application-specific, so not all of them may apply to you. The default values given are for Firefox 3. ...
...eamonkey), however they are application-specific, so not all of them may apply to you. The default values given are for Firefox 3. ...
...ost Default Value: 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.en...
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...
...etesearch="history"/> The type="autocomplete" turns on the autocomplete mechanism and the autocompletesearch="history" sets the source for the autocomplete. There are 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...
...es. 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. ...
Index
la, Translation, l10n Localization (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 ...
...ion, 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, Localization P...
...ation 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 can find the ...
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 p...
...g\ or C:\Program 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) you...
...lone) your 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 y...
Localizing with Mozilla Translator
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 puts a fuzzy flag on e...
...en L10n were done always on shipped en-US JARs and when Mozilla Suite had five L10n JARs: ab-CD.jar, ab-win.jar, ab-mac.jar, ab-unix.jar, and CD.jar. MT thus referred to ab-CD.jar contents as ''Platform neutral'' platform, CD.jar as '''region''' platform (or regional files), and the other three as ''Windows platform'', ''Mac platform'' and ''Unix platform''. This JAR structure is now used just by SeaMonkey 1.1.x. When Mozilla L10n switched to ''Source L10n'', one of the many problems that MT had to solve was how to fit a directory structure in what had been designed for five JARs, and the ''patch'' consisted of providing a ''read from dir instead of JAR'' and ''put everything inside Platform neutral''. That has worked well (OK, more or less) :-) as long as you could instruct MT to use just one ''...
...instead of JAR'' and ''put everything inside Platform neutral''. That has worked well (OK, more or less) :-) as long as you could instruct MT to use just one ''root'' L10n directory, but this is no longer the case with Mercurial. MT could be changed for a MT product to have a list of ''root'' directories instead of just one, and maybe someday it will do, but it will probably won't happen before SeaMonkey 1.1.x dies (and SeaMonkey 2.0 finally conquers the web, if I may add). ;-) Enough chatting, what's next? Anyway, we need to work around the full-fledged repository problem. These are your options: Create one product for each ''root'' directories. This means browser, extensions/reporter, dom, netwer, security, and toolkit. Besides that, you will need to create one tiny product for other-li...
AT APIs Support
details than existed analogues for AT-SPI and MSAA This documentation explains how makers of screen readers, voice dictation packages, onscreen keyboards, magnification software and other assitive technologies can support Gecko-based software. We provide for them the support of these products on Windows, Linux/Unix and OS X platforms. Accessible Gecko Gecko is a rendering engine that Firefox, SeaMonkey, Netscape and yelp use. Gecko can render a variety of content, not just HTML and supports key web standards such as Cascading Style Sheets, Javascript and the W3C DOM. Gecko also handles the users keystrokes and mouse clicks. Gecko is the core architecture that we are adding accessibility to, in order to support basic accessibility in all applications that are based on it. Gecko Based Applicatio...
...ntrols. 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, open source internet tv an...
...o-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 on inside the user interfa...
mozIVisitInfoCallback
void handleError( in nsresult aResultCode, in mozIPlaceInfo aPlaceInfo ); Parameters aResultCode nsresult indicating the reason why th...
... 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 method was replaced...
....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 getCachedAcc...
... 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 the first cached a...
...); 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 nsIAccessNode. ...
nsIDNSService
netwerk/dns/nsIDNSService.idlScriptable Provides domain name resolution service. Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Implemented by: @mozilla.org/network/dns-service;1. 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. This is done by disabling IPv6 on backup connections. Method overview nsICancelable asyncResolve(in AUTF8String aHostName, in unsigned long aFlags, in nsIDNSListener a...
...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 ); Parameters ...
...e, 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); ...
...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, and the return v...
... 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 context (not cont...
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. ...
...ERATE_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_BUSY 1 Ret...
...ociated 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. nsISimpleEnume...
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 t...
... 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 downloaded. aDownload...
... 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 are more pending ...
nsIHttpChannel
HeaderVisitor 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 headers has undefined b...
... 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()). ...
...questHeaders( 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.http.keep_empty_r...
nsIJSON
However, you should use native JSON instead if at all possible. ...
... 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, reconstructed from the ...
... 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 encodeFromJSVal(...
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 amoun...
... 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 to allow a hierar...
..._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 2 The amount ...
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 nsIUR...
...g 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 by a bulk delete. ...
...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 cares about whole en...
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...
...ame, [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 - The value of t...
...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 example in a flat ...
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 nsIPrin...
...ion 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 ); Parameters ...
...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 by the system pri...
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 nsIDOMM...
...IDOMMozSmsMessage 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. ...
Using nsIDirectoryService
ponent was a problem for embedding applications. Since it was a component and was loaded implicitly by many other components, it was difficult to customize. Customizing the locations is important if, for example, your application already has a profile directory or other resource directories. You may wish that you could have Mozilla use these locations rather than requiring the same disk layout as SeaMonkey. In order to change these locations using nsIFileLocator and still be able to use the same components directory as an existing Mozilla installation, you had to make a component with the same ID as nsIFileLocator and then, after auto-registering components, manually register your own and replace the existing one -- all in all, a big pain. The New Method The new method uses nsIDirectoryService to l...
...ked for a file location, it goes through its list of providers asking each if it knows the requested location until it finds one that does. Once the service finds a location, if the provider says that the location is persistent, the service will cache that location so it is very quick on subsequent calls. Different providers can provide certain locations that are relevant to them. For example, in SeaMonkey, the profile service is a provider for locations that are relative to the current profile. The caller asking for the file location, of course, doesn't need to know who the providers are. As a caller of the service, you never deal with the providers, only the service. Defined Locations The nsIProperties keywords that you will use to get locations are defined in two places. OS and XPCOM Level nsDir...
...to set one of these paths to the /bin directory. Application Level nsAppDirectoryServiceDefs.h The first group listed is for locations that are relative to the application: for instance, the name and location of the chrome folder, or the default location of user profiles. The nsIDirectoryServiceProvider which normally provides these locations is at mozilla/xpcom/io/. This provider is installed by SeaMonkey after initializing XPCOM. It is also installed by default by NS_InitEmbedding. The second group listed is for locations which are relative to the current user profile. In SeaMonkey, the profile service is an nsIDirectoryServiceProvider and it provides these locations. There are some cases in embedding in which distinct user profiles are not needed; however, prefs and history and such are needed. ...
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. Note: Starting with Firefox 3, the DOM Inspector is not included in Firefox by default; instead, you must download and install it from the Mozilla add-ons web site. ...
...DOM Inspector is not included in Firefox by default; instead, you must download and install it from the Mozilla add-ons web site. (Note: this is now a dead link.) When you first start the DOM Inspector, you are presented with a two-pane application window that looks a little like the main Mozilla browser. Like the browser, the DOM Inspector includes an address bar, and some of the same menus. In SeaMonkey additional global menus will be available. Inspecting a Document When the DOM Inspector opens, it may or may not load an associated document, depending on the host application. If the DOM Inspector doesn't 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 Insp...
...d document, depending on the host application. If the DOM Inspector doesn't 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 alre...
Firefox user agent string reference - HTTP
ecko, the string can take one of two forms, where the tokens have the same meaning except those noted below: Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail appname/appversion Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion appname/appversion appname/appversion indicates the application name and version. For instance, this could be "Camino/2.1.1", or "SeaMonkey/2.7.1". Firefox/firefoxversion is an optional compatibility token that some Gecko-based browsers may choose to incorporate, to achieve maximum compatibility with websites that expect Firefox. firefoxversion will generally represent the equivalent Firefox release corresponding to the given Gecko version. Some Gecko-based browsers may not opt into using this token; for this reason, sniffers sho...
...on various platforms. ...
... Browser Gecko user agent string Firefox for Maemo (Nokia N900) Mozilla/5.0 (Maemo; Linux armv7l; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 Fennec/10.0.1 Camino on Mac Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Camino/2.2.1 SeaMonkey on Windows Mozilla/5.0 (Windows NT 5.2; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1 SeaMonkey on Mac Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1 SeaMonkey on Linux Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1 Implementation notes for applications, vendors, and extensions Prior to Firefox 4 and Gecko 2.0, it was possible for extensions to add u...
Authoring MathML - MathML
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('http://www.w3.o...
...s 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 depends on the mail client. Even if your browser supports MathML, your Webmail may prevent you to send or receive mails with MathML inside. Gecko-based instant messaging clients can integrate a Javascript-based text-to-MathML converter (mentioned below) and then rend...
...your server. TeXZilla, LaTeXML 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 Mozill...
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. ...
Session store API - Archive of obsolete content
tedTab; ss.deleteTabValue(currentTab, "key-name-here"); Remarks The window value save and restore functions work exactly like the tab-based functions by similar names. Starting in Firefox 3.5, notifications are sent after reading session store data and before using it, as well as immediately before writing it back to disk. See the list in Observer Notifications. Using the session store API in SeaMonkey There are a number of differences between the session store API in Firefox and the API in SeaMonkey 2.0: The class name is @mozilla.org/suite/sessionstore;1 var ss = Components.classes["@mozilla.org/suite/sessionstore;1"] .getService(Components.interfaces.nsISessionStore); When restoring a window, closed tabs in that window are not currently restored. When closing a t...
...ere are a number of differences between the session store API in Firefox and the API in SeaMonkey 2.0: The class name is @mozilla.org/suite/sessionstore;1 var ss = Components.classes["@mozilla.org/suite/sessionstore;1"] .getService(Components.interfaces.nsISessionStore); When restoring a window, closed tabs in that window are not currently restored. When closing a tab, SeaMonkey does not generate SSTab events. This means that you cannot currently tell if a tab has been saved or restored. However SeaMonkey reuses the browser element (up to the undo close tab limit) which means that you can set state on the browser element and it will be restored with the tab. ...
Tabbed browser - Archive of obsolete content
ontainer.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 container = gBrowser.t...
...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.target); // brows...
Add-ons - Archive of obsolete content
dy familiar with Building an Extension. Extension Packaging Extensions are packaged in a form of Installable Bundle which can be downloaded and installed by a user, or provided pre-packaged with an application or by an external program. Extensions use a directory structure which can provide chrome, components, and other files to extend the functionality of an XUL program. Extensions support in SeaMonkey 2 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. 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 website (we want to host s...
...oned 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
aying web content in an extension without security issues Downloading JSON and JavaScript in extensions Enhanced Extension Installation Extension Etiquette Extension Library Extension Packaging Extension Samples Extension Theming Guidelines Extension Versioning, Update and Compatibility Extensions support in SeaMonkey 2 Firefox addons developer guide Hiding browser chrome Hotfix Extension How to convert an overlay extension to restartless Inline options Install Manifests Installing Extensions and Themes From Web Pages Interaction between privileged and non-privileged pages Jetpack Processes Legacy Add-ons ...
... Tinderbox Creating a Release Tag Creating a Skin for Firefox/Getting Started Creating a Skin for Mozilla FAQ Getting Started In-Depth Links contents.rdf toolbarBindings.xml Creating a Skin for SeaMonkey 2.x Getting Started chrome.manifest install.rdf Creating a hybrid CD Creating regular expressions for a microsummary generator DTrace Dehydra Dehydra Frequently Asked Questions Dehydra Function Reference Dehydra Object Reference...
Install.js - Archive of obsolete content
show the use of the XPInstall API. The majority 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...
...ou 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 version has been developed as part of the effort to port Firefox extensions to SeaMonkey from the xSidebar Project. Pros: This version consolidates all the changable information at the top of the file. And it also knows how to install packaged components, search engines and default preferences. Cons: Code is bloated since it has to cater for several different ways an extension author can package the .JAR file contained in the .XPI file. XPI file structure You can use the code below ...
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. ...
Proxy UI - Archive of obsolete content
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. ...
... item sets the menu selection and the proxy mode (network.proxy.type) Selecting a disabled item is not allowed. Selecting "Proxy Configuration..." opens the Preferences panel to "Advanced > Proxies" (TBdescribed: changing the prefs values). Unfiled bug: changing proxy mode does not update the menu. Mouseover When online, the tooltip will include the current proxy mode: Code http://mxr.mozilla.org/seamonkey/sou...ityOverlay.xul Bugs Bug 243624 Reference network.proxy.type ...
Venkman - Archive of obsolete content
Note that it is not included in the Gecko-based browsers such as K-Meleon, Galeon and Netscape 8.x. Venkman has been provided as part of the Mozilla install distribution since October 2001, as well as an extension package in XPI format. Documentation Venkman Introduction An overview and some practical examples of using the JavaScript Debugger in Web development. ...
...e written in JavaScript and XUL, which allows Venkman to be fully cross-platform. Venkman is named after the character Dr. Peter Venkman, played by Bill Murray in the movies Ghostbusters and Ghostbusters II. Getting Venkman Firefox and Thunderbird The latest version of JavaScript Debugger is available from Firefox Add-ons. Mozilla Suite and SeaMonkey These releases come with Venkman pre-installed. On Windows, it is an install option; choose Advanced install. Also available from Firefox Add-ons as an extension. Nvu and KompoZer JavaScript Debugger extension version 0.9.84 is available from Nvu's downloads page. We encourage you to use the latest available version 0.9.87.1 (or higher) with Firefox instead. ...
Writing textual data - Archive of obsolete content
racter encodings (UTF-8, UTF-16, UTF-32) can represent "all" characters (the full repertoire of Unicode) while others can only represent a subset of the full repertoire. When the file is to be read only by the application/extension itself, using UTF-8 is often the best choice -- it can represent all characters, and ASCII characters are represented efficiently. ...
...ot many character encodings need it, but for those that do calling this is important for proper output. var fin = converter.Finish(); if (fin.length > 0) os.write(fin, fin.length); os.close(); Converting a string into a stream Sometimes, it is useful to convert a string into a stream, for example for uploading it using nsIUploadChannel. The example here requires Gecko 1.8 (Firefox 1.5, SeaMonkey 1.0). nsIScriptableUnicodeConverter has a simple method to do that: // First, get and initialize the converter var converter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"] .createInstance(Components.interfaces.nsIScriptableUnicodeConverter); converter.charset = /* The charset you want to use. Using UTF-8 in this example */ "UTF-8"; // Now, conver...
Install Wizards (aka: Stub Installers) - Archive of obsolete content
ated Browser XPI Installer and the XPInstall API Reference. What do we mean by engine code? The XPInstall engine processes installer packages by reading instructions from their install scripts to extract files and take other install actions. The same XPInstall engine is used by the browser and the stub installers on all platforms. The XPInstall engine source resides at: <http://lxr.mozilla.org/seamonkey/sou...xpinstall/src/> What do we mean by stub installer? The install wizards used to install mozilla are lightweight stubs targeted to be around 200 KB disk footprint. Users download the stub installers, choose which packages to install, choose the destination directory for the installation, and select from various other options. Subsequently, when users click the "Install" button the install ...
...r the mac, and gtk for the unix version. To learn more about the three platform-specific versions of the stub installer follow the links below: Unix Stub Installer Mac Stub Installer Windows Stub Installer What do we mean by xpistub? The XPInstall engine is not called directly by the stub installer. The stub installer calls some glue code: xpistub which resides at: < http://lxr.mozilla.org/seamonkey/sou...pinstall/stub/> This "glue" code initialized XPCOM and registers the XPInstall engine and requisite components to prepare for use by the stub installer. The stub installer hands off one-by-one a series of xpis to install. What do we mean by libxpnet? Cross-platform functionality for making file transfers across a network is provide by the library libxpnet. Complete details about this lib...
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-h...
...es 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-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. ...
List of commands - Archive of obsolete content
ordNext cmd_selectWordPrevious cmd_selectWordNext cmd_scrollPageUp cmd_scrollPageDown cmd_scrollLineUp cmd_scrollLineDown cmd_movePageUp cmd_movePageDown cmd_selectPageUp cmd_selectPageDown Other commands The following list other commands (prefixed by cmd_ or Browser:) which have not been categorized here yet (though they are in the alphabetical list below): http://lxr.mozilla.org/seamonkey/sou...barOverlay.xul http://lxr.mozilla.org/seamonkey/sou...t/navigator.js http://lxr.mozilla.org/seamonkey/sou...torOverlay.xul http://lxr.mozilla.org/seamonkey/sou...onalToolbar.js http://lxr.mozilla.org/seamonkey/sou...rceOverlay.xul http://lxr.mozilla.org/seamonkey/sou...extOverlay.xul http://lxr.mozilla.org/seamonkey/sou...lityOverlay.js http://lxr.mozilla.org/seamonkey/sou...oomOverl...
...xr.mozilla.org/seamonkey/sou...t/navigator.js http://lxr.mozilla.org/seamonkey/sou...torOverlay.xul http://lxr.mozilla.org/seamonkey/sou...onalToolbar.js http://lxr.mozilla.org/seamonkey/sou...rceOverlay.xul http://lxr.mozilla.org/seamonkey/sou...extOverlay.xul http://lxr.mozilla.org/seamonkey/sou...lityOverlay.js http://lxr.mozilla.org/seamonkey/sou...oomOverlay.xul http://lxr.mozilla.org/seamonkey/sou...torOverlay.xul http://lxr.mozilla.org/seamonkey/sou...ark.properties http://lxr.mozilla.org/seamonkey/sou...kmarks-temp.js http://lxr.mozilla.org/seamonkey/sou.../bookmarks.xml http://lxr.mozilla.org/seamonkey/sou...rksOverlay.xul http://lxr.mozilla.org/seamonkey/sou...okmarksTree.js List of commands (listed alphabetically) Browser:AddBookmark Browser:AddBookmarkAs Browser:Add...
Creating toolbar buttons (Customize Toolbar Window) - Archive of obsolete content
re your contents.rdf (or chrome.manifest) is correct, and be sure you didn't forget to apply the stylesheet to customizeToolbar.xul. ...
...olbarPalette More information XulPlanet.com references: <toolbarbutton>, <toolbaritem>. How to adjust toolbar button's label position A forum thread about adding an item to the toolbar (instead of just adding it to palette) right after an extension is installed. Note that this is not recommended. There is another page on mdc with information about adding buttons to various windows in SeaMonkey. Includes useful information about overlays for ChatZilla. ...
2006-11-17 - Archive of obsolete content
Reflow branch testing wanted L. ...
... Reflow branch testing wanted L. ...
Shipping a plugin as a Toolkit bundle - Archive of obsolete content
e 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 documentation. G...
...t 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-syntax-ns#" xmlns:em=...
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. ...
... separation of data from presentation, strong data typing, the ability to submit XML data to servers instead of name/value pairs, and a descriptive way to author forms so that they can be displayed by a wide variety of devices. XForms is a W3C specification. XForms Tutorial and Cookbook XForms in Wikibook Format - Over 50 examples tested with Firefox. XForms support can be added to Firefox and SeaMonkey by installing the Mozilla XForms extension. This extension, while supporting a significant subset of the XForms 1.0 and 1.1 candidate recommendations, is not actively maintained any more since about 2010. The last official release has been done for Firefox 3.6 and is available for download on addons.mozilla.org. For more details about the future of the Mozilla XForms extension see this blog post...
Gecko FAQ - Gecko Redirect 1
Gecko is continuously under development at mozilla.org. Gecko has been known previously by the code names "Raptor" and "NGLayout"; the new name was chosen following a trademark infringement dispute. For more information see the Wikipedia article on Gecko. ...
...n 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 components they ...
Gecko info for Windows accessibility vendors
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 software package that suppor...
...d 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 MozillaContentWindowClass. In total, Gecko supports the following window cl...
Mozilla's Section 508 Compliance
United States Federal Rehabilitation Act's Section 508 is a new standard for defining accessibility requirements for software and other electronic and information technology. Part of Section 508 (?1194.21) specifically relates to Mozilla, and the ability of US government agencies to buy software that contains Mozilla software components. ...
...government agencies to buy software that contains Mozilla software components. Here is a detailed list of section 508 bugs in Mozilla's Seamonkey application suite. Some of them are fairly minor. The following is provided for informational purposes only and is not a legally binding Voluntary Product Accessibility Template (VPAT). ...
Obsolete Build Caveats and Tips
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 above Ability to ...
... 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 Microsoft Downlo...
Application Translation with Mercurial
top, 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 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 localiz...
...sh 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. Launch the installed Mozil...
MathML Accessibility in Mozilla
vides 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 / Thunderbird 4...
.... 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 that the accessible ...
MailNews automated testing
bout 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 the limitatio...
... 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. ...
extIApplication
This content covers features introduced in Thunderbird 3 The extIApplication 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 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. version readonly attribute AString The version number of the application. console readon...
...ck aCallback) Return value none. ...
extIExtension
This content covers features introduced in Thunderbird 3 The extIExtension interface represents an extension. extIExtension 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 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. version readonly attribute AString The version number of the exte...
... ...
extIPreferenceBranch
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 aName) nsIVariant getValue(in AString aName, in nsIVariant aDefaultValue) void setValue(in AString aName, in nsIVariant aValue) void reset() Attributes Attribute Type Description root readonly attribute AString The name of the bra...
... Note: This function has not been implemented and will raise an exception. ...
extISessionStorage
This content covers features introduced in Thunderbird 3 extISessionStorage allows an extension to store data for the life time of the application (e.g. browser). extISessionStorage 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 These methods are usually accessed via Application.storage. Return Type Method boolean has(in AString aName) void set(in AString aName, in nsIVariant aValue) nsIVariant get(in AString aName, in nsIVariant aDefaultValue) Attributes Attribute Type Description events readonly attribute extIEvents The events o...
...tem 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) ...
Accessing the Windows Registry Using XPCOM
xample: var wss = Components.classes["@mozilla.org/browser/shell-service;1"] .getService(Components.interfaces.nsIWindowsShellService); var id = wss.getRegistryEntry(wss.HKLM, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion", "ProductId"); Note: There's no way to set a registry value using this interface. Support in SeaMonkey and Other Non-toolkit Applications In older versions of SeaMonkey and other non-toolkit-based applications, an interface existed called nsIWindowsRegistry, containing the same method and named constants as the methods described above for Firefox 1.0. It can be used as follows: var wss = Components.classes["@mozilla.org/winhooks;1"] .getService(Components.interfaces.nsIWindow...
...tId"); Backwards Compatibility If you need to support Firefox 1.0 and other older browser versions, you should check to see which interfaces are available. ...
amIWebInstallInfo
lkit/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 The window t...
...escription 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 imag...
...See also imgIDecoderObserver imgIContainer ...
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...
...ecko 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 nsIDOMCSSPrimitiveValue fo...
nsIAccessibleText
accessible/public/nsIAccessibleText.idlScriptable Please add a summary to this article. ...
... 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 getCharacterAtOffset() It would...
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); ...
...eprecated. 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 cache. Used to imple...
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. ...
... 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 notification. See also...
nsIChannelEventSink
These methods are called before onStartRequest. ...
... 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 redirect. A bitm...
nsIClipboard
widget/nsIClipboard.idlScriptable This interface supports basic clipboard operations such as: setting, retrieving, emptying, matching and supporting clipboard data. ...
...tyClipboard() 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 retrieves data ...
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. ...
...; 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 logged, this f...
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. ...
...Attributes Attribute Type Description type unsigned long The type of motion data reported by this object; see Motion type constants for possible values. ...
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. ...
...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_DRAGDROP_* contants...
nsIEditor
<< XPCOM API Reference editor/nsIEditor.idlScriptable Provides methods and attributes used when editing page content. ...
...t( 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 retr...
...his 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 storage of bytes),...
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 aFilePickerSho...
...pe 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", nsIFilePicker.m...
nsIFocusManager
dom/interfaces/base/nsIFocusManager.idlScriptable Please add a summary to this article. ...
...ethods 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 have been delay...
nsILocalFileMac
xpcom/io/nsILocalFileMac.idlScriptable Please add a summary to this article. ...
...nly!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 OSType aAppCreator );...
nsIMsgIncomingServer
nsIMsgIncomingServer mailnews/base/public/nsIMsgIncomingServer.idlScriptable ??? Add brief description of Interface ??? ...
...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 configureTemporaryReturnReceiptsFilter(...
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 aItemId The ...
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); ...
...ome 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 does not have an ...
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() ...
...e 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 offset, in bytes, ...
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 ...
...or. 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 screen that is availab...
nsIScriptError2
iptable 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 Description ...
...ointing 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. ...
...t 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 Will extend the ...
nsISelectionPrivate
This page wasn't updated since the initial import in 2011. See the idl file linked above for up-to-date information. ...
...ection. 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, in nsIDOMNode...
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...
... .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 displayed. RE...
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 lon...
...rs 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 process. ...
nsISocketTransportService
port-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 dispatch on the ...
...nous, 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 support and defa...
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. To access the service, 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 c...
...rsions 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 nsIToolkitProfile createProfile(in nsILocalFile aRootDir, in AUTF8String aName); void flush(); nsIToolkitProfile getProfileByName(in AUTF8String aName); nsIProfileLock lockProfilePath(in nsILocalFile aDirectory, in nsILocalFile aTempDirectory); Attributes Attribute Type Description profileCount unsign...
nsIURL
netwerk/base/public/nsIURL.idlScriptable This interface provides convenience methods that further break down the path portion of nsIURI. ...
...F8String 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, an empty strin...
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 num...
...try. 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. Return value The val...
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 in...
...ice. 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" Read only. ...
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. ...
... .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(); void e...
DOM Inspector internals - Firefox Developer Tools
nspector.xul-based primary UI. This is the two-pane inspector that appears when Ctrl+Shift+I (or Cmd+Shift+I) is pressed from one of the applications for which DOM Inspector has explicit support (i.e., menuitems placed via overlay). Besides the DOM Inspector's primary UI, there are a couple other top-level inspectors which differ slightly (the object inspector and DOM Inspector sidebar used in SeaMonkey). Initially, we will begin by focusing on inspector.xul and its entry point, and then expand our focus later to explain how these other inspectors differ. DOM Inspector from a high-level perspective The DOM inspector primary UI consists of some toolbars and a panelset. The panelset contains two panels. One panel reacts to changes to the inspected document, and the other panel reacts to changes ...
...ome://inspector/content/inspector.xul chrome://communicator/content/tasksOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} overlay chrome://inspector/content/inspector.xul chrome://browser/content/baseMenuOverlay.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} These host-provided overlays allow DOM Inspector to adopt a look and feel similar to its host application. (Above, SeaMonkey and Firefox, respectively.) There are several overlays from the resources/contents/ directory that do not fall into the category of host-integration overlays. That's because DOM Inspector also uses shared overlays to build up its own UI. Shared structure overlays Taking a look at the contents of inspector.xul, DOM Inspector's primary UI, will reveal that it contains almost no visible elements.
Attr - Web APIs
Web › API › Attr
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 only A DOMStri...
.... 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. Note: DOM Level 3...
Document.xmlEncoding - Web APIs
If the XML Declaration states: <?xml version="1.0" encoding="UTF-16"?> ...the result should be "UTF-16". ...
...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 defines it ("An attri...
Working with the History API - Web APIs
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 = "#foo", in that ...
...ory.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 executes the follo...
Node.cloneNode() - Web APIs
Web › API › Node › cloneNode
nd 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). *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. St...
... 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 intrinsic (inline) listeners. It does not copy event listeners added using addEventListener() or those assigned to element properties (e.g., node.onclick = someFuncti...
Window.pkcs11 - Web APIs
Web › API › Window › pkcs11
For more information on installing PKCS11 modules, see installing PKCS11 modules. See bug 326628 for details on why the property was removed. ...
...e 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 specification. ...
Window.sidebar - Web APIs
Web › API › Window › sidebar
End users can use the "load this bookmark in the sidebar" option instead. Also see Creating a Firefox sidebar. addPersistentPanel(title, contentURL, "") Adds a sidebar panel, which is able to work in the background. ...
... End users can use the "load this bookmark in the sidebar" option instead. Also see Creating a Firefox sidebar. addPersistentPanel(title, contentURL, "") Adds a sidebar panel, which is able to work in the background. ...
Sending and Receiving Binary Data - Web APIs
or (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.setRequestHeader...
...ngth", 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 = Components.classes["...
Using XMLHttpRequest - Web APIs
hod. 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 response attribut...
...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 form's submit()...
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. ...
Proxy - JavaScript
tBrowser); // 'Chrome' Finding an array 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. ...
...et product types if (prop === 'types') { return Object.keys(types); } return undefined; } }); console.log(products[0]); // { name: 'Firefox', type: 'browser' } console.log(products['Firefox']); // { name: 'Firefox', type: 'browser' } console.log(products['Chrome']); // undefined console.log(products.browser); // [{ name: 'Firefox', type: 'browser' }, { name: 'SeaMonkey', type: 'browser' }] console.log(products.types); // ['browser', 'mailer'] console.log(products.number); // 3 A complete traps list example Now in order to create a complete sample traps list, for didactic purposes, we will try to proxify a non-native object that is particularly suited to this type of operation: the docCookies global object created by the "little framework" publishe...
Values - MathML
88888888889em 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 deprecated in MathM...
... ...
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
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 of deprecated xml...
...own <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 implemented (bug 123...
Navigator.mozNotification - Archive of obsolete content
Currently, these are only supported on Firefox Mobile and Firefox OS. See Displaying notifications for an example. The support for this property as been dropped in favor of the standard Notification constructor. ...
system/xul-app - Archive of obsolete content
e upper bound of the version 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
ic 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 element in its install.rdf. ...
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...
On page load - Archive of obsolete content
ess listeners implement the nsIWebProgressListener interface. ...
Progress Listeners - Archive of obsolete content
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 will get notifie...
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 util = win.QueryI...
Code snippets - Archive of obsolete content
odern browsers together with the introduction of typed arrays in ECMAScript allow us, in theory, to build full virtual machines in pure ECMAScript. Therefore, it is also possible, in theory, to use ECMAScript for a smaller task: parsing exotic programming languages (i.e., creating compilers). This snippets shows a possible way to start from. Browser-oriented code Tabbed browser code (Firefox/SeaMonkey) Basic operations, such as page loading, with the tabbed browser, which is the heart of Mozilla's browser applications Cookies Reading, writing, modifying, and removing cookies Page Loading Code used to load pages, reload pages, and listen for page loads Interaction between privileged and non-privileged code How to communicate from extensions to websites and vice-versa. Downloading Files ...
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
k 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 trying to build ...
Developing add-ons - Archive of obsolete content
te 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 completely new feature. Plugins Information about how to create plugins, which are binary components that let Mozilla based software display content they can't handle natively. Jetpack Browser extension development for everyone. Jetpack developers only need to know the tools of the modern web: HTML, CSS, and Jav...
How to convert an overlay extension to restartless - Archive of obsolete content
? Well, XUL overlays and windows, JSM files, chrome & resource mappings with localization, default preferences, but no XPCOM components of your own. Some of that will have to be replaced and the rest will need to be loaded differently. Next, what's the minimum version of Firefox we should require (preferably an ESR)? This guide targets Firefox 17 ESR or later (or anything else Gecko 17+, such as SeaMonkey 2.14+). This is two ESRs back (as of this writing), which should be plenty. Using the current Firefox ESR, stable version, or Nightly is generally a better idea if given the option, but some users take forever to upgrade. There will be no usage of the Add-on SDK or any other external libraries here. Everything will use APIs available in Firefox 17+ or code provided here. Step 1: Use Services.js...
Installing Extensions and Themes From Web Pages - Archive of obsolete content
a corrupted file being served by a mirror download server, for example. You can use any hash function supported by nsICryptoHash. The hash is specified as hash function:hash value, for example, sha1:28857e60d043447c5f4550853f2d40770b326a13. toString() The toString() property should return the XPI URL, for compatibility with Firefox browsers older than version 1.0, and other applications such as Seamonkey. Themes Pretty much everything I've described applies to themes too, except you'll use the installChrome function. Because so many sites installed extensions by direct-linking the XPI file and relying on content handling to invoke the confirmation UI, many sites are (incorrectly) doing so for theme JAR files too and wondering why they aren't auto-detected and installed. Well, XPI is a Mozilla-s...
Chapter 6: Firefox extensions and XUL applications - Archive of obsolete content
full-fledged JavaScript debugger that runs inside Firefox. It works like typical debuggers, and is useful not only for developing extensions, but also for general web development. Also, because it works with the JavaScript in extensions and Firefox itself, the debugger can be a good way to learn about design methods. Installing This is bundled with the Mozilla Suite and the current version of SeaMonkey, but it needs to be installed as an extension in Firefox. See https://addons.mozilla.org/firefox/216/. Install the extension in Firefox directly from the above URL and relaunch Firefox. Starting up Select "JavaScript Debugger" from the Tools menu. Targeting JavaScript for debugging. When Venkman first launches, it can only debug the file currently open in your web browser. This is because a ...
Getting Started with Firefox Extensions - Archive of obsolete content
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 of extension and add-on. All extensions are add-ons, but add-ons can also be themes, plugins, or language packs. This tutorial is about extension development, but themes and language packs are developed in a very similar way. Plugins are entirely different, and they will not be covered here. You can read more a...
JavaScript Object Management - Archive of obsolete content
better to do this: this.obsService = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService); These 2 constants don't need to be defined in the overlay because they are already defined globally in the browser.js file in Firefox. We only need to define them when we're making windows of our own, or when we're working with code outside of the chrome (or porting your code to SeaMonkey, which doesn't have those constants declared in the main window). Include the Cc and Ci constants in all XUL windows that are not overlays, all JSM files, and all XPCOM components (see further ahead). Do this even if you don't need them now. It's better to just make a habit out of it. This is a point that is worth highlighting: modules work outside of the window scope. Unlike scripts in the...
The Essentials of an Extension - Archive of obsolete content
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 application or versi...
Security best practices in extensions - Archive of obsolete content
l 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 chrome URL, this m...
Adding preferences to an extension - Archive of obsolete content
ox. 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 Adding the contex...
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. ...
List of Former Mozilla-Based Applications - Archive of obsolete content
Kylix Compiler and integrated development environment Borland discontinued this product. ...
List of Mozilla-Based Applications - Archive of obsolete content
ory Server server product Uses NSS Red Hat Certificate System server product Uses NSS Regex Renamer tool to rename files SamePlace IM client Scenari Platform application suite for designing publishing chains Script It Android development platform Uses Mozilla Rhino, develop directly on your Android device SeaMonkey suite A volunteer community legally backed by Mozilla Foundation with 2.5 million downloads Secure Browser browser that uses virtualization Created by Dell SEPT CMS for LeMonde.fr web site More information here (in English) and here (in French) Skyfire mobile browser Sipear IM client SmartReport Supervision Appliance ...
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
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 . ...
Using content preferences - Archive of obsolete content
ctory 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, when in private b...
Bonsai - Archive of obsolete content
e; you can: get a list of checkins, see what checkins have been made by a given person, or on a given CVS branch, or in a particular time period. It also includes tools for looking at checkin logs (and comments); doing diffs between various versions of a file; and finding out which person is responsible for changing a particular line of code ("cvsblame"). Start at the main Bonsai Query page or SeaMonkey Tree control page Here are some example queries that will give you a taste of what Bonsai is capable of: Today's checkins to the Mozilla Source Mainline. Checkins to any branch of XFE by Ramiro between 26-Feb-1998 and 12-May-1998 Differences between revisions 3.1 and 3.3 of the file mozilla/cmd/xfe/forms.c That's a small sample, but it should be enough to get you started. Play around wit...
Structure of an installable bundle - Archive of obsolete content
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=Darwin_x86-gcc3 bina...
Enabling the behavior - retrieving tinderbox status - Archive of obsolete content
ave to add JavaScript code that changes its status when the tinderbox status changes. The first step is to write a function that queries the tinderbox server and retrieves the current status. var gXMLHttpRequest; function loadTinderboxStatus() { gXMLHttpRequest = new XMLHttpRequest(); gXMLHttpRequest.onload = updateTinderboxStatus; gXMLHttpRequest.open("GET", "http://tinderbox.mozilla.org/SeaMonkey/panel.html"); gXMLHttpRequest.send(null); } XMLHttpRequest is an interface in Mozilla for retrieving documents via HTTP. Although it is designed to retrieve XML content and parse it into a DOM, it can retrieve (but not parse) other kinds of content as well. In this case we use it to retrieve an HTML page containing a brief summary of the current tinderbox state. That document gets updated by ...
Enabling the behavior - updating the status periodically - Archive of obsolete content
Now that we have code to retrieve tinderbox status and update the icon, we need to run it periodically. function loadTinderboxStatus() { gXMLHttpRequest = new XMLHttpRequest(); gXMLHttpRequest.onload = updateTinderboxStatus; gXMLHttpRequest.open("GET", "http://tinderbox.mozilla.org/SeaMonkey/panel.html"); gXMLHttpRequest.send(null); window.setTimeout(loadTinderboxStatus, 60000); } window.setTimeout(loadTinderboxStatus, 1000); window.setTimeout schedules functions to run at some future time. We use it inside the loadTinderboxStatus function to make that function run a second (1,000 milliseconds) after startup and a minute (60,000 milliseconds) after each invocation. This allows users to get relatively frequent updates about tinderbox without overloading the tinderbox server or slowing...
Creating a Mozilla Extension - Archive of obsolete content
See Building an Extension for an up-to-date tutorial (it focuses on Firefox, but is also applicable to other new applications). A Mozilla extension is an installable enhancement to the Mozilla browser that provides additional functionality (for example Linky, which adds an item to the context menu for opening multiple links in a document or selection). ...
install.rdf - Archive of obsolete content
Copy the following text and paste it into a text file, then save that file as "install.rdf": <?xml version="1.0"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <em:id>author@oftheme.com</em:id> <em:version>2.0b1</em:version> <!-- SeaMonkey --> <em:targetApplication> <Description> <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id> <em:minVersion>2.0b1pre</em:minVersion> <em:maxVersion>2.0b2pre</em:maxVersion> </Description> </em:targetApplication> <!-- Front End MetaData --> <em:name>My_Theme</em:name> <em:description>My first theme</em:description> <!-- Front End Integration Hooks (used by Theme ...
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. ...
Extension Frequently Asked Questions - Archive of obsolete content
For Thunderbird, you may also find the extension HowTo or FAQ pages helpful. If you're looking for a place to get started, try our tutorial, Building an Extension or MozillaZine's Getting started tutorial. Use the Extension Wizard to generate a template to start with. Be sure to set the development preferences. TODO: Add content. ...
Downloading Nightly or Trunk Builds - Archive of obsolete content
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 source can be built...
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 b...
Makefile.mozextension.2 - Archive of obsolete content
l 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://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <id>$(PROJECT_ID)</id> <name>$(PROJECT_NAME)</name> <version>$(PROJE...
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 Downlo...
Reading textual data - Archive of obsolete content
ile I/O code snippets page, you can convert it to UTF-8 // sstream is nsIScriptableInputStream var str = sstream.read(4096); var utf8Converter = Components.classes["@mozilla.org/intl/utf8converterservice;1"]. getService(Components.interfaces.nsIUTF8ConverterService); var data = utf8Converter.convertURISpecToUTF8 (str, "UTF-8"); Gecko 1.8 and newer Reading strings Starting with Gecko 1.8 (SeaMonkey 1.0, Firefox 1.5), you can use nsIConverterInputStream to read strings from a stream (nsIInputStream). This work was done in bug 295047. Usage: var charset = /* Need to find out what the character encoding is. Using UTF-8 for this example: */ "UTF-8"; const replacementChar = Components.interfaces.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER; var is = Components.classes["@mozilla.org/in...
Supporting private browsing mode - Archive of obsolete content
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 private browsing i...
Video presentations - Archive of obsolete content
o implemented fix. ...
Creating XPI Installer Modules - Archive of obsolete content
Addons for various Toolkit applications, such as Firefox or Thunderbird, should be packaged in a different way. Mozilla has introduced major changes to the way that themes and all the other parts of the UI are packaged. This new packaging scheme is called XPI (pronounced "zippy"), and interacts with XPInstall. A XPI file typically contains the resources to be installed (in this case the barley.jar we want to have installed in the Mozilla/bin/chrome/ directory) and an install script that guides the installation process. ...
Return Codes - Archive of obsolete content
Name Code Explanation SUCCESS 0 Success. REBOOT_NEEDED 999 The files were installed, but one or more components were in use. Restart the computer and the application to complete the installation process. On Windows NT, you may only need to restart the application as long as you did not replace operating system files. ...
Installer Script - Archive of obsolete content
ceAvailable / 1024); 9. // do the verification 10. if(spaceAvailable < spaceRequired) 11. { 12. logComment("Insufficient disk space: " + dirPath); 13. logComment(" required : " + spaceRequired + " K"); 14. logComment(" available: " + spaceAvailable + " K"); 15. return(false); 16. } 17. return(true); 18. } 19. var srDest = 17311; 20. var err = initInstall("Netscape Seamonkey", "Browser", "6.0.0.2000110807"); 21. logComment("initInstall: " + err); 22. var communicatorFolder = getFolder("Program"); 23. logComment("communicatorFolder: " + communicatorFolder); 24. if (verifyDiskSpace(communicatorFolder, srDest)) 25. { 26. err = addDirectory("Program", 27. "6.0.0.2000110807", 28. "bin", // jar source folder ...
Learn XPI Installer Scripting by Example - Archive of obsolete content
indow object in regular web page scripts, the Install object does not need to be prefixed to the method. Initializing the Installation All installations must begin with initInstall(). The initInstall() method on the Install object creates a new installation for the specified software and version. In the browser.xpi installation, this function appears at line 20: var err = initInstall("Netscape Seamonkey", "Browser", "6.0.0.2000110807"); If you call a method on the Install object before initInstall(), you will get an error. The initInstall method takes the following parameters: the display name of the package, the name of the package as it appears in the client registry, and the version, which can be expressed as a number or as an InstallVersion object. In the example above, "Netscape Seamonke...
highlightnonmatches - Archive of obsolete content
...
alwaysopenpopup - Archive of obsolete content
If false, the default value, the popup will be hidden. ...
autocompletesearchparam - Archive of obsolete content
...
autofill - Archive of obsolete content
<< XUL Reference home autofill New in Thunderbird 3 Requires SeaMonkey 2.0 Type: boolean If 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. ...
completedefaultindex - Archive of obsolete content
<< XUL Reference home completedefaultindex New in Thunderbird 3 Requires SeaMonkey 2.0 Type: boolean If true, the best match value will be filled into the textbox as the user types. If set to false or omitted, the value must be selected from the list. ...
currentset - Archive of obsolete content
This will be modified when the user customizes the toolbar. The value of this attribute should be a comma-separated list of item IDs from the toolbarpalette or, additionally, any of the following strings: "separator", "spring", "spacer". this isn't necessary the *current* set, i.e. ...
customindex - Archive of obsolete content
<< XUL Reference home customindex Not in SeaMonkey 1.x Type: integer This value is the index of the toolbar in the list of the custom toolbars. The value is updated automatically by the toolbar customization dialog. ...
customizable - Archive of obsolete content
<< XUL Reference home customizable Not in SeaMonkey 1.x Type: boolean Set this attribute to true on toolbars that can be customized. This causes the set of buttons to be persisted across sessions. ...
defaultset - Archive of obsolete content
This should be set to a comma-separated list of item IDs from the toolbarpalette. ...
disableautocomplete - Archive of obsolete content
<< XUL Reference home disableautocomplete New in Thunderbird 3Requires SeaMonkey 2.0 Type: boolean If true, the autocomplete behavior will be disabled. You might use a script to change this attribute. If false, the default, autocomplete is enabled. ...
enablehistory - Archive of obsolete content
<< XUL Reference home Note: For SeaMonkey 2.0 and all versions of Thunderbird prior to 3.0 you also need to provide the disablehistory attribute. enablehistory New in Thunderbird 1Requires SeaMonkey 2.0 Type: boolean If true, an arrow button will appear on the end of the textbox which, when pressed, will open a dropdown menu of all available results. ...
forcecomplete - Archive of obsolete content
<< XUL Reference home forcecomplete New in Thunderbird 3Requires SeaMonkey 2.0 Type: boolean If true, the textbox will be filled in with the best match when it loses the focus. If false, it will only be filled in when the user selects an item. ...
grippyhidden - Archive of obsolete content
<< XUL Reference home grippyhidden SeaMonkey only Type: boolean When set to true, the grippy will be hidden. When set to false, the default, the grippy will be shown. ...
grippytooltiptext - Archive of obsolete content
<< XUL Reference home grippytooltiptext SeaMonkey only Type: string The text to appear on the tooltip for the toolbar's grippy when the toolbar is collapsed. This would be used to label the grippy so that the user knows which toolbar it represents. ...
ignoreblurwhilesearching - Archive of obsolete content
...
minresultsforpopup - Archive of obsolete content
<< XUL Reference home minresultsforpopup New in Thunderbird 3Requires SeaMonkey 2.0 Type: integer The minimum number of results that must be returned for the popup to be displayed. The default value is 1. New in Thunderbird 3Requires SeaMonkey 2.0 A zero value will always open the popup. This can be used to display additional items that are not autocomplete results. ...
onsearchcomplete - Archive of obsolete content
...
ontextcommand - Archive of obsolete content
As of Gecko 1.9.1, this attribute is superseded by the ontextentered attribute. ...
ontextentered - Archive of obsolete content
...
ontextrevert - Archive of obsolete content
As of Gecko 1.9.1, this attribute is superseded by the ontextreverted attribute. ...
ontextreverted - Archive of obsolete content
...
showcommentcolumn - Archive of obsolete content
For the URL history, the comment column will contain the page titles associated with each URL. ...
showpopup - Archive of obsolete content
If false, the popup will not be shown, but the autocomplete results will still be available. ...
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 pas...
toolbar.mode - Archive of obsolete content
icons Show only icons. text Show only text. ...
toolbarname - Archive of obsolete content
...
appendNotification - Archive of obsolete content
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. Example: functi...
insertItem - Archive of obsolete content
The new item is added just before the item given by the second argument. If the second argument is null, but the beforePermanent argument is true, the item is added to the beginning of the toolbar before the first permanent item. Otherwise, if the beforePermanent argument is false, the new item is added to the end of the toolbar. The third argument can be used to wrap the new item in another element. Usually, the last argument will be null as it is mainly for the use of the customize dialog. ...
Panels - Archive of obsolete content
nt 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"> ...
Special per-platform menu considerations - Archive of obsolete content
menu_mac_hide_app Selecting this item will hide the application. menu_mac_hide_others Selecting this item will hide all other applications except this one. menu_mac_show_all Selecting this item will show the windows for all applications. checkForUpdates The item that opens the Update dialog for the application, for applications that have one (such as SeaMonkey; Firefox does not have this item). The last five items aren't normally used but are listed for completeness. Here is an example: <menubar> <menu label="Tools"> <menupopup> <menuitem label="Spell Check"/> <menuitem id="menu_preferences" label="Preferences" oncommand="window.openDialog('options.xul', '_new', 'chrome');"/> </menupopup> </menu> </menub...
highlightNonMatches - Archive of obsolete content
...
completeDefaultIndex - Archive of obsolete content
...
currentSet - Archive of obsolete content
For spacers, separators, and flexible spacers the following strings are used instead of IDs: "spacer", "separator", "spring". An empty toolbar has a currentSet value of "__empty". You may change the current set of items by setting this property. ...
documentCharsetInfo - Archive of obsolete content
...
firstPermanentChild - Archive of obsolete content
A permanent child is one that is not customizable and remains on the toolbar. ...
lastPermanentChild - Archive of obsolete content
A permanent child is one that is not customizable and remains on the toolbar. ...
popup - Archive of obsolete content
Archive › Mozilla › XUL › Property › popup
<< 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
This property is read only. ...
searchParam - Archive of obsolete content
...
textValue - Archive of obsolete content
Equivalent to the value property. ...
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. ...
toolbarName - Archive of obsolete content
...
Building Trees - Archive of obsolete content
reechildren 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 also use static val...
XML Templates - Archive of obsolete content
</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> XML Query Synt...
Input Controls - Archive of obsolete content
unchecked when it is pressed. Check boxes have many of the same attributes as buttons: label The label on the check box or radio button. disabled Set this to either true or false to disable or enable the check box or radio button. accesskey The shortcut key that can be used to select the element. The letter specified is usually drawn underlined in the label. to view XUL, you need e.g. seamonkey or waterfox and remote-xul-manager from https://github.com/jvillalobos/Remote-XUL-Manager Find files example so far : Source View In the next section, we will look at some elements for entering and selecting numbers. << PreviousNext >> Looking for a guide to using input controls and forms on the Web? See Forms in HTML. ...
Manifest Files - Archive of obsolete content
nner, see XULRunner. Older Applications If you are creating applications for older versions of Mozilla software, that is, before Firefox 1.5 or Mozilla 1.8, the process is a bit more involved. The following describes how to set up a package for earlier versions. This section may be skipped if you are writing new extensions or XUL applications. Note: This older process does also apply to the new SeaMonkey 1.0 though. The codebase there has not yet adopted the "Manifest" format. <?xml version="1.0"?> <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"> <RDF:Seq about="urn:mozilla:package:root"> <RDF:li resource="urn:mozilla:package:myapplication"/> </RDF:Seq> <RDF:Description about="urn:mozilla:package:myapplicatio...
Using Remote XUL - Archive of obsolete content
s://bugzilla.mozilla.org/enter_bug.cgi?format=guided" /> <menuitem label="Bugzilla" value="https://www.mozilla.org/bugs/" /> <menuitem label="Bug Writing" value="https://www.mozilla.org/quality/bug-writing-guidelines.html" /> </menupopup> </menu> <menu label="Tools"> <menupopup> <menuitem label="View Source" value="https://lxr.mozilla.org/seamonkey/" /> <menuitem label="Tree Status" value="https://tinderbox.mozilla.org/showbuilds.cgi?tree=SeaMonkey" /> <menuitem label="New Checkins" value="https://bonsai.mozilla.org/cvsquery.cgi?treeid=default&amp;..." /> <menuitem label="Submit a Bug" value="https://bugzilla.mozilla.org/" /> </menupopup> </menu> <button label="Faq" value="ht...
Window icons - Archive of obsolete content
er 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
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 that document. Be aware that the report might take a little while to be ready depending on the...
browser - Archive of obsolete content
. 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-only property contai...
menubar - Archive of obsolete content
When set to false, the default, the grippy will be shown. statusbar Type: id If you set this attribute to the id of a statusbar element, the label on the statusbar will update to the statustext of the items on the menu as the user moves the mouse over them. Properties accessibleType Type: integer ...
tabbrowser - Archive of obsolete content
t. 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 property holds a...
treecol - Archive of obsolete content
To make the checkbox visible on some platforms, the following styles need to be added to the stylesheet (see treecol.type). On Firefox 2.x and 3.x, all operating systems other than Mac OS X already use these styles by default. If targeting Firefox for Mac OS X, be sure to use these styles but include your own checkbox image. However, chrome://global/skin/checkbox/cbox-check.gif is available in SeaMonkey on Mac OS X.. treechildren::-moz-tree-checkbox { /* unchecked checkbox treecells. This style MUST come before treechildren::-moz-tree-checkbox(checked) otherwise it won't take effect. */ list-style-image: none; } treechildren::-moz-tree-checkbox(checked){ /* css for checked cells. cbox-check.gif isn't available in Firefox 1, 2, and 3 on Mac OS X, so you should specify a URL to an image ...
XULRunner Hall of Fame - Archive of obsolete content
efox, 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 across Fac...
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...
Mozilla release FAQ - Archive of obsolete content
Gecko (formerly Raptor) is the new HTML rendering engine in Mozilla. It features speed improvements, a more modular nature, and significantly less platform-dependant code. It is more suitable for being embedded in other applications than the previous rendering engine. ...
2006-10-26 - Archive of obsolete content
r features suggestion John describes his suggestions for "killer features" for firefox. Debug Minefield on Intel Mac An inqury about how to debug minefield on an intel mac. Rebuild FireFox after modifying source code An inqury about how to rebuild the code after making a minor change - the user is unfamiliar with how to use the command prompt. Bug in FireFox when import passwords from SeaMonkey A possible bug find - perhaps a version error instead? There should be a 'changes' FAQ A user suggests that a FAQ page be made for changes, since the same two questions keep coming up. nsIAlertsService under Linux An inqury about why nsIAlertsService is not a service found in firefox 2. Is this a bug in Firefox? An inqury about inaccurate layout for firefox being a bug - shaver sugge...
2006-10-27 - Archive of obsolete content
r features suggestion John describes his suggestions for "killer features" for firefox. Debug Minefield on Intel Mac An inqury about how to debug minefield on an intel mac. Rebuild FireFox after modifying source code An inqury about how to rebuild the code after making a minor change - the user is unfamiliar with how to use the command prompt. Bug in FireFox when import passwords from SeaMonkey A possible bug find - perhaps a version error instead? There should be a 'changes' FAQ A user suggests that a FAQ page be made for changes, since the same two questions keep coming up. nsIAlertsService under Linux An inqury about why nsIAlertsService is not a service found in firefox 2. Is this a bug in Firefox? An inqury about inaccurate layout for firefox being a bug - shaver sugge...
2006-10-20 - Archive of obsolete content
days. This will make the language packages available to everyone. If you anyone has questions please feel free to ask Benjamin Smedberg. You can do this by replying to the following post. Discussions Sparky AND comet going away on Friday On October 19th J. Paul Reed posted the following discussion: J. Paul Reed stated that he is also going to decommission comet, the machine that performed SeaMonkey Trunk gtk1 builds, this Friday. J. Paul Reed's long-term goal is to remove old incompatible hardware. On the same day Robert Kaiser responded to J. Paul Reed's post: Robert Kaiser shared the following information about comet and btek machines: comet and btek are used as machines that upload nightly gtk1 builds. comet and btek are currently the fastest-cycling tinderboxes available therefore...
2006-11-10 - Archive of obsolete content
Summary: mozilla.dev.l10n - November 10, 2006 Announcements SeaMonkey 1.0.5 in Belarusian Belarusian [be-BY] localization for SeaMonkey 1.0.5 is available now. Latvian pellcheck dictionary for FF2.0 Newest OpenOffice dictionary files for FF 2.0 spell-checker is available. Trunk / 1_8 for Kurdish Firefox The Firefox translations of the Kurdish are only in trunk Translating the Firefox Privacy Policy The final and approved en-US version of Privacy Policy is available here and ready for localization team to translate. SeaMonkey 1.0.6 and 1.1 Beta upcoming SeaMonkey 1.0.6 and 1.1 Beta are both available here. Discussions Help about Firefox 3 A discussion on how to syncronise MOZILLA_1_8_BRANCH with the trunk, which tag should be used to check-in files on trunk, and ...
2006-11-3 - Archive of obsolete content
tility, is available here. Check thread for complete details. MozillaTranslator 5.13 released MozillaTranslator 5.13 is available here. Opening l10n repository on MOZILLA_1_8_BRANCH for approved check-ins MOZILLA_1_8_BRANCH is opened for approved check-ins. Check-ins are limited to bug fixes filed in Bugzilla and should mention their bug, describe the change, and who approved the change. SeaMonkey 1.0.6 and 1.1 Beta upcoming The SeaMonkey projet is planning a security release of the stable 1.0 series as well as a beta for the 1.1 version, all possibly in the next days or week. Community is advised to perform tests on both builds to ensure they work flawlessly. 1.0.6 build is located here, and 1.1 Beta build is located here. Discussions Last check-ins on sun-calendar-event-dialog.* f...
2006-12-01 - Archive of obsolete content
Details in the thread. Thunderbird Options Dialog String Changes a lot of string changes to the Thunderbird Options dialog was landed. ...
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-20 - Archive of obsolete content
They must be first saved to the drive. ...
NPN_GetURLNotify - Archive of obsolete content
s 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 ...
Samples and Test Cases - Archive of obsolete content
The samples may not build any more on all platforms. There are plans to clean up the sample plugin situation - better organization, updated build systems, get them building on all platforms. However, even if one cannot build the samples they can still be very valuable as code references. There is a guide to compiling the npruntime sample in Visual Studio. In addition to those samples, there are 2 more plugins in the tree that might be helpful. ...
Making sure your theme works with RTL locales - Archive of obsolete content
(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); } toolbar[...
Using workers in extensions - Archive of obsolete content
at'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. ...
Browser Detection and Cross Browser Support - Archive of obsolete content
o recommendations, please see the Gecko Compatibility Handbook Gecko Although many web developers are aware of Firefox, Mozilla, and Netscape browsers, far fewer are aware that these browsers are members of an entire family of user agents based upon the Gecko layout engine which includes the commercial browser CompuServe 7, and open source browsers such as Epiphany, Galeon, Camino, Kmeleon, and SeaMonkey. Gecko was designed from the ground up to be compliant with the W3C HTML, W3C CSS, W3C XML, W3C DOM, and ECMAScript (JavaScript) standards. It also includes compatibility features which allow it to reasonably handle legacy content which was developed for earlier generations of browsers such as Netscape Navigator 4 as well as features which provide compatibility with Internet Explorer 5 and 6. Un...
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 usi...
Array comprehensions - 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. ...
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. ...
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 Live...
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. ...
background-size - Archive of obsolete content
are based on Gecko. Both layout engines are mentioned in the table. ...
Mozilla XForms User Interface - Archive of obsolete content
Later we have plans to support XForms hosted by SVG. The XForms specs define two kinds of XForms UI elements, called 'Form Controls' and 'XForms User Interface'. ...
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. ...
Using the DOM File API in chrome code - Extensions
...
Plug-in Development Overview - Gecko Plugin API Reference
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 with it. Getting Ve...
Mozilla Plugin Accessibility
3. Many plugins lack accessibility API support Most plugins that work with Mozilla do not yet support accessibility APIs. A notable acception is the Adobe PDF plugin on Windows, which supports MSAA. In other cases, vendors need to find or be convinced of the business justification so that resources are applied to the problem. Plugin vendors. Unknown 4. Seamonkey has no message bar for plugin installation The message bar will be ported to Seamonkey as part of the toolkit merging work that will occur for xulrunner. Mozilla community No target ...
Obsolete
we're keeping for the time being as potential source material for updated docs. ...
A bird's-eye view of the Mozilla framework
chitecture of the overall framework supporting the Mozilla application suite, not the architecture of the individual applications themselves. Prerequisites This article assumes you have access to Mozilla sources and are familiar with the directory structure of the source tree. The code samples in the article are based on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051104 SeaMonkey/1.1a from a new source tree checked out 11/04/05. The build ID is 2005110409. TheHelp Viewer files referenced in the article are located in /seamonkey/extensions/help/ This article also assumes you are familiar with the JavaScript and C++ programming languages, object-oriented programming (OOP) terminology and design concepts, the Microsoft(R) Component Object Model (COM), and the CORBA OMG Int...
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. ...
Building Mozilla
In this article, we list documents that will guide you in building Firefox or other projects based upon Mozilla code. Build instructions Building on Windows with MSYS Building on Windows using the MSVC Toolkit Building on Fedora Core 5 Compiling Mozilla With Mingw Compiling Mozilla With clang on Windows SeaMonkey Building a SeaMonkey package ...
Creating a Firefox sidebar
sion 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 browsers, its use is d...
Creating a spell check dictionary add-on
Version> <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> <em:minVersion>2.15a1</em:minVersion> <em:maxVersion>2.49</em:maxVersion> </Description> </em:targetApplication> </Description> </RDF> There are some rules about how you should adapt the install.rdf file: If you are creating a new dictionary add...
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. ...
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. ...
Configuring Build Options
-j1. Choose an application The --enable-application=application flag is used to select an application 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 wi...
The Firefox codebase: CSS Guidelines
For new CSS, when possible try to privilege using the shared directory, instead of writing the same CSS for the 3 platform ...
Developer guide
nced 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 up to date...
Displaying Places information using views
refox 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 the menupopup an...
Gecko
Gecko is the name of the layout engine developed by the Mozilla Project. It was originally named NGLayout. Gecko's function is to render web content, such as HTML, CSS, XUL, JavaScript, and render it on the user's screen or print it. In XUL-based applications Gecko also renders the application's user interface. Gecko is used in many applications, including a few browsers such as Firefox and SeaMonkey (for a complete list, please refer to Wikipedia's article on Gecko). Products using the same version of Gecko have identical support for Web standards. Documentation Chrome This page contains information specific to browser chrome (not Google Chrome) code running in Gecko. Gecko FAQ Frequently asked questions about Gecko. Gecko DOM reference ...
How to get a stacktrace for a bug report
report. A stacktrace 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 wheth...
Implementing Download Resuming
Introduction Various protocols support getting partial files. This means that if a download was interrupted, it can be resumed from that point on, rather than regetting the whole file. The Necko implementations of HTTP 1.1 (RFC 2616) as well as FTP support this feature. ...
Addon
amed 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
() 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 addonIDs = AddonMan...
DeferredTask.jsm
hat 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 void flush();Obs...
Using JavaScript code modules
mponents.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 Prior to Gecko ...
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 interf...
Bootstrapping a new locale
ent 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, where "ab" is th...
L10n Checks
ctory containing all other locales instead of the directory containing the source by setting the -l parameter (useful for e.g. "KompoZer"), e.g.: check-l10n-completeness -l browser/locales/l10n.ini ../l10n/ de Compare every directory In the source mode you can tell L10n Checks to compare every directory, not only the ones set in the all-locales file, by setting the -f parameter (useful for e.g. ...
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 ...
Localization prerequisites
llaBuild should 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 po...
Translation phase
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 By adding Firefox(R) to your mobile phone, you can access rich Web content and enjoy your favorite Firefox features wherever you go. Lightning Lightning is a popular ...
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
t 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
is always enabled since bug 660762. cdgroup Accepted, but does not have any effect on the rendering. Attributes Shared by all MathML Elements See ? 2.1.6 and ? 3.1.10. Attribute Notes id, class, style Implemented. xref Accepted, but 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 - li...
dom.event.clipboardevents.enabled
t.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.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. ...
Profile Manager
LD.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 tracks a list of F...
Leak And Bloat Tests
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 processing output. ...
MailNews
It provides 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. ...
Overview of NSS
dd 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 Messaging Server a...
FC_InitToken
invalid. CKR_TOKEN_WRITE_PROTECTED we don't have a reference to the key database (we failed to open the key database or we have released our reference). CKR_DEVICE_ERROR: failed to reset the key database. Application usage FC_InitToken() is used to reset the password for the key database when the user forgets the password. The "Reset Password" button of the Mozilla Application Suite and SeaMonkey (in Preferences->Privacy & Security->Master Passwords) calls FC_InitToken(). The "-T" (token reset) command of certutil calls FC_InitToken(). Note: Resetting the password clears all permanent secret and private keys. You won't be able to decrypt the data, such as Mozilla's stored passwords, that were encrypted using any of those keys. See also FC_InitPIN, NSC_InitToken ...
NSC_InitToken
't have a key database.) we don't have a reference to the key database (we failed to open the key database or we have released our reference). CKR_DEVICE_ERROR: failed to reset the key database. Examples Application usage NSC_InitToken() is used to reset the password for the key database when the user forgets the password. The "Reset Password" button of the Mozilla Application Suite and SeaMonkey (in Preferences->Privacy & Security->Master Passwords) calls NSC_InitToken(). The "-T" (token reset) command of certutil calls NSC_InitToken(). Note: Resetting the password clears all permanent secret and private keys. You won't be able to decrypt the data, such as Mozilla's stored passwords, that were encrypted using any of those keys. See also NSC_InitPIN, FC_InitToken ...
Proxies in Necko
rvice 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 SOCKS proxies. ...
Introduction to the JavaScript shell
b. 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 experimenting or t...
JS_NewObject
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 the new object's...
SpiderMonkey: The Mozilla JavaScript runtime
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 Reference SpiderM...
Mozilla Projects
David Baron that helps extension 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 ...
XForms Accessibility
d that XForms accessibility is working on the Windows platform, and Linux testing has not yet been done, although everything should work and is ready to be tested. You will find trunk builds of Firefox at ftp.mozilla.org, trunk builds of XForms extension (Windows) at ftp.mozilla.org or trunk builds of XForms extension (Linux) ftp.mozilla.org. Build It Yourself If you would like to build firefox/seamonkey yourself then please ensure your .mozconfig file has the following option: ac_add_options --enable-extensions=default,xforms,schema-validation How To Test There are two approaches to test XForms accessibility. The first is to use and assistive technology such as a screen reader, or an accessibility testing tool, to make sure XForms elements have proper accessible objects. Or you may be guid...
Places Developer Guide
s. 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; var Cc = Component...
FUEL
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 Although the FUEL Applicat...
SMILE
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"). ...
STEEL
. Consider using the functions found in AppConstants.jsm or Services.jsm instead STEEL is the Scriptable Thunderbird Easy Extension Library. It is a FUEL-like set of interfaces to facilitate Thunderbird extension development. 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"). Objects extIApplication Objects extIApplication extIConsole extIEventItem extIEventListener extIEvents extIExtension extIExtensions extIPreference extIPreferenceBranch extISessionStorage steelIApplication Objects steelIApplication XPCOM Although the STEEL steelIApplication object is preloaded into XUL scripts, it is not preloaded into JavaScript XPCOM code. The ob...
XPCOM array guide
Mozilla › Tech › XPCOM › Guide › Arrays
ents 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 with index value 2...
XPCOM changes in Gecko 2.0
. Each component prototype // must have a .classID which is used to create it. const NSGetFactory = XPCOMUtils.generateNSGetFactory([myComponent]); A component may implement backwards compatibility with Gecko 1.9.2 by dynamically detecting which symbols are exported by XPCOMUtils.jsm and exporting the correct function: /** * XPCOMUtils.generateNSGetFactory was introduced in Mozilla 2 (Firefox 4, SeaMonkey 2.1). * XPCOMUtils.generateNSGetModule was introduced in Mozilla 1.9 (Firefox 3.0). */ if (XPCOMUtils.generateNSGetFactory) var NSGetFactory = XPCOMUtils.generateNSGetFactory([myComponent]); else var NSGetModule = XPCOMUtils.generateNSGetModule([myComponent]); Binary components Binary components must be listed explicitly in a manifest using a binary-component directive: binary-component c...
Index
Mozilla › Tech › XPCOM › Index
Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference In XULRunner applications nsIXULAppInfo obtains app-specific information from application.ini. 1109 nsIXULBrowserWindow Interfaces, Interfaces:Scriptable, XPCOM Interface Reference, XUL 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. 1110 nsIXULBuilderListener Interfaces, Interfaces:Scriptable, XPCOM, XPCOM Interface Reference Called after a template builder has rebuilt its content. 1111 nsIXULRuntime Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Inter...
Components.utils.Sandbox
elf. 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 javascript code that needs...
Observer Notifications
just before the first window for the application is displayed. sessionstore-windows-restored Sent by the session restore process to indicate that all initial browser windows have opened. Note that while the window are open and the chrome loaded the tabs in the windows may still be being restored after this notification. Note: This notification is specific to Firefox and SeaMonkey 2.0 applications Application shutdown These are the topics that you can observe on shutdown, in order of appearance. Topic Description quit-application-requested Something has requested that the application be shutdown. You can cancel the shutdown from here by setting aSubject.data to true (aSubject is the first parameter to your observer, the data value is an...
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 i...
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
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 ...
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. ...
imgIRequest
modules/libpr0n/public/imgIRequest.idlScriptable Please add a summary to this article. Inherits from: nsIRequest Last changed in Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5) Method overview void cancelAndForgetObserver(in nsresult aStatus); imgIRequest clone(in imgIDecoderObserver aObserver); void decrementAnimationConsumers(); imgIRequest getStaticRequest(); void incrementAnimationConsumers(); void lockImage(); void requestDecode(); void unlockImage(); Attributes Attribute Type Description CORSMode long The CORS mode that this image was loaded with. Read only. decoderObserver imgIDecoderObserver Read only. image imgIContainer The image container. Read only. imagePrincipal nsIPrincipal The principal gotten from the channel the image...
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
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 thos...
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); ...
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 mozIAsyncHistor...
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. 0xF...
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
riptable 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 commitTransaction(); ...
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 Descript...
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 inv...
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...
mozIStorageStatement
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 mozIStorageConnection ...
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...
mozIStorageStatementWrapper
tement 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. Throws an exception...
mozIStorageVacuumParticipant
/storage/public/mozIStorageVacuumParticipant.idlScriptable Components can implement this interface to provide information to allow a database to be periodically vacuumed by the Storage service. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) To create an instance of this interface, use the Category Manger, with the category "vacuum-participant". Add more details here. Method overview boolean onBeginVacuum(); void onEndVacuum(in boolean aSucceeded); Attributes Attribute Type Description databaseConnection mozIStorageConnection A connection to the database file to be vacuumed. expectedDatabasePageSize long The expected page size, in bytes, for the database. The vacuum manag...
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 'forceAllowThirdPartyCooki...
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 ...
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 s...
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. ...
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 t...
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. ...
nsIAccessibleTreeCache
derbird 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. ...
nsIAlertsService
ponents/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 Gecko 1.9. Note: ...
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 nsIV...
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. ...
nsIAppStartup_MOZILLA_2_0
...
nsIApplicationCache
netwerk/base/public/nsIApplicationCache.idlScriptable This interface represents an application cache, which stores resources for offline use. 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) Each application cache has a unique client ID for use with nsICacheService.openSession() method, to access the cache's entries. Each entry in the cache can be marked with a set of types, specified in the Constants section. All application caches with the same group ID belong to a cache group. Each group has one "active" cache that will service future loads. Inactive caches are removed from the cache when no longer referenced. Method overview void activate(); void addNamespaces(in nsIArray...
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. inherit...
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. ...
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 th...
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 nsIAutoCo...
nsIBidiKeyboard
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_ERROR_NOT_IMPLEMEN...
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 an...
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...
nsICacheEntryDescriptor
netwerk/cache/nsICacheEntryDescriptor.idlScriptable This interface provides a cache entry descriptor. ...
nsICacheListener
The status parameter equals NS_OK on success. See nsICacheService for accessGranted values. ...
nsICacheSession
netwerk/cache/public/nsICacheSession.idlScriptable Handles open synchronous and asynchronous cache entry operations along with evicting cache entries and checking for cache devices instantiation according to the session storage policies. ...
nsICancelable
netwerk/base/public/nsICancelable.idlScriptable This interface provides a means to cancel an operation that is in progress. 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 cancel(in nsresult aReason); Methods cancel() Call this method to request that this object abort whatever operation it may be performing. void cancel( in nsresult aReason ); Parameters aReason A failure code indicating why the operation is being canceled. It is an error to pass a success code. ...
nsICategoryManager
xpcom/components/nsICategoryManager.idlScriptable This interface provides access to a data structure that holds a list of name-value pairs, called categories, where each value is a list of strings. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Implemented by: @mozilla.org/categorymanager;1. To use this service, use: var categoryManager = Components.classes["@mozilla.org/categorymanager;1"] .getService(Components.interfaces.nsICategoryManager); Method overview string addCategoryEntry(in string aCategory, in string aEntry, in string aValue, in boolean aPersist, in boolean aReplace); void deleteCategory(in string aCategory); void deleteCategoryEntry(in string aCategory, in string a...
nsIChannel
netwerk/base/nsIChannel.idlScriptable This interface allows clients to construct 'GET' requests for specific protocols, and manage them in a uniform way. Inherits from: nsIRequest Last changed in Gecko 19.0 (Firefox 19.0 / Thunderbird 19.0 / SeaMonkey 2.16) Once a channel is created (via nsIIOService.newChannel()), parameters for that request may be set by using the channel attributes, or by calling QueryInterface() to retrieve a subclass of nsIChannel for protocol-specific parameters. Then, the URI can be fetched by calling open() or asyncOpen(). After a request has been completed, the channel is still valid for accessing protocol-specific results. For example, QueryInterfacing to nsIHttpChannel allows response headers to be retrieved for the corresponding http transaction. This i...
nsIChannelPolicy
netwerk/base/public/nsIChannelPolicy.idlScriptable A container for policy information to be used during channel creation. 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 exists to allow the content policy mechanism to function properly during channel redirects. Channels can be created with this interface placed in the property bag and upon redirect, the interface can be transferred from the old channel to the new channel. Attributes Attribute Type Description contentSecurityPolicy nsISupports A nsIContentSecurityPolicy object to determine if the load should be allowed. loadType unsigned long Indicates what type of content is being loaded, for example nsIContentPolic...
nsIChromeFrameMessageManager
content/base/public/nsIMessageManager.idlScriptable Handles loading of content in a remote chrome frame. 1.0 66 Introduced Gecko 2.0 Inherits from: nsIFrameMessageManager Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Method overview void loadFrameScript(in AString aURL, in boolean aAllowDelayedLoad); void removeDelayedFrameScript(in AString aURL); Methods loadFrameScript() Loads a script into the remote frame. void loadFrameScript( in AString aURL, in boolean aAllowDelayedLoad ); Parameters aURL The URL of the script to load into the frame; this must be an absolute URL, but data: URLs are supported. aAllowDelayedLoad If true, the script will be loaded when the remot...
nsIChromeRegistry
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 chrome://package/p...
nsIClassInfo
Read only. ...
nsIClipboardOwner
The nsIClipboardOwner interface notifies the clipboard owner about the current status of ownership of the clipboard transferable at given situation and time. widget/public/nsIClipboardOwner.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 LosingOwnership(in nsITransferable aTransferable); Methods LosingOwnership() This method notifies the owner of the clipboard transferable that the transferable is being removed from the clipboard. It results into a NS_Ok if there are no errors. void LosingOwnership( in nsITransferable aTransferable ); Parameters aTransferable The transferable. See also nsIClipboard nsITransferable ...
nsICommandLine
toolkit/components/commandlines/public/nsICommandLine.idlScriptable Represents the command line used to invoke a XUL application. This may be the original command line of this instance or a command line provided remotely by another instance of the application. 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) Components may implement the nsICommandLineHandler interface to add custom command line handling behavior. Definitions arguments Any values found on the command line. switches Flags. In normalized form, these are preceded by a single dash. Some flags may take parameters; for example: "-url <param>" or "-install-xpi <param>". Method overview long findFlag(in AString aFlag, in boolean aC...
nsICommandLineHandler
The entries in this category are read in alphabetical order, and each category value is treated as a service contract ID implementing this interface. ...
nsICommandLineRunner
The nsICommandLineRunner is an extension of nsICommandLine used to initialize command lines and run them by processing the comand line handlers. toolkit/components/commandlines/public/nsICommandLineRunner.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: nsICommandLine Method overview void init(in long argc, in nsCharPtrArray argv, in nsIFile workingDir, in unsigned long state); void run(); void setWindowContext(in nsIDOMWindow aWindow); Attributes Attribute Type Description helpText AUTF8String Process and combine the help text provided by each command-line handler. Read only. Methods init() Called with the argc/argv combination passed to main. It assumes a native character set. O...
nsIComponentManager
xpcom/components/nsIComponentManager.idlScriptable This interface provides methods to access factory objects and instantiate instances of classes. ...
nsICompositionStringSynthesizer
You need to use nsITextInputProcessor instead of this. Every instance is associated with a DOM window at created by nsIDOMWindowUtils.createCompositionStringSynthesizer(). To create an instance for this: var domWindowUtils = window.windowUtils; var compositionStringSynthesizer = domWindowUtils.createCompositionStringSynthesizer(); For example, when you create a...
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 ); Para...
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 a...
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...
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); Attri...
nsIContentViewManager
See Getting access to content views for details. ...
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 ...
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 a...
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. ...
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 th...
nsICryptoHash
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...
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 flo...
nsIDOMEvent
Everything marked as Gecko 16.0 was previously available in that interface. See bug 761613. ...
nsIDOMEventTarget
...
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. ...
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. ...
nsIDOMFontFaceList
Read only. ...
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/geolocat...
nsIDOMGeoPositionAddress
le 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 specification; use countr...
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. ...
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. ...
nsIDOMGlobalPropertyInitializer
dom/interfaces/base/nsIDOMGlobalPropertyInitializer.idlScriptable An initializer for global properties that lets them know about the window they're being attached to. 1.0 66 Introduced Gecko 2.0 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) An XPCOM component implementing this interface can be exposed to web content as a property on the window. See Custom window properties are a snap in Firefox blog post for details. An alternative way to expose an object to the web content is to add the property in response to the content-document-global-created notification. Method overview jsval init(in nsIDOMWindow window); Methods init() jsval init( in nsIDOMWindow window ); Parameters window The w...
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 fu...
nsIDOMHTMLTimeRanges
Ranges 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 long index ); P...
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 relatedTarg...
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 ...
nsIDOMMozTouchEvent
nism 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 ...
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 l...
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 ...
nsIDOMStorage2
d 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 contents of this sto...
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 val...
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 attribu...
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 ...
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 th...
nsIDOMWindow
is 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 subclass of nsI...
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 cal...
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. onInformat...
nsIDirectoryEnumerator
lScriptable 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 resource. It is safe t...
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
se 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. Read only. ...
nsIDragDropHandler
terface 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 hookupTo( in nsID...
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 unsig...
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 aAllowSam...
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 ...
nsIEffectiveTLDService
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; it may therefore...
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, s...
nsIEventSource
...
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 v...
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 meth...
nsIFeed
olkit/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 Describ...
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 nsIFeedPerso...
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 inli...
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
s 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 the document is...
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 ...
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 ); ...
nsIFeedTextConstruct
eeds/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); ASt...
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
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 long long aBeginTi...
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 sendCrossProce...
nsIFrameLoaderOwner
content/base/public/nsIFrameLoader.idlScriptable Represents the owner of an nsIFrameLoader. 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 [noscript, notxpcom] alreadyAddRefed_nsFrameLoader GetFrameLoader(); void swapFrameLoaders(in nsIFrameLoaderOwner aOtherOwner); Attributes Attribute Type Description frameLoader nsIFrameLoader The frame loader owned by this nsIFrameLoaderOwner. Read only. Methods getFrameLoader() Returns the frame loader object owned by this object. [noscript, notxpcom] alreadyAddRefed_nsFrameLoader GetFrameLoader(); Parameters None. Return value The nsIFrameLoader owned by this object.
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 bo...
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(i...
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 nsIGeolocatio...
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). ...
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 sh...
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...
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.or...
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...
nsIInProcessContentFrameMessageManager
Return value The nsIContent object representing the owner's content. See also Content process event handling nsIContentFrameMessageManager ...
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(Com...
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 AS...
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. ...
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...
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...
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 nsILoginManangerStora...
nsILoginMetaInfo
ents/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 recommended. For ex...
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. ...
nsIMarkupDocumentViewer
default = true. ...
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.callba...
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 p...
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...
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 removeMe...
nsIMessageWakeupService
/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 category manager ...
nsIMicrosummary
IMicrosummaryService.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 be remote resour...
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 or b...
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...
nsIMicrosummaryService
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 ...
nsIMsgWindow
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. ...
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
omponents/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([opt...
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. Not...
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. ...
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 paren...
nsINavHistoryResultViewer
ed 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 void containerClosed(in nsINavHistoryContainerResultNode aContainerNode); void con...
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 configura...
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 uns...
nsIPermission
The nsIPermission interface defines a "permission" object, which is used to allow or block objects (for example cookies, images) from certain sites based on user preferences. netwerk/base/public/nsIPermission.idlScriptable Please add a summary to this article. Last changed in Gecko 2 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Inherits from: nsISupports Attributes Attribute Type Description capability PRUint32 The permission to set: allow, deny, or unknown (which is the default). See nsIPermissionManager.Permission_type_constants for allowed values. Read only. expireTime PRInt64 The expiration time of the permission measured in milliseconds since 1970 Jan 1 0:00:00. Read only. expi...
nsIPermissionManager
The nsIPermissionManager interface is used to persistently store permissions for different object types (cookies, images, and so on) on a site-by-site basis. netwerk/base/nsIPermissionManager.idlScriptable Please add a summary to this article. ...
nsIPrefLocalizedString
alizedString.idlScriptable This interface is simply a wrapper interface for nsISupportsString so the preferences service can have a unique identifier to distinguish between requests for normal wide strings nsISupportsString) and 'localized' wide strings, which get their default values from properites files. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Method overview void setDataWithLength(in unsigned long length, [size_is(length)] in wstring data); wstring toString(); Attributes Attribute Type Description data wstring Provides access to string data stored in this property. Methods setDataWithLength() Used to set the contents of this object. void setDataWithLength( in unsigned...
nsIPrivateBrowsingService
netwerk/base/public/nsIPrivateBrowsingService.idlScriptable Provides access to information about the state of the private browsing service. 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) This interface is deprecated since Firefox 20, and will probably be completely removed in Firefox 21. The nsIPrivateBrowsingService interface provides access to information about the state of the private browsing feature offered in Firefox 3.5 and later. When Firefox is in private browsing mode, Firefox shouldn't save any potentially private information. The browser itself stops caching, and also doesn't record history information. In addition, temporary, databases are created to be used f...
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 bo...
nsIProcess2
Implemented by: @mozilla.org/process/util;1. ...
nsIProfile
Gecko 0.9 Deprecated Gecko 1.8.1 Obsolete Gecko 20.0 Inherits from: nsISupports Last changed in Gecko 1.6 Implemented by: @mozilla.org/profile/manager;1. To get access to the Profile Manager service: var profile = Components.classes["@mozilla.org/profile/manager;1"] .getService(Components.interfaces.nsIProfile); Note: This interface was used by SeaMonkey up through SeaMonkey 1.1 versions, which were based off Gecko 1.8.1. However, it hasn't been used in Firefox since before Firefox 1.0. Method overview void cloneProfile(in wstring profileName); void createNewProfile(in wstring profileName, in wstring nativeProfileDir, in wstring langcode, in boolean useExistingDir); void deleteProfile(in wstring name, in boolean canDele...
nsIProfileLock
Read only. ...
nsIProfileUnlocker
profile/public/nsIProfileUnlocker.idlScriptable Returned by the nsIToolkitProfile.lock method; you can use this to attempt to force a profile to be unlocked. 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 unlock(in unsigned long aSeverity); Constants Constant Value Description ATTEMPT_QUIT 0 Politely ask the process currently holding the profile's lock to quit. FORCE_QUIT 1 Forcibly terminate the process holding the profile lock. Methods unlock() Tries to unlock the profile by attempting or forcing the process that currently holds the lock to quit. void unlock( in unsigned long aSeverity ); Param...
nsIPrompt
To avoid redundancy, all methods here link to nsIPromptService. ...
nsIProtocolHandler
netwerk/base/nsIProtocolHandler.idlScriptable This interface is used to implement protocol handlers. If you wish to create a new protocol handler, you need to implement this interface. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Method overview boolean allowPort(in long port, in string scheme); nsIChannel newChannel(in nsIURI aURI); nsIURI newURI(in AUTF8String aSpec, in string aOriginCharset, in nsIURI aBaseURI); Attributes Attribute Type Description defaultPort long The default port is the port the protocol uses by default. If the protocol doesn't need a port (for example, the "about" protocol), this attribute is -1. Read only. protocolFlags unsigned...
nsIProtocolProxyCallback
netwerk/base/public/nsIProtocolProxyCallback.idlScriptable This interface serves as a closure for nsIProtocolProxyService.asyncResolve(). 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 onProxyAvailable(in nsICancelable aRequest, in nsIURI aURI, in nsIProxyInfo aProxyInfo, in nsresult aStatus); Methods onProxyAvailable() This method is called when proxy info is available or when an error in the proxy resolution occurs. void onProxyAvailable( in nsICancelable aRequest, in nsIURI aURI, in nsIProxyInfo aProxyInfo, in nsresult aStatus ); Parameters aRequest The value returned from asyncResolve. aURI The URI pas...
nsIProtocolProxyFilter
Use nsIProtocolProxyService.registerFilter() to hook up instances of this interface. ...
nsIProxyInfo
failoverTimeout unsigned long This attribute specifies the failover timeout in seconds for this proxy. ...
nsIPushMessage
This interface resembles PushMessageData from the Push API. Method overview DOMString text(); jsval json(); void binary([optional] out uint32_t dataLen, [array, retval, size_is(dataLen)] out uint8_t data); Methods text() Extracts the message data as a UTF-8 text string. ...
nsIPushService
nsIPushService supports the Push API implementation in Firefox, and can be used directly from privileged code to create system subscriptions. ...
nsIPushSubscription
Sending a POST request to this URL routes the message to the instance of Firefox that created the subscription. A subscription also has a public key and secret; these are used to encrypt message payloads. ...
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 reas...
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 nsI...
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...
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.nsIScriptableUn...
nsIScriptableUnicodeConverter
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(); AString ConvertToUnic...
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 engin...
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 ...
nsISelection3
Method overview void modify(in DOMString alter, in DOMString direction, in DOMString granularity); Methods modify() Modifies the selection. ...
nsISessionStore
onstore/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 duplicateTab(in nsI...
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 ...
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
ide 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 nsIInterfaceRequestor aCallbacks,...
nsIStructuredCloneContainer
it is an error to initialize an nsIStructuredCloneContainer more than once. ...
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 ...
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); nsIV...
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 solvin...
nsITextInputProcessorCallback
This interface has a "function" attribute. Therefore, JS-IME can implement this as a function. ...
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. ...
nsITimer
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 void cancel(); ...
nsIToolkitProfile
toolkit/profile/public/nsIToolkitProfile.idlScriptable Represents a user profile. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) You should not create these objects yourself; to obtain them, use the nsIToolkitProfileService interface to create and obtain them. 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. See nsIProfileLock.localDirectory(). Read only. name AUTF8String The profile's name. rootDir nsILocalFile The location of the profile d...
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 a...
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...
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...
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. A...
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 genera...
nsIUpdate
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 update. This is used ...
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 indicatin...
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 At...
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 specifi...
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 ...
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 me...
nsIUpdateTimerManager
IUpdateTimerManager.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 identify the ti...
nsIUrlListManagerCallback
toolkit/components/url-classifier/public/nsIUrlListManager.idlScriptable Interface for a class that manages updates of the url classifier database. ...
nsIVariant
table 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
his 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 nsIWebBrowserChrome ...
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 ...
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 n...
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 aM...
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 s...
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 applic...
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. ...
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 numbe...
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 start...
nsIWinTaskbar
By default, there is a single taskbar preview per top level window (excluding pop-ups). ...
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 nsI...
nsIWindowsRegKey
This interface is highly Win32 specific. ...
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 O...
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. ...
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. v...
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 ...
nsIWritablePropertyBag
void deleteProperty( in AString name ); Parameters name Property to delete. ...
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 XF...
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 E...
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 N...
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 ob...
nsIXMLHttpRequestUpload
content/base/public/nsIXMLHttpRequest.idlScriptable This interface provides access to the features needed when uploading data using nsIXMLHttpRequest. ...
nsIXPCScriptable
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. ...
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 onBeforeLinkTr...
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...
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
t 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 toString() string...
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 nsIZipReade...
XPCOM reference
pe. All XPCOM primitives are scriptable, and they all implement an XPCOM interface from the table below.XPCOM string functionsXPCOM provides these low-level string functions to let you work with strings; however, it's often better to use one of the string classes rather than directly using these functions. Many XPCOM pages return an nsresult. Prior to Gecko 19 (Firefox 19 / Thunderbird 19 / SeaMonkey 2.16), this was an integer that simply returned an error code. It is now a strongly typed enum when XPCOM is built using a C++11 compiler. This causes compile-time errors to occur when improper values are returned as nsresult values, thereby making it easier to catch many bugs. ...
Address Book examples
Address book 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. 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. ...
LDAP Support
ps" about how Enterprise customers can leverage and customize LDAP support in Mozilla Thunderbird. It is not intended as an introduction to LDAP and Mozilla products. It assumes you are already familiar with configuring preferences for deployed builds in addition to setting up Thunderbird to use an LDAP directory. It should be noted that all of this information applies to both Thunderbird and the SeaMonkey application suite. 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. For large companies, there may be a large number of users in the directory with the same name. In such a scenario, it may be hard to tell which person you really want to send the message to. In Thunderbird, t...
MailNews Filters
d new action to 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. ...
Mailnews and Mail code review requirements
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. ...
Theme Packaging
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: describes the common structure of installable bundles, in...
libmime content type handlers
pe.com> Contents Overview API's Plugin Location/Installation Sample Content Type Handler Plugin Overview The libmime module implements a general-purpose MIME parser and one of the primary methods provided by the parser is the ability to emit an HTML representation of an input stream. The primary use of libmime is to parse and render RFC822 messages for use by the Messenger component of Seamonkey. A necessary capability of this module is to dynamically add the ability to decode and render various content types. This functionality will be accomplished via Content Type Handler Plugins for libmime. libmime has a homegrown object system written in C, and since the content type handler plugins need to exist in this module, a description of the libmime object system should be reviewed and unde...
Thunderbird
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. ...
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. ...
Plug-in Development Overview - Plugins
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 with it. Getting Ve...
URLs - Plugins
ason 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 value of the target ...
DOM Inspector - Firefox Developer Tools
ite. (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 > Advanced > DOM Inspector, then simply open up the inspector panel and visit a website. Report a bug in DOM Inspector Use the conveniently named "DOM Inspector" component in Bugzilla. To find out who knows DOM Inspector code and where it lives, see the DOM Inspector module listing. ...
Index - Firefox Developer Tools
pector.xul-based primary UI. This is the two-pane inspector that appears when Ctrl+Shift+I (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 desi...
Console.group() - Web APIs
Web › API › Console › group
eb 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(). Collapsed groups are ...
DOMParser - Web APIs
Web › API › DOMParser
ererror 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 DOMParser() let doc = p...
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
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 = document.createNodeIt...
Document.importNode() - Web APIs
he 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 the document tre...
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. ...
Document - Web APIs
Web › API › Document
vileges). Document.popupNode Returns the node upon which a popup was invoked. Document.tooltipNode Returns the node which is the target of the current tooltip. Mozilla also define some non-standard methods: Document.execCommandShowHelp()Obsolete since Gecko 14 This method never did anything and always threw an exception, so it was removed in Gecko 14.0 (Firefox 14.0 / Thunderbird 14.0 / SeaMonkey 2.11). Document.getBoxObjectFor() Use the Element.getBoundingClientRect() method instead. Document.loadOverlay()Obsolete since Gecko 61 Loads a XUL overlay dynamically. This only works in XUL documents. Document.queryCommandText()Obsolete since Gecko 14 This method never did anything but throw an exception, and was removed in Gecko 14 (Firefox 14 / Thunderbird 14 / SeaMonkey 2.11). Inte...
File.fileName - Web APIs
Web › API › File › fileName
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
Web › API › File › getAsBinary
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. Exa...
File.getAsText() - Web APIs
Web › API › File › getAsText
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
Web › API › Headers › getAll
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
ollowing 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 depending on what...
NameList - Web APIs
Web › API › NameList
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. ...
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 p...
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
Web › API › WebSocket › close
n-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
Web › API › Window › home
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
Web › API › Window › routeEvent
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
o 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 setInterval() run...
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
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 tweaked through the d...
Worker() - Web APIs
Web › API › Worker › Worker
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...
Synchronous and asynchronous requests - Web APIs
dle 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 in deprecation st...
background-size - CSS: Cascading Style Sheets
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 corresponding intrinsic p...
Audio and Video Delivery - Developer guides
h 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. Instead of the error...
Event developer guide - Developer guides
Web › Guide › Events
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
Web › Guide › Index
rview 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 transforms. ...
<mpadded> - MathML
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 of 'mpadded' in ...
<mtable> - MathML
Web › MathML › Element › mtable
line. 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 are allowed and...
SVG as an Image - SVG: Scalable Vector Graphics
SVG images can be used as an image format, in a number of contexts. Many browsers support SVG images in: HTML <img> or <svg> elements CSS background-image Gecko-specific contexts Additionally, Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) introduced support for using SVG in these contexts: CSS list-style-image CSS content SVG <image> element SVG <feImage> element Canvas drawImage function Restrictions For security purposes, Gecko places some restrictions on SVG content when it's being used as an image: JavaScript is disabled. External resources (e.g. images, stylesheets) cannot be loaded, though they can be used if inlined through data: URIs. :visited-link styles aren't rendered. Platform-native widget styling (based on OS theme) is disabled. Note that the...