Search completed in 1.24 seconds.
nsIStringBundleService
intl/strres/nsIStringBundle.idlScriptable Provides the string bundle service, which provides a way to fetch localized strings from a property file. Inherits from: nsISupports Last changed in Gecko 1.7 Implemented by: @mozilla.org/intl/stringbundle;1. ...
...des the string bundle service, which provides a way to fetch localized strings from a property file. Inherits from: nsISupports Last changed in Gecko 1.7 Implemented by: @mozilla.org/intl/stringbundle;1. ...
...rg/intl/stringbundle;1. To access this service, use: var string
BundleService = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIString
BundleService); Method overview nsIStringBundle createBundle(in string aURLSpec); nsIStringBundle createExtensibleBundle(in string aRegistryKey); void flush
Bundles(); wstring formatStatusMessage(in nsresult aStatus, in wstring aStatusArg); Methods createBundle() nsIStringBundle createBundle( in string aURLSpec ); Parameters aURLSpec The URL of the properties file to load. This is typically a locale URL, e.g. chrome://global/locale/global.properties Return value A string bundle corresponding to the properties file. This string bu...
...And 2 more matches
Custom app bundles for Mac OS X - Archive of obsolete content
Mac OS X applications are typically packaged as application
bundles which are then distributed in .dmg (disk image) files. This tutorial will show you how to package your XULRunner-based application in a way which is consistent with the expectations of Mac OS X users. Application bundle layout Application
bundles are essentially just directory structures that conform to a standard layout and naming convention. A XUL application for Mac OS X should follow something similar to this basic directory structure: Example.app/ Contents/ Info.plist (Application bundle properties are specified in this XML file.) PkgInfo (This is a simple text file and is created along with the Info.plist file) MacOS/ (The MacOS folder will contain your XULRunner executable) ...
...nfo must exist in the Contents directory. ...
Access StringBundle from Overlay
String
bundles are handy for localizing your project by removing all of your strings into a separate, easy to access text file. Unfortunately adding the
bundles into Thunderbird isn't as easy as adding them to your XUL overlay. ...
... String
bundles are handy for localizing your project by removing all of your strings into a separate, easy to access text file. Unfortunately adding the
bundles into Thunderbird isn't as easy as adding them to your XUL overlay. ...
... String
bundles are handy for localizing your project by removing all of your strings into a separate, easy to access text file. Unfortunately adding the
bundles into Thunderbird isn't as easy as adding them to your XUL overlay. ...
...And 3 more matches
Index - Archive of obsolete content
, though, is that these components don't have a mechanism for specifying the versions of Firefox with which they are compatible, leading to poor integration and instability as users upgrade their Firefox installations. 254 Multiple item extension packaging Add-ons, Obsolete, Toolkit API, install. rdf A multiple Item package provides the ability to package multiple installable
bundles which can then be downloaded and installed by a user, or provided pre-packaged with an application or by an external program. Every multiple item package must provide an install.rdf file (not old-style install.js!) and has the same requirements as an extension except as noted below. 255 Offering a context menu for form controls Add-ons, Extensions, Mozilla, XUL Firefox 3 chan...
...ism : bundle custom Google Reader + Talk (French) Just Browsing: Site-Specific Browsers 610 Build Building Prism is similar to building McCoy, but there are some differences which is why a separate build documentation article. To build prism, you must first build the xulrunner tree, and then build prism. 611 BundleLibrary prism No summary! 612
Bundles prism In addition to passing simple command line parameters, Prism can use a zipped bundle package to install a webapp. The bundle can hold additional resources currently limited to: 613 Configuration prism A webapp profile is a simple, INI-style text file that specifies some parameters about a webapp. The profile can be used to launch the webapp in Prism. The param...
...tatusbar Deprecated, XUL Elements, XUL Reference An element used to create a status bar, usually placed along the bottom of a window. It is virtually equivalent to a standard box, but may be rendered differently. Contains statusbarpanels. 1911 stringbundle XUL Elements, XUL Reference An element which can be used to load localized resources from property files. String
bundles should be placed inside a string
bundleset element. 1912 string
bundleset XUL Elements, XUL Reference A container for stringbundle elements. 1913 tab NeedsExample, XUL, XUL Elements, XUL Reference A single tab which should be placed inside a tabs element. The user may click a tab to bring the associated page of the tabbox to the front. 1914 tabbo...
...And 2 more matches
Property Files - Archive of obsolete content
es deleted. resultMessage=%2$S files found in the %1$S directory. Here, the property file contains three properties. These would be read by a script and displayed to the user. A property file can also include comments. A line that begins with a hash sign ('#') is treated as a comment: # This is a comment welcomeMessage=Hello, world! # This is another comment goodbyeMessage=Come back soon! String
bundles You could write the code to read properties yourself, however XUL provides the stringbundle element which does this for you. The element has a number of functions which can be used to get strings from the property file and get other locale information. This element reads in the contents of a property file and builds a list of properties for you. You can then look up a particular property by name.
...ld write the code to read properties yourself, however XUL provides the stringbundle element which does this for you. The element has a number of functions which can be used to get strings from the property file and get other locale information. This element reads in the contents of a property file and builds a list of properties for you. You can then look up a particular property by name. ...
... read properties yourself, however XUL provides the stringbundle element which does this for you. The element has a number of functions which can be used to get strings from the property file and get other locale information. This element reads in the contents of a property file and builds a list of properties for you. You can then look up a particular property by name. ...
...And 2 more matches
The Essentials of an Extension - Archive of obsolete content
loItem.getAttribute("label")); // Wrong helloItem.setAttribute("label", "&xulschoolhello.hello2.label;"); // Better helloItem.setAttribute("label", "Alternate message"); // Right! ...
...We don't incl...
...We don't include the insertbefore...
...tAttribute("label", someStringBundle.getString("xulschoolhello.hello2.label")); This is the reason DTD strings are not a solution for all localization cases, and the reason we often need to include string
bundles in XUL files: <string
bundleset id="string
bundleset"> <stringbundle id="xulschoolhello-string-bundle" src="chrome://xulschoolhello/locale/browserOverlay.properties" /> </string
bundleset> The string
bundleset element is just a container for stringbundle elements. There should only be one per document, which is the reason why we overlay the string
bundleset that is in browser.xul, hence the very generic id. We don't include the insertbefore or insertafter attributes because the ordering of string
bundles doesn't make a difference. The element is completely invisible. If you don...
Multiple item extension packaging - Archive of obsolete content
From the release of Firefox 53, multiple item extension packages are no longer supported and will not load. As a consequence, these packages are no longer accepted by AMO. A multiple Item package provides the ability to package multiple installable
bundles which can then be downloaded and installed by a user, or provided pre-packaged with an application or by an external program. Every multiple item package must provide an install.rdf file (not old-style install.js!) and has the same requirements as an extension except as noted below. There is currently no feature to prevent or warn the user when installing an older version of an extension. Multiple Item Package File Layout The multiple item package file layout is a simplified form of an installable bundle and requires a file exten...
...2-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <!-- nsIUpdateItem type for a Multiple Item Package --> <em:type>32</em:type> ... When specifying em:targetApplication the minVersion specified should be the highest minVersion and the maxVersion specified should be the lowest maxVersion from all of the installable
bundles contained by the multiple item package for the em:targetApplication. If this is not done, any items that are not compatible will not be installed unless a compatibility check discovers updated compatibility information. Installation Installation can be performed using any of the existing methods used for installing extensions / themes. The same user interface is used for installing a multiple i...
...ing. Additionally, the container add-on ID must not be the same as the ID of any of the contained add-ons. Official References for Toolkit API Official References. Do not add to this list without contacting Benjamin Smedberg. Note that this page is included from the pages listed below. ...
BundleLibrary - Archive of obsolete content
We are working on a new bundle library compatible with the current Prism version and welcome any contributions from the developer community. ...
... Note: These
bundles have not be tested with the latest version of Prism and probably won't run. We are working on a new bundle library compatible with the current Prism version and welcome any contributions from the developer community. ...
...t run. We are working on a new bundle library compatible with the current Prism version and welcome any contributions from the developer community.
Bundles Gmail: gmail.webapp Google Calendar: gcalendar.webapp Google Docs: gdocs.webapp Google Groups: groups.webapp Google Analytics: ganalytics.webapp Google Reader: greader.webapp Facebook: facebook.webapp Twitter: twitter.webapp User Contributed
Bundles Gmail w/Gtalk: gmail.webapp (NOTE: work with latest version of Prism!) 32 online todo lists: Zip file with web apps for 32 online todo lists Anywhere.FM: anywhere.fm@prism.app.webapp a service that lets you upload your entire music library to their servers and listen from anywhere through a slick flash interface. AOL Email : AoLEmail.webapp BBC Radio Player bbcradioplayer.webapp Bloglines : blog...
Getting started with Svelte - Learn web development
erent approach to building web apps than some of the other frameworks covered in this module. While frameworks like React and Vue do the bulk of their work in the user's browser while the app is running, Svelte shifts that work into a compile step that happens only when you build your app, producing highly-optimized vanilla JavaScript. The outcome of this approach is not only smaller application
bundles and better performance, but also a developer experience that is more approachable for people that have limited experience of the modern tooling ecosystem. Svelte sticks closely to the classic web development model of HTML, CSS, and JS, just adding a few extensions to HTML and JavaScript. It arguably has fewer concepts and tools to learn than some of the other framework options. It's main curren...
...to our application. It just instantiates the App component and binds it to the body of our html page. public: This directory contains all the files that will be published in production. favicon.png: This is the favicon for your app. Currently, it's the Svelte logo. index.html: This is the main page of your app. Initially it's just an empty HTML5 page that loads the css files and js
bundles generated by Svelte. global.css: This file contains unscoped styles. It's a regular css file that will be applied to the whole application. build: This folder contains the generated CSS and JavaScript source code. bundle.css: The CSS file that Svelte generated from the styles defined for each component. bundle.js: The JavaScript file compiled from all your JavaScript source c...
...script> </head> <body> </body> </html> The minified version of bundle.js weighs a little more than 3KB, which includes the "Svelte runtime" (just 300 lines of JavaScript code) and the App.svelte compiled component. As you can see, bundle.js is the only JavaScript file referenced by index.html. There are no other libraries loaded into the web page. This is a much smaller footprint than compiled
bundles from other frameworks. Take into account that, in the case of code
bundles, it's not just the size of the files you have to download that matter. This is executable code that needs to be parsed, executed, and kept in memory. So this really makes a difference, especially in low-powered devices or CPU-intensive applications. Following this tutorial In this tutorial series you will be building a c...
Plug-in Basics - Plugins
e plug-ins yourself and establish which ones are to be registered for which MIME types. How Gecko finds plug-ins When a Gecko-based browser starts up, it checks certain directories for plug-ins, in this order: Windows Directory pointed to by MOZ_PLUGIN_PATH environment variable. %APPDATA%\Mozilla\plugins, where %APPDATA% denotes per-user Application Data directory. Plug-ins within toolkit
bundles. Profile directory\plugins, where Profile directory is a user profile directory. Directories pointed to by HKEY_CURRENT_USER\Software\MozillaPlugins\*\Path registry value, where * can be replaced by any name. Directories pointed to by HKEY_LOCAL_MACHINE\Software\MozillaPlugins\*\Path registry value, where * can be replaced by any name. Mac OS X ~/Library/Internet Plug-Ins. /Library/Inter...
...EY_CURRENT_USER\Software\MozillaPlugins\*\Path registry value, where * can be replaced by any name. Directories pointed to by HKEY_LOCAL_MACHINE\Software\MozillaPlugins\*\Path registry value, where * can be replaced by any name. Mac OS X ~/Library/Internet Plug-Ins. /Library/Internet Plug-Ins. /System/Library/Frameworks/JavaVM.framework/Versions/Current/Resources. Plug-ins within toolkit
bundles. Profile directory/plugins, where Profile directory is a user profile directory. Linux Directory pointed to by MOZ_PLUGIN_PATH environment variable. For example: #!/bin/bash export MOZ_PLUGIN_PATH=/usr/lib64/mozilla/plugins exec /usr/lib64/firefox/firefox Profile directory/plugins, where Profile directory is the directory of the current user profile. ~/.mozilla/plugins. /usr/lib/moz...
...b/i386-linux-gnu/ --> for 32 libs if exist /lib32/ --> this is symlinked (or bind mounted) desired proper directory /lib64/ --> this is symlinked (or bind mounted) desired proper directory more in https://wiki.debian.org/Multiarch/TheCaseForMultiarch if something wrong, please edit. Example Fedora 64bit use: /lib/ --> for 32 bit libs /lib64/ --> for 64 bit libs Plug-ins within toolkit
bundles. To find out which plug-ins are currently installed visit about:plugins. Gecko displays a page listing all installed plug-ins and the MIME types they handle, as well as optional descriptive information supplied by the plug-in. On Windows, installed plug-ins are automatically configured to handle the MIME types that they support. If multiple plug-ins handle the same MIME type, the first plug-in...
Miscellaneous - Archive of obsolete content
.getElementById("example"), "the text to be inserted"); Disabling JavaScript programmatically // Disable JS in the currently active tab from the context of browser.xul gBrowser.docShell.allowJavascript = false; If this isn't your browser, you should save the value and restore it when finished. If you wish to block selected scripts based on their URI, implement nsIContentPolicy. Using string
bundles from JavaScript Assuming the extension has myext.properties with name/value pairs such as: invalid.url=The speficied URL, %S, is invalid. That was attempt number %S. These properties can be accessed from JavaScript in the following manner: var common = { _bundle: Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIString
BundleService) ...
...ties"), getLocalizedMessage: function(msg) { return this._bundle.GetStringFromName(msg); } }; alert(common.getLocalizedMessage("invalid.url")) Another similar alternative (using both GetStringFromName and formatStringFromName), is: var fcBundle = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIString
BundleService) .createBundle("chrome://myext/locale/myext.properties"); function getStr(msg, args){ //get localised message if (args){ args = Array.prototype.slice.call(arguments, 1); return fcBundle.formatStringFromName(msg,args,args.length); } else { return fcBundle.GetStringFromName(msg); } } /* Usage */ alert(getStr("invalid.url", "http://bad/url/", "3")); //for mes...
Index of archived content - Archive of obsolete content
ug-n-Hack Plug-n-Hack Get Involved Plug-n-Hack Phase1 Plug-n-Hack Phase2 Plug-n-Hack Tools Supported Plugin Architecture Porting NSPR to Unix Platforms Priority Content Prism BlogPosts Build BundleLibrary
Bundles Configuration Extensions FAQ HostWindow Installer Scripting Styling Proxy UI PyDOM RDF API RDF Datasource How-To Reading textual data Remote XUL Remote debugging Rsyncing the CVS Repository Running Wind...
... XUL Explorer XULRunner Application Update Article Building XULRunner Building XULRunner with Python CommandLine Components Creating XULRunner Apps with the Mozilla Build System Creating a Windows Inno Setup installer for XULRunner applications Custom app
bundles for Mac OS X Debugging a XULRunner Application Deploying XULRunner Dialogs in XULRunner Getting started with XULRunner How to enable locale switching in a XULRunner application MacFAQ Make your xulrunner app match the system locale Opening a Link in the Default Browser Specifying Startup Ch...
Localizing an extension - Archive of obsolete content
locale stockwatcher2 en-US chrome/locale/ This instructs Firefox that the en-US localization is located in the chrome/locale/en-US directory. Localizing strings in JavaScript code If your JavaScript code contains literal strings that need to be localized, as does our stock watcher sample, we need to make those localizable as well. We can do this by moving the strings into a string bundle. String
bundles are created by establishing a property file that maps keys to string values. For a detailed explanation of how this works, see XUL Tutorial:Property Files. Create a properties file The first thing we do is create a property file for the literal strings used by the JavaScript code in stockwatcher2.js: changeString=Chg: openString=Open: lowString=Low: highString=High: volumeString=Vol: The stockwa...
...tring=Low: highString=High: volumeString=Vol: The stockwatcher2.properties file shown above maps five keys (changeString, openString, lowString, highString, and volumeString) to the corresponding text in English. Create the string bundle The next step is to modify the stockwatcher2.xul file to reference this property file. We do this by creating a string bundle, using the following code: <string
bundleset id="string
bundleset"> <stringbundle id="string-bundle" src="chrome://stockwatcher2/locale/stockwatcher2.properties"/> </string
bundleset> This establishes a new string bundle, referenced by the ID "string-bundle", whose keys and values are to be loaded from the stockwatcher2.properties file we've already created. Note: You should use a unique ID for each string bundle element for each fil...
Prism - Archive of obsolete content
display pop-up notifications. Customization: Apps can be run using a shared browser runtime and customized using client-side script (similar to Greasemonkey). Custom stylesheets can be used to tweak the UI. Architectural Overview Prism is a XULRunner application. In addition to the browser engine included in XULRunner, it consists of: Web app bundle management: Code for creating new web app
bundles and loading existing
bundles. Shortcut creation UI: A dialog box lets the user specify attributes of the web app (name, URI, icon, shortcut locations). JavaScript API: An API that can be used by scripts inside the bundle to customize the application. We are refining this approach to make the API applicable in as many environments as possible (e.g. it might be useful even for applications runn...
...s a new menu item to call up the shortcut creation dialog for inside Firefox. Web apps can also point to a complete web app bundle or some elements of a web app (like higher resolution icons). Refractor automatically takes this information into account. Documentation Frequently Asked Questions
Bundles A web application bundle is a zip archive that holds a configuration file, icons and an optional webapp JS script.
Bundles can be installed locally, or directly from a website using the Prism for Firefox extension. Configuration A webapp bundle should contain a webapp.ini configuration file. The configuration file is a simple, I...
XUL Reference - Archive of obsolete content
popup menuseparator notification notificationbox observes overlay page panel param popupset preference preferences prefpane prefwindow progressmeter query queryset radio radiogroup resizer richlistbox richlistitem row rows rule scale script scrollbar scrollbox scrollcorner separator spacer spinbuttons splitter stack statusbar statusbarpanel stringbundle string
bundleset tab tabbrowser (Firefox-only starting with Firefox 3/Gecko 1.9) tabbox tabpanel tabpanels tabs template textnode textbox textbox (Firefox autocomplete) textbox (Mozilla autocomplete) timepicker titlebar toolbar toolbarbutton toolbargrippy toolbaritem toolbarpalette toolbarseparator toolbarset toolbarspacer toolbarspring toolbox tooltip tree treecell treechildren tree...
...item tree treecell treechildren treecol treecols treeitem treerow treeseparator box hbox vbox bbox deck stack grid columns column rows row scrollbox action assign binding bindings conditions content member param query queryset rule template textnode triple where script commandset command broadcaster broadcasterset observes key keyset stringbundle string
bundleset arrowscrollbox dropmarker grippy scrollbar scrollcorner spinbuttons All attributes All properties All methods Attributes defined for all XUL elements Style classes Event handlers Deprecated/Defunct Markup ...
Building a Theme - Archive of obsolete content
ote: This tutorial is about building themes for Firefox 29 and later. Other tutorials exist for building themes for earlier versions of Firefox. For an older tutorial, see Creating a Skin for Firefox. Note: Firefox for Mac OS X has changed some directories so the guide may be obsolete. Setting up the Development Environment Themes and extensions are packaged and distributed in ZIP files or
Bundles, with the XPI (pronounced "zippy") file extension. An example of the content within a typical XPI file for a theme: example.xpi: /install.rdf /chrome.manifest /preview.png /icon.png /chrome/ browser/ communicator/ global/ mozapps/ We'll wan...
...tyle within our theme, we need to write a selector rule to select this class. Open up the file chrome/browser/browser.css in your theme. Search this file for the #navigator-toolbox selector, and add a background: orange; rule to it. Save the file. Chrome URIs Next, we have to tell Firefox where to find the theme files for your theme. CSS, XUL, and other files are part of "Chrome Packages" -
bundles of user interface components which are loaded via chrome:// URIs. Rather than load the browser from disk using a file:// URI (since the location of Firefox on the system can change from platform to platform and system to system), Mozilla developers came up with a solution for creating URIs to content that the installed add-on knows about. The browser window is: chrome://browser/content/browser.x...
Code splitting - MDN Web Docs Glossary: Definitions of Web-related terms
To prevent the requirement of downloading ginormous files, scripts can be split into multiple smaller files. Then features required at page load can be downloaded immediately with additional scripts being lazy loaded after the page or application is interactive, thus improving performance. ...
... See Also Bundling Lazy loading HTTP/2 Tree shaking ...
Package management basics - Learn web development
f the common web development features that are very helpful at the development stage, but are not very useful in production. In production, they will just bloat your site. Now stop the previous Parcel command (using Ctrl + C). We can now prepare our bare bones example site for an imaginary deployment. Parcel provides an additional command to generate files that are suited to publication, making
bundles (mentioned earlier) with the build option. Run the following command: parcel build index.html You should see an output like so: ? Built in 9.35s. dist/my-project.fb76efcf.js.map 648.58 KB 64ms dist/my-project.fb76efcf.js 195.74 KB 8.43s dist/index.html 288 B 806ms Again, the destination for our production files is the dist directory. Reducing you...
...nspect our use of the code and only include the functions that we're actually using in production -- a process known as "Tree Shaking". This makes a lot of sense as we want to reduce file size and thus make our app load as quickly as possible. Different tooling will let you tree shake in different ways. Although the list grows by the month, there are three main offerings for tools that generate
bundles from our source code: Webpack, Rollup, and Parcel. There will be more available than this, but these are popular ones: The RollUp tool offers tree shaking and code splitting as it's core features. Webpack requires some configuration (though "some" might be understating the complexity of some developers' Webpack configurations). In the case of Parcel (prior to Parcel version 2), there's a spe...
Index
plemented. 924 nsIStringBundle Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference This interface is used by XUL:stringbundle to retrieve strings. It is recommended that you use the methods of XUL:stringbundle to access these functions unless necessary. ...
...ference, XPCOM Interface Reference This interface is used by XUL:stringbundle to retrieve strings. It is recommended that you use the methods of XUL:stringbundle to access these functions unless necessary. Alternatively, a string bundle can be created within a javascript context with nsIString
BundleService. 925 nsIStringBundleOverride Interfaces, Interfaces:Scriptable, String
bundles, XPCOM, XPCOM Interface Reference Implemented by: @mozilla.org/intl/stringbundle/text-override;1. To create an instance, use: 926 nsIString
BundleService Interfaces, Interfaces:Scriptable, Localization, NeedsContent, XPCOM API Reference, XPCOM Interface Reference Implemented by: @mozilla.org/intl/stringbundle;1. To access this service, use: 927 nsIStringEnumer...
nsIStringBundle
ons for retrieving both formatted and unformatted strings from a properties file. Inherits from: nsISupports Last changed in Gecko 1.7 This interface is used by XUL:stringbundle to retrieve strings. It is recommended that you use the methods of XUL:stringbundle to access these functions unless necessary. Alternatively, a string bundle can be created within a javascript context with nsIString
BundleService. Method overview wstring formatStringFromID(in long aID, [array, size_is(length)] in wstring params, in unsigned long length); wstring formatStringFromName(in wstring aName, [array, size_is(length)] in wstring params, in unsigned long length); nsISimpleEnumerator getSimpleEnumeration(); wstring GetStringFromID(in long aID); wstring GetStringFro...
...es file. ...
XPI
An XPI contains installation instructions (install.js or install.rdf) as well as the actual software to install, which is often itself packaged as a JAR file. When downloaded or dropped into an extension manager, XPInstall automatically interacts with the installation instructions contained in the XPI, and installs the contained software. ...
...hod. ...
Extension Packaging - Archive of obsolete content
e Item Package, explains how to create this kind of package. (Firefox 1.5/XULRunner 1.8 required.) From the release of Firefox 53, multiple item extension packages are no longer supported and will not load. As a consequence, these packages are no longer accepted by AMO. ...
How to convert an overlay extension to restartless - Archive of obsolete content
mystrings.properties"); }); function loadPropertiesFile(path) { /* HACK: The string bundle cache is cleared on addon shutdown, however it doesn't appear to do so reliably. Errors can erratically happen on next load of the same file in certain instances. (at minimum, when strings are added/removed) The apparently accepted solution to reliably load new versions is to always create
bundles with a unique URL so as to bypass the cache. This is accomplished by passing a random number in a parameter after a '?'. (this random ID is otherwise ignored) The loaded string bundle is still cached on startup and should still be cleared out of the cache on addon shutdown. This just bypasses the built-in cache for repeated loads of the same path so that a newly installed upd...
The Box Model - Archive of obsolete content
f a label to be clickable, just like in HTML. Since labels can't handle rich text, workarounds have to implemented using Javascript. One possibility is to use special markup in a locale property so that the link can be easily recognized: xulschoolhello.linkedText.label = Go to <a>our site</a> for more information The syntax is similar to HTML because it's easier to read this way, but string
bundles won't do anything special with it. You'll have to break the string using regular expressions and generate 3 different labels, one with the text-link class. You'll also need to do some CSS work on the labels so that the inner spacing in the text looks right. Another option is to take it up a notch and really use HTML. xulschoolhello.linkedText.label = Go to <html:a onclick="%S">our site</html:...
Structure of an installable bundle - Archive of obsolete content
tension loader processes the base directory first, followed by the applicable platform directories (first /{OS_TARGET}/, then /{OS_TARGET}_{TARGET_XPCOM_ABI}/). When default preferences are defined in several directories, the ones loaded later overwrite the earlier ones. ...
Creating a Firefox sidebar extension - Archive of obsolete content
tallable XPI file. Pre-requisites This article is a quick start, it won't explain all elements of XUL, packaging and XPI's. It's preferable you have some basic knowledge of how XUL works and how Firefox handles extensions. See Building an Extension for more detailed information about structuring, packaging, and deploying extensions. Packages Extensions to Firefox are installed with packages ("
Bundles"). An extension package usually contains a "content" provider, which contains the XUL code and application logic. Optionally locales and skins can be included. Most additions are provided with a default tree structure, although not required it is recommended to use this structure. Here the package for the sidebar is created, the files included are listed below. Example 1. Package structure emp...
Install Wizards (aka: Stub Installers) - Archive of obsolete content
What do we mean by installer package? An installer package is an archive file (called xpi--pronounced "zippies"--because of its .xpi extensions) in Phil Katz zip format. It contains some files to be installed and the install script, usually named install.js, which contains JavaScript directives for actions to take during an install including adding files and directories, removing old or obsolete files and directories, executing command line tools, etc. To learn more about the XPInstall and installer packages please refer to The Annotated Browser XPI Installer and the XPInstall API Reference. ...
Learn XPI Installer Scripting by Example - Archive of obsolete content
tFolder in the XPInstall API Reference for a list of keywords). Registering the Software Registering software is sometimes a requirement of both the operating system and of the Netscape 6 platform. When you install new chrome, for example, like the browser.xpi install does, you need to alert the chrome registry to these changes, so that skins, user preferences, packaging lists, and localization
bundles will all track the new software. For registering software with the win32 operating system, the XPInstall API provides two special Install objects, WinProfile and WinReg. These two objects provide programmatic access to the Windows user profile and the Windows registry, respectively. The browser.xpi install script does not demonstrate the use of these objects, but see the XPInstall API Reference ...
Index - Archive of obsolete content
tatusbar Deprecated, XUL Elements, XUL Reference An element used to create a status bar, usually placed along the bottom of a window. It is virtually equivalent to a standard box, but may be rendered differently. Contains statusbarpanels. 1180 stringbundle XUL Elements, XUL Reference An element which can be used to load localized resources from property files. String
bundles should be placed inside a string
bundleset element. 1181 string
bundleset XUL Elements, XUL Reference A container for stringbundle elements. 1182 tab NeedsExample, XUL, XUL Elements, XUL Reference A single tab which should be placed inside a tabs element. The user may click a tab to bring the associated page of the tabbox to the front. 1183 tabbo...
The Joy of XUL - Archive of obsolete content
oblem in team environments because the skills required to develop these two parts are often satisfied by different people. XUL provides a clear separation among the client application definition and programmatic logic ("content" consisting of XUL, XBL, and JavaScript), presentation ("skin" consisting of CSS and images), and language-specific text labels ("locale" consisting of DTDs and string
bundles in .properties files). The layout and appearance of XUL applications can be altered independently of the application definition and logic. Further, the application can be localized for different languages and regions independently of its logic or presentation. This degree of separation results in applications that are easier to maintain by programmers and readily customized by designers and ...
Creating an Installer - Archive of obsolete content
the file calendar.xpi will be installed. Our find files example Let's try this with the find files dialog. function doneFn ( name , result ){ if (result) alert("An error occured: " + result); } var xpi = new Object(); xpi["Find Files"] = "findfile.xpi"; InstallTrigger.install(xpi,doneFn); The XPI Archive Note: If you want to create a new XULRunner application, extension, or theme, see
Bundles. The installer XPI file is required to contain one file called install.js which is a JavaScript file which is executed during the installation. The remaining files are the files to be installed. These files will typically be placed inside a directory in the archive but they do not have to be. For chrome files, they might be structured like the chrome directory. Often, the only files placed in a...
Window icons - Archive of obsolete content
dow.xpm or mywindow16.xpm (Linux), where mywindow is the id of the <window> you want to attach the icon to, in the chrome/icons/default subfolder of your bundle. These icons will override the global icon files, which are located in app_dir/browser/chrome/icons/default. Note: The global icons override does not currently work due to bug bug 543490. 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 nee...
Accessibility/XUL Accessibility Reference - Archive of obsolete content
treechildren See tree treecol See tree treecols See tree treeitem See tree treerow See tree Elements that do not expose anything to screen readers/have no discovered accessibility issues yet: arrowscrollbox bbox box grippy hbox menuseparator overlay page script spacer splitter stringbundle string
bundleset vbox window Elements not processed yet: action binding bindings broadcaster broadcasterset conditions content dialog dialogheader editor listcell member observes preference preferences prefpane prefwindow resizer richlistbox richlistitem resizer rule scrollbar scrollbox scrollcorner separator template textnode titlebar toolbar toolbarbutton toolbargrippy ...
elements - Archive of obsolete content
menulist menupopup menuseparator O observes overlay P page popup popupset preference preferences prefpane prefwindow progressmeter R radio radiogroup resizer richlistbox richlistitem resizer row rows rule S script scrollbar scrollbox scrollcorner separator spacer splitter stack statusbar statusbarpanel stringbundle string
bundleset T tab tabbrowser tabbox tabpanel tabpanels tabs template textnode textbox titlebar toolbar toolbarbutton toolbargrippy toolbaritem toolbarpalette toolbarseparator toolbarset toolbarspacer toolbarspring toolbox tooltip tree treecell treechildren treecol treecols treeitem treerow treeseparator triple V vbox W window wizard ...
stringbundle - Archive of obsolete content
A property file is a list of property key-value pairs each on a separate line. The key and value is separated with an equals sign. For example, the following defines two properties: message.displayError=An error occured trying to display this message message.nameAlreadyUsed=The name %S is already being used by another account. ...
Debugging a XULRunner Application - Archive of obsolete content
t... and you should be able to point the debugger to your app. Happy debugging :) Venkman Follow these instructions to install Venkman into your XULRunner application (XULRunner 1.9 and later): Get Venkman from addons.mozilla.org (v0.9.87 at the time of writing). To download the package, right-click the install link and save the package locally. Create a directory <application>/distribution/
bundles/venkman. Unzip the package into that directory. Add <script src="chrome://venkman/content/venkman-overlay.js" /> to one of your XUL windows. Add UI to open Venkman to your window (it could be a menu item or a toolbar button). Make it call start_venkman() when activated. Troubleshooting x-jsd is not a registered protocol If the message "x-jsd is not a registered protocol" appears when trying...
Deploying XULRunner - Archive of obsolete content
runner</string> <key>CFBundleGetInfoString</key> <string>1.0</string> <key>CFBundleIconFile</key> <string>app_icon.icns</string> <key>CFBundleIdentifier</key> <string>net.yourcompany.yourapplication</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>applicationName</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CF
BundleShortVersionString</key> <string>1.0</string> <key>CF
BundleSignature</key> <string>????</string> <!--only useful if your app handle urls--> <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLIconFile</key> <string>app_icon.icns</string> <key>CFBundleURLName</key> <string>YOURAPP Entity</string> <key>CFBundleURLSchemes</key> <array> <string>chrome</string...
Getting started with XULRunner - Archive of obsolete content
.manifest | +-+ defaults/ | | | +-+ preferences/ | | | +-- prefs.js | +-- application.ini | +-- chrome.manifest Notice that there are 5 files in the folder structure: application.ini, chrome.manifest (2), prefs.js, and main.xul. The /chrome/chrome.manifest file is optional, but might be useful for backward compatibility. See the note below. For more details on the structure of installable
bundles in general see: Structure of an installable bundle. Note: In XULRunner 2.0, the chrome.manifest is now used to register XPCOM components in addition to its previous uses. Part of this change means the /chrome/chrome.manifest is no longer considered the "root" manifest. XULRunner will not check that folder location for a root-level chrome.manifest. You need to move your existing chrome.manifest ...
XUL Application Packaging - Archive of obsolete content
XUL app packages are typically ZIPped into an archive with the extension .xulapp or .xpi. They can be installed to XULRunner with a command line flag "--install-app" if XULRunner is registered on the system. See Command Line Options for more details. Note: For instructions on deploying your applications see Deploying XULRunner. application.ini The application.ini manifest is located at the root of the extension and provides metadata that allows XULRunner to launch the application properly. ...
Shipping a plugin as a Toolkit bundle - Archive of obsolete content
w where to find the plugin. The downside to this method is that once the plugin is installed, it might be difficult for users to upgrade, uninstall, or disable the plugin. As of Firefox 3 (and any Gecko 1.9 based application) the use of install.js scripts is no longer supported and plugins must either be shipped as an executable installer or in a bundle as described here. Bundle structure Toolkit
bundles can be used for all add-ons including extensions, themes and plugins. Plugin packages should only need to package a small set of files in the following structure in the xpi file: install.rdf plugins/ pluginlib.dll plugintypes.xpt The install.rdf file contains an install manifest that describes the plugin to the user. The library and scripting interfaces are held in the plugins directory.
E4X for templating - Archive of obsolete content
createBundle('chrome://myeExt/locale/myExt.properties'); if (args){ args = Array.prototype.slice.call(arguments, 1); return STRS.formatStringFromName(msg,args,args.length); } return STRS.GetStringFromName(msg); } For example, <toolbarbutton label={$S('myToolbar.label')}/> Conditionals function _if (cond, h, _else) { if ...
Index - MDN Web Docs Glossary: Definitions of Web-related terms
tiation allowing clients to indicate a list of device and agent specific preferences. 80 Closure CodingScripting, Glossary The binding which defines the scope of execution. In JavaScript, functions create a closure context. 81 Code splitting Glossary, Reference, Web Performance, code splitting, latency Code splitting is the splitting of code into various
bundles or components which can then be loaded on demand or in parallel. 82 Codec Glossary, WebMechanics A codec (a blend word derived from "coder-decoder") is a program, algorithm, or device that encodes or decodes a data stream. A given codec knows how to handle a specific encoding or compression technology. 83 Compile CodingScripting, Glossary Compiling is the...
Getting started with Ember - Learn web development
opment experience, minimizing the trivial differences between applications -- all while being a modern and light layer on top of native JavaScript. Ember also has immense backwards and forwards compatibility to help businesses stay up to date with the latest versions of Ember and latest community-driven conventions. What does it mean to be a component-service framework? Components are individual
bundles of behavior, style, and markup -- much like what other frontend frameworks provide, such as React, Vue, and Angular. The service side provides long-lived shared state, behavior, and an interface to integrating with other libraries or systems. For example, the Router (which will be mentioned later in this tutorial) is a service. Components and Services make up the majority of any EmberJS applicati...
Handling common JavaScript problems - Learn web development
function we specified as the second argument (main()). If an error occurs in the loading of the script, we still call the function, but with a custom error that we can retrieve to help debug a problem if it occurs. Note that polyfills.js is basically the two polyfills we are using put together into one file. We did this manually, but there are cleverer solutions that will automatically generate
bundles for you -- see Browserify (see Getting started with Browserify for a basic tutorial). It is a good idea to bundle JS files into one like this -- reducing the number of HTTP requests you need to make improves the performance of your site. You can see this code in action in fetch-polyfill-only-when-needed.html (see the source code also). We'd like to make it clear that we can't take credit for thi...
Client-side tooling overview - Learn web development
ur code libraries that you are actually using are put into your final production code, or "minifying" to remove all the whitespace in your production code, making it as small as possible before it is uploaded to a server. Parcel is a particularly clever tool that fits into this category -- it can do the above tasks, but also helps to package assets like HTML, CSS, and image files into convenient
bundles that you can then go on to deploy, and also adds dependencies for you automatically whenever you try to use them. It can even handle some code transformation duties for you. Webpack is another very popular packaging tool that does similar things. Transformation This stage of your web app lifecycle typically allows you to code in either "future code" (such as the latest CSS or JavaScript featur...
Chrome registration
d-on and reinstall it to ensure that it installs correctly after updating it to use a plaintext manifest. Official references for Toolkit API Official References. Do not add to this list without contacting Benjamin Smedberg. Note that this page is included from the pages listed below. ...
Old Thunderbird build
on. The comm-central repository includes a script to do just that. This may take a while, it's a lot of code! First, cd into the comm-central subdirectory (created automatically by the previous command): cd comm-central then run: python client.py checkout On some types of network connections, "hg clone" might fail because it gets interrupted. It is faster and more efficient to use Mercurial
bundles instead the first time you fetch the complete repo. In this case, you need a bundle for comm-central, and a bundle for mozilla-central. Unbundle mozilla-central into a "mozilla" subdirectory of your comm-central repo after unbundling comm-central. (Make sure the unbundled folder's name is now "mozilla" and not "mozilla-central"). Then run "python client.py checkout" to ensure you are up-to-date.
Simple Instantbird build
ntral repository includes a script to do just that. This may take a while, it's a lot of code! First, cd into the comm-central subdirectory (created automatically by the previous command): cd comm-central then run: python client.py checkout Note: Unless you have a very good network connection, "hg clone" might fail because it gets interrupted. It is faster and more efficient to use Mercurial
bundles instead the first time you fetch the complete repo. In this case, you need a bundle for comm-central, and a bundle for mozilla-central. Unbundle mozilla-central into a "mozilla" subdirectory of your comm-central repo after unbundling comm-central. Then run python client.py checkout to ensure you are up-to-date. The source code requires 1.5GB of free space or more. Build configuration By defaul...
Error codes returned by Mozilla APIs
tion is performed on a stream that has already been closed. NS_BASE_STREAM_OSERROR (0x80470003) This error occurs when an operating system error occurs. Currently, this error only occurs when a file stream is closed. NS_BASE_STREAM_ILLEGAL_ARGS (0x80470004) NS_BASE_STREAM_NO_CONVERTER (0x80470005) NS_BASE_STREAM_BAD_CONVERSION (0x80470006) This error occurs when the component nsIString
BundleService has been set with a badly encoded property file. Try using UTF-8 encoding instead. See nsIStringBundle. NS_BASE_STREAM_WOULD_BLOCK (0x80470007) This error occurs when an attempt is made to read from a non blocking stream yet there is not enough data available to read without waiting for more. Document and Node Errors The following errors can occur when using documents, nodes and elemen...
Roll your own browser: An embedding how-to
should include all of the base support that you need to get a web browser started up. Included is the sample test application (gtkEmbed or winEmbed). What initializations do I have to do? Somewhere during the start of your application, you must initialize XPCOM. You will also want to shut this down when you quit. Other initialization must be done to start up event queues and load some string
bundles. All of this is somewhat generic and has been isolated into a static library that you can simply call on. If you build mozilla/embedding/base/, a static library (on windows) called baseembed_s.lib is built. Just link this library to your application. There are two functions that are needed: nsresult NS_InitEmbedding(const char *aPath); nsresult NS_TermEmbedding(); Pretty self-explanatory. The...
Services.jsm
ce scriptloader mozIJSSubScriptLoader JavaScript subscript loader service scriptSecurityManager nsIScriptSecurityManager Script security manager search nsIBrowserSearchService Browser search service startup nsIAppStartup Application startup service storage mozIStorageService Storage API service strings nsIString
BundleService String bundle service sysinfo nsIPropertyBag2 System info service telemetry nsITelemetry Telemetry service tm nsIThreadManager Thread Manager service uriFixup nsIURIFixup URI Fixup service urlFormatter nsIURLFormatter URL Formatter service vc nsIVersionComparator Version comparator service ...
XPCOMUtils.jsm
code module's global scope. You should simply pass this. path The relative path of the JavaScript code module to import. scope An optional object to import into; if omitted, the object passed in for the that parameter is used. Remarks This lets an extension bundle its own JavaScript code modules within itself and have them load one another. For example, if an extension named "MyExtension"
bundles foo.jsm and bar.jsm, and foo.jsm needs to load bar.jsm, it can do so like this: Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); XPCOMUtils.importRelative(this, "bar.jsm"); In other words: importRelative will only work from other code modules (such as JSM files). It will NOT work from overlay scripts or bootstrap.js or etc. Details can be found here: bug 628669 IterSimpleEnum...
Application Translation with Mercurial
Firefox profile (you will have more than one profile when following this guide). Getting the current Texts in English and your Locale Obtaining the English texts with the source code Get the source code by downloading the following file: Firefox Desktop or Firefox for Android: Download the mozilla-<branch>.hg file (e.g. mozilla-aurora.hg) from https://ftp.mozilla.org/pub/mozilla.org/firefox/
bundles/ The file is not small, but after initially downloading it, you only need to download the latest changes in the future. Thunderbird, Lightning or SeaMonkey: Download the comm-<branch>.hg file (e.g. comm-aurora.hg) from https://ftp.mozilla.org/pub/mozilla.org/thunderbird/
bundles/ In the next step, we will unpack the source code: Open an input shell, e.g. by pressing the Windows key and R on ...
Localization and Plurals
ing. Additionally, the localizer has control over where the placeholder is, in relation to the rest of the text. Of course, the strings to be localized will be placed in a separate file, such as yourextension.properties, instead of being hardcoded in the JavaScript code file. The following 3 file snippets show how to use PluralForm with your .xul, .properties, .js files. downloads.xul: <string
bundleset> <stringbundle id="strings" src="chrome://downloads.properties"/> </string
bundleset> downloads.properties: # LOCALIZATION NOTE (downloadsTitleFiles): Semi-colon list of plural forms. # See: https://developer.mozilla.org/docs/Mozilla/Localization/Localization_and_Plurals # #1 number of files # example: 111 files - Downloads downloadsTitleFiles=#1 file - Downloads;#1 files - Downloads # LOCA...
Getting SpiderMonkey source code
tps://hg.mozilla.org/mozilla-central/ cd js/src To avoid getting the full change history, click the zip or gz links at https://hg.mozilla.org/index.cgi/mozilla-central/file/tip. This fetches a snapshot of the current Mozilla tree. If you have problems with the instructions above, you can read the full details of using Mercurial to get Mozilla code here. That page also contains links to several
bundles, which can be useful if you have a poor network connection. Getting the latest SpiderMonkey source code from Git The following command line downloads the entire Mozilla repository, including the full change history and a lot of Gecko and Firefox source code that isn't part of SpiderMonkey. It also changes to the SpiderMonkey directory (js/src). git clone https://github.com/mozilla/gecko-dev.gi...
Running Automated JavaScript Tests
as the jstests shell harness. Most of the options in the jstests harness are also available for this one, but a few have different names. Use -h to see all the options. The --jitflags option allows you to test the JS executable with different flags. The flags are used to control which features are run, such as which JITs are enabled and how quickly they will kick in. The valid options are named
bundles like 'all', 'interp', 'none', etc. See the full list in the -h / --help output. One helpful option specific to jit-tests is -R filename (or --retest filename). The first time this is run, it runs the suite and writes a list of tests that failed to the given filename. The next time it is run, it will run only the tests in the given filename, and then will write the list of tests that failed when ...
Security and the jar protocol
se from Web content beginning in Firefox 45, but re-enabled again because it broke the experience of IBM iNotes users. iNotes has since been updated so that it no longer needs remote jars, so they have been disabled again in Firefox 55. You may re-enable the feature if necessary by setting the network.jar.block-remote-files preference to false. Java Archive (JAR) files are simply Zip compressed
bundles of files. Firefox 2.0.0.10 (and Firefox 1.5.0.15) fixed a potential security issue in the same origin policy when the jar: protocol was used to load data. Prior to this change, specifying the jar: protocol caused Firefox to assume that the file being retrieved is a JAR file, regardless of its MIME type (in other words, its MIME type was assumed to be application/zip, regardless of what it actual...
Toolkit API
oolkit is a set of programming interfaces (APIs) built on top of Gecko which provide advanced services to XUL applications. ...
Building the WebLock UI
s. For example, user interface packages often include an English DTD that defines labels and strings for button and menus and other elements in the interface. When the user selects a different language pack, all of the English that's been externalized in these files is dynamically replaced with the new choice. In addition to DTDs, the localization parts of a user interface may also include string
bundles in which strings that are used in the interface JavaScript can be similarly replaced. There are also technologies, not discussed here, which may be used in separate, installable files. These include bindings in XML files, metadata in RDF files, whole collections of CSS files called skins, and others. weblock.css The following style rules are defined in weblock.css, a CSS file that is loaded by...
mozilla::services namespace
vices namespace. For example, to obtain a reference to the IOService: nsCOMPtr<nsIIOService> ioService = mozilla::services::GetIOService(); Provided service getters Service Accessor Service Interface Service Name GetChromeRegistryService nsIChromeRegistryService Chrome Registry service GetIOService nsIIOService IO Service GetObserverService nsIObserverService Observer service GetString
BundleService nsIString
BundleService String Bundle Service GetToolkitChromeRegistryService nsIToolkitChromeRegistry Toolkit Chrome Registry service GetXULChromeRegistryService nsIXULChromeRegistry XUL Chrome Registry service GetXULOverlayProviderService nsIXULOverlayProvider XUL Overlay Provider service More services will be added as needed. See also Services.jsm nsIServiceManager.getService() ...
nsIProcess
unsigned long The process signature. Read only. Gecko 1.9.1 note This attribute is no longer implemented as of Gecko 1.9.1, and is removed entirely in Gecko 1.9.2. Methods init() Initializes the nsIProcess with the specified executable file. Once initialized, you can start the process executing by calling run(). Note: This function does not work with application
bundles on Mac OS X, see bug 307463 for details. void init( in nsIFile executable ); Parameters executable The nsIFile executable file to be represented by the nsIProcess object. initWithPid() Obsolete since Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) Initializes the nsIProcess to represent an existing process, given that process's ID. Gecko 1.9.1 no...
nsIStringBundleOverride
intl/strres/nsIStringBundleOverride.idlScriptable Provides the string bundle override service; this interface is an implementation detail. You should never need to use it directly. Inherits from: nsISupports Last changed in Gecko 1.7 Implemented by: @mozilla.org/intl/stringbundle/text-override;1. To create an instance, use: var string
BundleService = Components.classes["@mozilla.org/intl/stringbundle/text-override;1"] .getService(Components.interfaces.nsIStringBundleOverride); Note: You should never need to use this service directly. Instead, the string bundle service will automatically try to load this service. If there is no custom-strings.txt file then the service will fail to load. Method overview nsISimpleEnumerator enumerateKeysInBundle...
XPCOM Interface Reference
sISelectionPrivatensIServerSocketnsIServerSocketListenernsIServiceManagernsISessionStartupnsISessionStorensISimpleEnumeratornsISmsDatabaseServicensISmsRequestManagernsISmsServicensISocketProvidernsISocketProviderServicensISocketTransportnsISocketTransportServicensISoundnsISpeculativeConnectnsIStackFramensIStandardURLnsIStreamConverternsIStreamListenernsIStringBundlensIStringBundleOverridensIString
BundleServicensIStringEnumeratornsIStructuredCloneContainernsIStyleSheetServicensISupportsnsISupports proxiesnsISupportsArraynsISupportsCStringnsISupportsCharnsISupportsDoublensISupportsFloatnsISupportsIDnsISupportsInterfacePointernsISupportsPRBoolnsISupportsPRInt16nsISupportsPRInt32nsISupportsPRInt64nsISupportsPRTimensISupportsPRUint8nsISupportsPRUint16nsISupportsPRUint32nsISupportsPRUint64nsISupportsPr...
XPCOM Interface Reference by grouping
eaderVisitor nsIIDNService nsIProtocolHandler nsIProtocolProxyCallback nsIProtocolProxyFilter nsIProtocolProxyService nsIProxyInfo Preferences nsIINIParser nsIINIParserFactory nsIPrefBranch nsIPrefBranch2 nsIPrefLocalizedString nsIPrefService nsIStringBundle nsIString
BundleService Security Cookies nsICookie nsICookie2 nsICookieAcceptDialog nsICookieConsent nsICookieManager nsICookieManager2 nsICookiePermission nsICookiePromptService nsICookieService nsICookieStorage nsISessionStore ...
Using nsISimpleEnumerator
terface(Components.interfaces.nsIPropertyElement); s += property.key + ' = ' + property.value + ';\n'; } alert(s); Example using JavaScript 1.7 features // creates a generator iterating over enum's values function generatorFromSimpleEnumerator(enum, interface) { while (enum.hasMoreElements()) { yield enum.getNext().QueryInterface(interface); } } var b = document.getElementById("string
bundleset").firstChild var props = generatorFromEnumerator(b.strings, Components.interfaces.nsIPropertyElement); var s = ""; for (let property in props) { s += property.key + ' = ' + property.value + ';\n'; } alert(s); Links Code based on Using_nsIPasswordManager nsISimpleEnumerator XUL:Property:strings ...
Index
ng JavaScript, the Gecko layout engine, the XUL XML User Interface Language and the XPCOM Cross-Platform Component Object Model. Similar to Firefox, Thunderbird functionality can be enhanced and customized via extensions. 75 Building a Thunderbird extension 2: extension file layout Extensions, thunderbird Extensions are packaged and distributed in archive files (also known as
Bundles), with the XPI (pronounced "zippy") file extension. At a minimum, they contain an install.rdf, the chrome.manifest and a chrome/ folder. A content/ folder sometimes contains the actual content files. These files contain the code that makes your extension actually do something. When this tutorial is finished, our extension will look like this: 76 Building a Thunderbird extension 3: inst...
Building a Thunderbird extension 2: extension file layout
At a minimum, they contain an install.rdf, the chrome.manifest and a chrome/ folder. A content/ folder sometimes contains the actual content files. These files contain the code that makes your extension actually do something. ...
Theme Packaging
} SeaMonkey {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} Pale Moon {8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4} Official References for Toolkit API Official References. Do not add to this list without contacting Benjamin Smedberg. Note that this page is included from the pages listed below. ...
Mozilla
mentation since version 1.7 (i.e., the version of Gecko that shipped with Firefox 1.0). These changes only apply to XUL extensions and XUL applications. They do not apply to web applications. XPI Cross-Platform Installer Module (XPI) is a ZIP file used to install packages, utilizing the XPInstall technology. XPI modules (so called "
Bundles") are employed to install a wide variety of software, including Plugins, Extensions, Themes, and Thunderbird dictionaries. Zombie compartments This page tells you how to detect and avoid zombie compartments, which are a particular kind of memory leak. They can be caused by bugs in Firefox itself, or by bugs in Firefox add-ons. ...
RTCConfiguration.bundlePolicy - Web APIs
n SDP BUNDLE lets all of the media tracks (identified in the SDP from the m= lines) stream between two peers across a single 5-tuple, that is, from a single IP and port on one peer to a single IP and port on another peer, all using the same RTCDtlsTransport. The goal of bundling is to optimize performance by reducing the overhead of having multiple transports in play. The fewer RTP transports or
bundles of RTP streams you have, the better the network performance will be. All current major browsers are BUNDLE compatible. Examples The following example creates a new RTCPeerConnection with a configuration setting the connection's bundlePolicy to max-compat to maximize compatibility while attempting to optimize network use. It also specifies stun:stun.example.com as the STUN server for ICE to u...
Performance budgets - Web Performance
ining metrics, you should focus on User Experience, which will dictate not only the bounce or conversion rate but how likely is that user to return. How do I implement a performance budget? During development, there are a few tools to run checks against new or modified assets: A module bundler (e.g. webpack), has performance features that will notify you when assets exceed specified limits.
Bundlesize, allows you to define and run file size checks in your CI pipeline. File size checks are the first line of defense against regressions but translating size back into time metrics can be difficult since development environments could be missing 3rd party scripts, and optimizations commonly provided by a CDN. The first step is to define a development baseline for each branch to compare to and...
Web Performance
ou're likely aware of. Some of these formats can take your highly optimized media-rich pages even further by offering additional reductions in file size. In this guide we'll discuss some alternative media formats, how to use them responsibly so that non-supporting browsers don't get left out in the cold, and some advanced guidance on transcoding your existing assets to them. Analyzing JavaScript
bundles No doubt, JavaScript is a big part of modern web development. While you should always strive to reduce the amount of JavaScript you use in your applications, it can be difficult to know where to start. In this guide, we'll show you how to analyze your application's script
bundles, so you know what you're using, as well how to detect if your app contains duplicated scripts between
bundles. Lazy ...