Search completed in 1.17 seconds.
Using XPInstall to Install Plugins - Archive of obsolete content
Parts of this page 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.
XPInstall is a JavaScript-based installer technology that works across all the platforms that Mozilla and Netscape browsers based on Mozilla (such as Netscape 7) are deployed. It can be a way to ensure a smooth user-experience when obtaining plugins, without obliging the user to exit the browsing environment to launch a binary installer (the classic setup.exe experience on Windows) or obliging the user to restart their browser.
...pe browsers based on Mozilla (such as Netscape 7) are deployed. It can be a way to ensure a smooth user-experience when obtaining plugins, without obliging the user to exit the browsing environment to launch a binary installer (the classic setup.exe experience on Windows) or obliging the user to restart their browser. For plugin vendors who have already written a native code (e.g. ...
...n Windows) or obliging the user to restart their browser. For plugin vendors who have already written a native code (e.g. EXE) installer,
XPInstall can wrap this native installer and run it so that the user never has to leave the browsing environment and click on the EXE to run it. This article presents a guideline for improving the plugin installation experience for Netscape Gecko browsers using
XPInstall. A Definition of Terms
XPInstall is an installer technology, and the name itself stands for "Cross Platform Install" (hence "XP" -- an abbreviation for "Cross Platform"). An
XPInstall package is usually called an XPI package for short (and often pronounced "zippy"). This article is about how you can use
XPInstall to install plugins to the browsers that support
XPInstall. An XPI Package is in f...
...And 24 more matches
XPInstall - Archive of obsolete content
Parts of this page 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. ...
...g scheme with an install.rdf manifest. In particular plugin developers should see how to package a plugin as an extension. ...
...-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <!-- properties --> </Description> </RDF> Cross-Platform Install (
XPInstall) is a technology used by Mozilla Application Suite, Mozilla Firefox, Mozilla Thunderbird and other XUL-based applications for installing extensions. An XPI (pronounced "zippy" and derived from
XPInstall) installer module is a ZIP file that contains an install script or manifest (entitled install.js or install.rdf) at the root of the file. Documentation
XPInstall API Reference
XPInstall API Reference. Learn XPI Installer Scripting by Example This article uses the installer script from browser.xpi install package as the basis for discussing XPI installation...
...g XPI Installer Modules This article describes the packaging scheme of the Mozilla and offers a tutorial for creating a new package that can then be redistributed, installed, and made available to users. Install Wizards (aka: Stub Installers) View All... Community View Mozilla forums... Mailing list Newsgroup RSS feed Tools
XPInstall trigger page Related Topics Extensions, XUL, XPI ...
XPInstall API reference - Archive of obsolete content
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. ...
Index - Archive of obsolete content
format. As a rough overview this is a version string split by periods, some examples: 240 Extensions support in SeaMonkey 2 Add-ons, CodingScripting, Extensions, JavaScript, SeaMonkey, URL, thunderbird Starting with SeaMonkey 2 Alpha 1 SeaMonkey supports toolkit/-style extensions. These type of extensions have many advantages for both users and developers compared to the old
xpinstall/-style extensions. 241 Firefox addons developer guide The original document is in Japanese and distributed via the xuldev.org website. So there may be still some reference to the xuldev website (we want to host source code on MDC, not on xuldev), and to Japanese things (like some specific locales, which have been translated to French since non-latin characters are not well s...
... 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). ...
...The following instructions also apply to a theme and other XPI files. ...
...And 12 more matches
Learn XPI Installer Scripting by Example - Archive of obsolete content
Parts of this page 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. This article uses the installer script from browser.xpi install package as the basis for discussing XPI installations in general. This installer script is relatively short, but it exercises most of the important features of the
XPInstall API, and it can easily be used as a template for other more general software installations. In this article, we use the unix install file, but the installers for all the platforms are quite sim...
...ill see in the installation script, the contents of the archive are installed onto the file system in much the same way that they are stored in the archive itself, though it's possible to rearrange things arbitrarily upon installation--to create new directories, to install files in system folders and other areas. Overview of the Install Script XPI install scripts are written in JavaScript using
XPInstall Engine syntax defined in the
XPInstall API Reference. Most installation scripts, including the one discussed here, take the following basic form (in pseudo-code and with links to the sections in which these installation steps are documented): initInstall(); if (verify_space()) { err = add_dirs_and_files; register_files; if (err==SUCCESS) { performInstall() }; else { cancelInstall()...
...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 Seamonkey" is the display name, "Browser" is the registry name, and the version is "6.0.0.2000110807." See initInstall in the
XPInstall API Reference for more information on the initialization process. Verifying the Target The first thing the installation script does when it's executed is to check that there is adequate disk space for the software to be installed, where the verifyDiskSpace function is called as a condition of the main installation block that starts at line 24). // this function verifies disk space in kilobyte...
...And 7 more matches
Install Wizards (aka: Stub Installers) - Archive of obsolete content
lled 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. ...
...ntains 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. ...
...y 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. 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. ...
...And 5 more matches
XULRunner tips - Archive of obsolete content
you first need to enable the Extension Manager in application.ini. XULRunner 1.8.0 does not load extensions from the application directory; only the XULRunner directory and the user profile directory are checked. However, it seems that with XULRunner 1.9 the XULRunner directory is ignored, while the profile and application directories are checked. ...
...XULRunner 1.8.0 does not load extensions from the application directory; only the XULRunner directory and the user profile directory are checked. However, it seems that with XULRunner 1.9 the XULRunner directory is ignored, while the profile and application directories are checked. ...
...lication directory; only the XULRunner directory and the user profile directory are checked. However, it seems that with XULRunner 1.9 the XULRunner directory is ignored, while the profile and application directories are checked. ...
...And 4 more matches
Packaging WebLock
be the steps you can take to organize the WebLock component for distribution and installation. Note: the emphasis of this tutorial is on the component development itself, so this section on packaging and installing extensions to Gecko is necessarily brief. For more detailed information on packaging and installation of components into Gecko-based applications, see http://www.mozilla.org/projects/
xpinstall. Component Installation Overview
XPInstall is a set of JavaScript APIs for creating installation scripts. Using
XPInstall, you can create web-based installations for Gecko-based applications, Mozilla extensions, or individual components. The installation script for the WebLock component can also be used to register the component with the browser into which it is installed (see Registration Met...
... What Is the Chrome Registry? Like the Windows registry, the chrome registry is a database of information about applications, skins, and other extensions that have been installed in a Gecko application. ...
...ns are cross-platform, this database is abstracted above the operating system or any particular platform's registry. The chrome registry lives in a series of RDF/XML files in the application directory of Mozilla and other Gecko-based browsers, where new installs, user configurable data, skins, and other information are related to one another and the application itself. JavaScript APIs from the
XPInstall Install object download the JAR in which the installable files appear and call registration methods that tell Mozilla about the new component and the UI it uses to access the WebLock component. WebLock Installation Script is the completetrigger installation script, which can be launched from a web page. The files themselves are stored in the JAR file weblock.jar, which is simple a ZIP file with t...
...And 4 more matches
Mozilla Application Framework in Detail - Archive of obsolete content
ations using web services while maintaining the security of sites inside the user's firewall. ...
...web services support) SOAP Scripts in Mozilla (documentation on SOAP in Mozilla from the engineer who implemented it)
XPInstall, Mozilla's Cross Platform Installation Technology One of the many things that makes the Mozilla platform easy for both users and developers is that applications can be installed, extended, or upgraded with simple web page links. ...
...raded with simple web page links. The technology that makes this possible,
XPInstall, allows application developers to write JavaScript installations that manage special cross-platform installation archives (called XPIs, or "zippies"), in which packages such as new skins for the browser, patches, browser extensions, new Gecko-based applications, and third party standalone applications are stored.
XPInstall makes it easy to write both simple installation scripts and complex installations that check versions, log installation data to the local system, execute other installers, and update the appropriate registry settings. It is often used to install Mozilla-based applications and browser add-ons, but can just as easily be used to create installations for third party software that use the browser as a...
...And 3 more matches
install - Web APIs
To surface detail about the status of the installation, use the optional callback function and its status parameter, as in the example below. Description In the example below, a special JavaScript object constructor is used to create an object that can be passed to the install() method. The { } constructor takes a comma-delimited set of label/value pairs. For installations, these pairs are the
XPInstall confirm dialog display name and the path of the XPI, respectively. In the example below, a single installation object is created, but you can use this approach to create multiple installations to pass to a single install. As with the older startSoftwareUpdate method, XPIs installed with this method must have their own install.js files in which the full installation is defined. In contrast to ...
...multiple installations to pass to a single install. As with the older startSoftwareUpdate method, XPIs installed with this method must have their own install.js files in which the full installation is defined. ...
... the older startSoftwareUpdate method, XPIs installed with this method must have their own install.js files in which the full installation is defined. ...
...And 3 more matches
Enhanced Extension Installation - Archive of obsolete content
d on these containers. Tracking Item Type Item type is tracked for the most part by containment in one or other of the two containers. In situations where an item is not yet a member of one of the containers, type is inelegantly determined by checking for presence of a theme-only property on the item's Install Manifest RDF file. Installation Initiation When an item is installed from the web,
XPInstall is invoked and it calls into the Extension System when it discovers that the XPI file contains an install.rdf manifest. The Extension Manager extracts that file and checks to see if the item is compatible with the running version of the application. If it is, a small set of metadata about it is written to the appropriate datasource (name, version, a flag to tell the system to properly install it ...
...out it is written to the appropriate datasource (name, version, a flag to tell the system to properly install it on the next startup), and it is added to the appropriate type container. The system also writes a .autoreg file to the profile folder which tells the startup system that something has changed on the next restart. A copy of the XPI file the item was installed from is set aside since the
XPInstall system cleans up the temporary file it hands to the Extension System. If the item is not compatible, the Extension System asks the appropriate Update Service (either the one specified by the item, or the default one) if there is remote compatibility information that supercedes the compatibility information held by the item. If there is, and this remote information makes it so that the item is no...
...nstallation is much different. There three kinds of item installation: Installation from a file Installation by a folder or folder-link "appearing" in an Install Location, and A hybrid of the two - an XPI file "appearing" into a directory based Install Location. Installation From a File Initiation When an item is installed from a File (such as, when an item is installed from the web, via
XPInstall, upgraded by
XPInstall or dropped into a directory-based Install Location), the Install Manifest supplied by the item is expanded into a temporary location and read. The GUID and Version supplied are validated, and then Compatibility is checked for by the new _getInstallData function. This function returns the GUID, version, and type of the item, and also an error code listing either success, or ...
...y Install Manifest and the Install function is called recursively, supplying this updated Install Manifest as the source for _getInstallData. If the item is determined compatible by either of the above processes, a copy of the item's file is staged into the Install Location directory under a hierarchy like so: <staged-xpis>/guid/foo.xpi (where foo.xpi is the original file name of the file) since
XPInstall cleans up the file it supplies when the Install function returns. If the item is a Theme, we perform the installation immediately (thanks to Benjamin Smedberg's Chrome Registry changes this operation is now so simple that it can be performed by a function on the ExtensionManager, rather than creating a separate object). If the item is an Extension, we add it to the Extension container and set th...
Extension Packaging - Archive of obsolete content
to extend the functionality of an XUL program. Every extension must provide an install.rdf file, which contains metadata about the extension, such as its unique ID, version, author, and compatibility information. After the extension files and install.rdf have been prepared, there are several ways to prepare an extension for installation: ZIP the extension directory into a user-installable XPI (
xpinstall) file, unpack the extension directly into the user's application or profile directory, or register the extension in the Windows registry. Note: Starting in Gecko 2.0, XPI files are no longer unpacked when extensions are installed. Instead, the XPI itself is placed in the extensions directory, and files are loaded directly out of the package. Making an extension XPI An XPI (
XPInstall) file is...
...file, containing the extension files, with the install.rdf file at the root of the ZIP. Users can download XPI files from a website, or from a local file, and install by opening it, or dragging it into the Extension Manager window. The XPI file must contain only uncompressed files, or files compressed using the deflate algorithm. The MIME type recognized by Firefox for XPI files is application/x-
xpinstall. ...
...the deflate algorithm. The MIME type recognized by Firefox for XPI files is application/x-
xpinstall. Since most HTTP servers are not configured to return this MIME type for the .xpi extension by default, you will probably need to configure your HTTP server. In the Apache HTTP Server, this can be done by adding the following directive to the configuration file or .htaccess: AddType application/x-
xpinstall .xpi Install extension files directly If you know the location of the application (if you are installing an extension as part of the application installer, for example), you can install the extension files directly to <appdir>/extensions/<extensionID>. The extension will be found automatically by the extension manager the next time the application is launched. When using this method you must ...
Creating XPI Installer Modules - Archive of obsolete content
rather old and only applies to Mozilla Suite and SeaMonkey (until it gets converted to Toolkit). 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. Under the chrome/ directory, you'll notice that in addition to the package subdirectories, there are now also a handful of JAR files, or Java archives (see figure below). JAR is a file ...
... Once this step is complete, the Barley package is in the same state as the JAR packages of the Mozilla UI. comm.jar, en-US.jar, and all of the other archived UI packages have a similar--if slightly more complex--structure and content specification as the barley.jar. Making the Barley Install Script What remains is to package up your JAR file in such a way that it can be installed using Mozilla's
XPInstall technology. The XPI file format is used to designate archives that use Mozilla's
XPInstall to install themselves. For Barley, that installation script should read as follows: // initInstall(name + version, name, version); var err = initInstall("barley v", "barley", ""); logComment("initInstall: " + err); addFile("Barley Grain", // displayName from contents.rdf "barley.jar", ...
...lat", or uncompressed, versions of the resources. But the XPI puts all of the resources of your package together, including the instructions for installing it. Like the JAR format that Mozilla uses to archive the UI packages, the XPI format is just a specially-ordered ZIP file. For a XPI file to be valid and installable, it must contain an installation script like the one above that tells Mozilla
XPInstall where to put the new resources and how to register them. To create a XPI, use your ZIP archiver[zip] again to archive the JAR file and the installation script install.js. The archive, named barley.xpi, should contain the following two files: barley.jar install.js This ZIP file, when opened from Mozilla using File -> Open, will initialize its own installation and display a message like the follow...
Mac stub installer - Archive of obsolete content
ler Modules" folder from the "Mozilla Installer" folder into the "macbuild" folder that contains the build debug or non-debug installer binary next to MIW.mcp. Copy the License and Readme from the "Mozilla Installer" folder" to the "macbuild" folder itself. Now run the built installer from the "macbuild" itself or by running it from the MIW.mcp CodeWarrior project. How we get setup to debug the
XPInstall engine from the mac installer? Once you have the mac installer 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 de...
... How do I add an installer package to the Mac installer? Adding a package involves a few steps: Add a section named for your <component> to the packages-mac manifest that describes which files from dist belong to which module. For example, see the xpcom section that lists all the shared libraries ...
...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 installer package to the Mac installer? Adding a package involves a few steps: Add a section named for your <component> to the packages-mac manifest that describes which files from dist belong to which module. For example, see the xpcom section that lists all the shared libraries as seen in dist. These are eventually zipped with the directory structure preserv...
Unix stub installer - Archive of obsolete content
and gunzip this to /tmp. Copy the xpi directory into the src2 directory you are debugging from. Run the installer from the src2 directory by either using the mozilla-installer shell script or the mozilla-installer-bin binary with the appropriate flags. If you need to use gdb to debug the installer run it by typing "gdb mozilla-installer-bin" on the shell prompt. How we get setup to debug the
XPInstall engine from the unix stub installer? Build your entire mozilla tree (which should build the installer in the src2 directory as well). Go to mozilla/
xpinstall/packager/unix. On the shell prompt type "perl deliver.pl". Now you will find an installer *and* the xpcom.xpi and other debug xpis delivered to mozilla/installer/raw. Debug using "gdb mozilla-installer-bin" and set a breakpoint at XPI_...
...aller? Build your entire mozilla tree (which should build the installer in the src2 directory as well). Go to mozilla/
xpinstall/packager/unix. On the shell prompt type "perl deliver.pl". Now you will find an installer *and* the xpcom.xpi and other debug xpis delivered to mozilla/installer/raw. Debug using "gdb mozilla-installer-bin" and set a breakpoint at XPI_Init(). You can step into the
XPInstall engine through the xpistub once the xpistub dll is loaded. How do I add an installer package to the unix installer? Adding a package involves a few steps: Add a section named for your <component> to the packages-unix manifest that describes which files from dist belong to which module. For example, see the xpcom section that lists all the shared libraries as seen in dist. These are eventual...
...unix/config.it>. Then add the ComponentX into the appropriate Setup Types so the installer module installs it when users select the Setup Types you choose it to be in. Finally add a call to generate the xpi at package time by adding a MakeXpiFile("<component>"); call at: <http://lxr.mozilla.org/seamonkey/sou.../makeall.pl#75> You can test it by changing your current working directory to mozilla/
xpinstall/packager/unix and running "perl deliver.pl" on the shell prompt. The resulting stub and full installers will be delivered to "mozilla/installer/{stub,sea}". Original Document Information Author(s): Samir Gehani Other Contributors: Curt Patrick Last Updated Date: March 12, 2003 Copyright Information: Copyright (C) Samir Gehani, Curt Patrick ...
Windows stub installer - Archive of obsolete content
Where does the Windows stub installer code reside? The windows stub installer project resides at: <http://lxr.mozilla.org/seamonkey/sou...windows/setup/> How do we get setup to debug the Windows stub installer? Build your entire mozilla tree, which should build the stub installer in the setup directory as well. (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. Run the stub installer setup.exe from the install directory. If you need to use VC++ to debug the installer: Under Project | Settings | Debug Se...
....OBJ/install. Run the stub installer setup.exe from the install directory. If you need to use VC++ to debug the installer: Under Project | Settings | Debug Set "Executable for Debug Session" to be the path to mozilla/dist/WIN32_D.OBJ/install/setup.exe Set "Working Directory" to be the path to mozilla/dist/WIND32_D.OBJ/install Press F10 to step into the code How we get setup to debug the
XPInstall engine from the Windows stub installer? This section needs to be added How do I add an installer package to the Windows installer? Adding a package involves a few steps: Add a section named for your <component> to the packages-win manifest that describes which files from dist belong to which module. For example, see the xpcom section that lists all the shared libraries as seen in dist. The...
....org/seamonkey/sou...dows/config.it>. Then add the Component <component> into the appropriate Setup Types so the installer module installs it when users select the Setup Types you choose it to be in. Finally add <component> to the component list array @gComponentList at: <http://lxr.mozilla.org/seamonkey/sou...makeall.pl#125> You can test it by changing your current working directory to mozilla/
xpinstall/wizard/windows/builder and running "perl build.pl" on the shell prompt. The resulting stub installer and packages will be delivered to "mozilla/dist/WIN32OBJ_D/installer". Run setup.exe there to launch the stub installer. Original Document Information Author(s): Samir Gehani Other Contributors: Curt Patrick Last Updated Date: March 12, 2003 Copyright Information: Copyright (C) Samir Geh...
The Joy of XUL - Archive of obsolete content
PConnect allows JavaScript objects to transparently access and manipulate XPCOM objects. It also enables JavaScript objects to present XPCOM compliant interfaces to be called by XPCOM objects. Together, XPCOM and XPConnect enable developers to create XUL applications that require the raw processing power of compiled languages (C/C++) or access to the underlying operating system.
XPInstall XPInstall, Mozilla's Cross Platform Install facility, provides a standard way of packaging XUL application components with an install script that Mozilla can download and execute.
XPInstall enables users to effortlessly install new XUL applications over the Internet or from corporate intranet servers. To install a new application the user need only click a hypertext link on a web page or i...
...lable for Macintosh so, with the cross platform nature of XPCOM, a Macintosh calendar implementation was working within a few days. However, there was no existing Win32 port available, so developers had to undertake a porting effort to migrate libical to Windows. Within a week this too was complete and Mozilla had a working calendar for all three primary platforms: Linux, Macintosh, and Windows.
XPInstall is easy for developers and for users.The Calendar is not a planned deliverable for the Mozilla 1.0 release, and therefore is not included as a standard component in regular nightly and milestone release builds. Developers who are equipped with the software and knowledge required to compile Mozilla can set an optional environment variable and build the Calendar themselves. But many Mozilla users w...
...ned deliverable for the Mozilla 1.0 release, and therefore is not included as a standard component in regular nightly and milestone release builds. Developers who are equipped with the software and knowledge required to compile Mozilla can set an optional environment variable and build the Calendar themselves. But many Mozilla users who want to try out the Calendar can't afford this luxury. Using
XPInstall it was easy for the developers to package a version of Calendar that could be installed directly over the Internet by clicking a link. Conclusion Mozilla, featuring XUL, delivers a compelling technology for developing cross-platform applications with the same rich user interface and end user experience as native desktop applications. Designers who are experienced in building web applications us...
Creating an Installer - Archive of obsolete content
Parts of this page 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. << PreviousNext >> This section will describe packaging a XUL application into an installer.
XPInstall Packages Mozilla provides a mechanism which can be used to package XUL windows, scripts, skins and other files into single file installers. You can place this installer file somewhere for users to download. ...
...Inside the JAR file, you can add all the various files that you want to have installed. In addition, installers should contain an install script (a file named install.js) which can be used to script the installation process. ...
...Inside the JAR file, you can add all the various files that you want to have installed. In addition, installers should contain an install script (a file named install.js) which can be used to script the installation process. ...
Component Internals
in XPCOM What Is XPCOM Registration? In a nutshell, registration is the process that makes XPCOM aware of your component(s). As this section and the next describe, you can register your component explicitly during installation, or with the regxpcom program, or you can use the autoregistration methods in the Service Manager to find and register components in a specified components directory:
XPInstall APIs regxpcom command-line tool nsIComponentRegistrar APIs from Service Manager The registration process is fairly involved. This section introduces it in terms of XPCOM initialization, and the next chapter describes what you have to do in your component code to register your component with XPCOM. Once the manifest files are read in, XPCOM checks to see if there are any components that need...
...airly involved. This section introduces it in terms of XPCOM initialization, and the next chapter describes what you have to do in your component code to register your component with XPCOM. Once the manifest files are read in, XPCOM checks to see if there are any components that need to be registered. There are two supported ways to go about registering your XPCOM component. The first is to use
XPInstall, which is an installation technology that may or may not come with a Gecko application and provides interfaces for registering your component during installation. Another, more explicit way to register your component is to run the application regxpcom, which is built as part of Mozilla and is also available in the Gecko SDK. regxpcom registers your component in the default component registry. A ...
...nent during installation. Another, more explicit way to register your component is to run the application regxpcom, which is built as part of Mozilla and is also available in the Gecko SDK. regxpcom registers your component in the default component registry. A Gecko embedding application may also provide its own way of registering XPCOM components using the interface that is in fact used by both
XPInstall and regxpcom, nsIComponentRegistrar. An application, for example, could provide a "registration-less" component directory whose components are automatically registered at startup and unregistered at shutdown. Component discovery does not currently happen automatically in non-debug builds of Gecko, however. When the registration process begins, XPCOM broadcasts to all registered observers a notif...
Index
at nsISupports.AddRef(). 932 Release Documentation is now located at nsISupports.Release(). 933 nsISupports proxies NeedsHelp, NeedsUpdate, Obsolete, XPCOM The main reason for nsISupports Proxies is that JavaScript and UI are on a single thread. When one is busy, the other is blocked. ...
... 933 nsISupports proxies NeedsHelp, NeedsUpdate, Obsolete, XPCOM The main reason for nsISupports Proxies is that JavaScript and UI are on a single thread. When one is busy, the other is blocked. A good example of this is the old install.js scripts that were used in
XPInstall in older Mozilla versions. They from the majority of JavaScript code, which is small and can be quickly run. ...
... are on a single thread. When one is busy, the other is blocked. A good example of this is the old install.js scripts that were used in
XPInstall in older Mozilla versions. They from the majority of JavaScript code, which is small and can be quickly run.
XPInstall installation scripts are sometimes very complex and can require long execution time due to unzipping or native file system actions. If
XPInstall ran on the UI thread, the product would appear frozen until the script was complete. This is definitely bad. Because of this,
XPInstall was moved to its own thread. Now
XPInstall can do its installations while the product renders, but now
XPInstall can not access UI elements such as a progress meter or a confirmation dialog. How can a separate non-UI thread act as if it was on the UI thread? Here...
nsISupports proxies
r. About XPCOM proxies A proxy, in this context, is a stub object which enables a method of any class which is derived from nsISupports and has a typelib to be called on any in-process thread. The main reason for nsISupports Proxies is that JavaScript and UI are on a single thread. When one is busy, the other is blocked. ...
...ved from nsISupports and has a typelib to be called on any in-process thread. The main reason for nsISupports Proxies is that JavaScript and UI are on a single thread. When one is busy, the other is blocked. A good example of this is the old install.js scripts that were used in
XPInstall in older Mozilla versions. They from the majority of JavaScript code, which is small and can be quickly run. ...
... are on a single thread. When one is busy, the other is blocked. A good example of this is the old install.js scripts that were used in
XPInstall in older Mozilla versions. They from the majority of JavaScript code, which is small and can be quickly run.
XPInstall installation scripts are sometimes very complex and can require long execution time due to unzipping or native file system actions. If
XPInstall ran on the UI thread, the product would appear frozen until the script was complete. This is definitely bad. Because of this,
XPInstall was moved to its own thread. Now
XPInstall can do its installations while the product renders, but now
XPInstall can not access UI elements such as a progress meter or a confirmation dialog. How can a separate non-UI thread act as if it was on the UI thread? Here...
Index of archived content - Archive of obsolete content
ith NSPR threads on win16 Using cross commit Using gdb on wimpy computers Venkman Using Breakpoints in Venkman Venkman Internals Venkman Introduction Video presentations When To Use ifdefs Writing textual data XML in Mozilla
XPInstall Creating XPI Installer Modules Install Wizards (aka: Stub Installers) Mac stub installer Unix stub installer Windows stub installer Learn XPI Installer Scripting by Example Installer Script ...
... Installer Modules Install Wizards (aka: Stub Installers) Mac stub installer Unix stub installer Windows stub installer Learn XPI Installer Scripting by Example Installer Script Using
XPInstall to Install Plugins Install script template
XPInstall API reference Examples File.macAlias File.windowsShortcut Install.addDirectory Install.addFile InstallTrigger.installChrome ...
Examples - Archive of obsolete content
Examples Trigger Scripts and Install Scripts describes typical kinds of script that use the
XPInstall API. ...
... Examples Trigger Scripts and Install Scripts describes typical kinds of script that use the
XPInstall API. ...
Properties - Archive of obsolete content
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. Properties archive Full local path of the archive after it is downloaded to the platform specific temp folder. (e.g. C:\TEMP\argstest.xpi) arguments args can be passed in through the triggering APIs by attaching a ? and then the rg string to the xpi URL: (e.g. ...
...pplication build ID in the form 20041231. Note that due to branching (different versions of Gecko with different feature sets might be built on the same day), using this property to "detect" the application version may produce false results. Additionally, the build ID can be 0 for custom builds. jarfile Alias for archive platform Contains information about the platform
XPInstall was compiled for/runs on. For example, the value could begin with "Windows", "Macintosh" or "X11" (for Unix/Linux). For more details, see the corresponding code living in the GetInstallPlatform method of class nsInstall. url The fully qualified URL of the xpi (file URL, http URL, ftp URL, etc.) (e.g. http://dolfin/sgehani/zzz/ip.xpi). Note, even if triggered using relative URLs this...
Index - Archive of obsolete content
g in this <iframe>, and, when document loading is complete, it instantiates an editor on the loaded document. The <iframe> contents are then editable. 970 Using the standard theme Add-ons, Extensions, Themes No summary! 971 Widget Cheatsheet See the Periodic Table of XUL for more examples. 972 Window icons Add-ons, Extensions, Toolkit API,
XPInstall, XUL Starting with Firefox 1.5, Thunderbird 1.5, and XULRunner 1.8, you can specify an icon for a XUL window by putting files named mywindow.ico (for Windows) and mywindow.xpm or mywindow16.xpm (Linux), where mywindow is the id of the <window> you want to attach the icon to, in the chrome/icons/default subfolder of your bundle. 973 Writing Skinnable XUL and CSS CSS, XUL ...
...log. 1021 Creating a Window Tutorials, XUL, XUL_Tutorial We're going to be creating a simple find files utility throughout this tutorial. 1022 Creating a Wizard Tutorials, XUL, XUL_Tutorial Many applications use wizards to help the user through complex tasks. XUL provides a way to create wizards easily. 1023 Creating an Installer Tutorials,
XPInstall_API_reference, XUL, XUL_Tutorial This section will describe packaging a XUL application into an installer. 1024 Cross Package Overlays Tutorials, XUL, XUL_Tutorial This section describes how to apply overlays to files that don't import them. 1025 Custom Tree Views Tutorials, XUL, XUL_Tutorial The tree view holds the data to be displayed in the tree.
Creating the Component Code
installation folder. When it is copied there, run regxpcom from the command line to register that component and all the others in that directory. Several new options have been added to regxpcom in versions 1.4 and later. You can run regxpcom with the -h option to see full usage options. Registration Alternatives A Gecko embedding application may provide other ways to register XPCOM components.
XPInstall, the cross-platform installation technology that Mozilla uses to install the browser and other components, is one such alternative. It is described further in Packaging WebLock. You should consult with the authors of the application you wish to extend to see if there are other supported ways. Overview of the WebLock Module Source As we mentioned in the previous section, components have layers. ...
...bot uuid This command makes the bot generate and return a UUID, which you can then copy into your component source code. Now that we've looked at the preliminaries, it's time to discuss the classes that this module provides and the way that they define the relationships of the component in XPCOM. Coding for the Registration Process When XPCOM discovers your component for the first time (via
XPInstall or regxpcom, both of which are discussed in Component Installation Overview), the first thing it tries to do is load your library and find the symbol NSGetModule. When this special entry point is called, it is passed XPCOM's Component Manager and the location of the shared library where your component lives. The Component Manager is an interface implemented by XPCOM that encapsulates the creatio...
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. 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. XPI archives only support files stored uncompressed or compressed using the "deflate" method. Note: Starting in Gecko 2.0, XPI files are no longer unpacked when extensions are installed. ...
...ves only support files stored uncompressed or compressed using the "deflate" method. Note: Starting in Gecko 2.0, XPI files are no longer unpacked when extensions are installed. Instead, the XPI itself is placed in the extensions directory, and files are loaded directly out of the package. See Updating extensions for Firefox 4 for details. When XPI files are served via HTTP, the application/x-
xpinstall MIME type should be matched with the xpi file extension. See Also Bundles
XPInstall Creating XPI Installer Modules ...
InstallTrigger - Web APIs
non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The InstallTrigger interface is an interesting outlier in the Apps API; it's included in this API but are inherited from the old Mozilla
XPInstall technology for installing add-ons. It is used for triggering the download and installation of an add-on (or anything packaged in an .xpi file) from a Web page, using JavaScript code to kick off the install process. Note: This article needs to be updated somewhat. Overview For very simple installations, the install methods on the InstallTrigger object may be al...
... script in which InstallTrigger methods download the specified XPI file and "trigger" the execution of the install.js script at the top level of that XPI. The principal method on the InstallTrigger object is install, which downloads and installs one or more software packages archived in the XPI file format. The following is a basic example of an install trigger on a web page: xpi={'
XPInstall Dialog Display Name':'simple.xpi'}; InstallTrigger.install(xpi); You can also use the InstallTrigger object to install Netscape 6/Mozilla skins and language packs, and perform multiple-package installations with install. compareVersion Compares the version of a file or package with the version of an existing file or package. enabled Indicates whethe...
Getting Started (jpm) - Archive of obsolete content
selection dialog: navigate to the "@my-addon.xpi" file, open it and follow the prompts to install the add-on. Note that Firefox by default requires add-ons, even locally developed ones, to be signed. After installation they'll show up disabled in the list of installed add-ons, noting the missing signature. During development, or if you don't plan to distribute, you can open about:config and set
xpinstall.signatures.required to false to run it unsigned. This setting applies to any add-on, so take extra care to not accidently install a malicious one from elsewhere. To distribute your add-on, submit the XPI file to addons.mozilla.org or run jpm sign if you wish to distribute the add-on on your own server. Summary In this tutorial we've built and packaged an add-on using three commands: jpm ini...
Getting Started with Firefox Extensions - Archive of obsolete content
works on older versions too. We'll now begin with a basic "Hello World" extension. Let's start by installing it. Click on the link below. NOTE: This extension is unsigned. Starting with Firefox 43, extensions need to be signed by Mozilla before they can be installed in Firefox. Unsigned add-ons can still be installed in Developer Edition, Nightly, and ESR versions of Firefox, after toggling the
xpinstall.signatures.required preference in about:config. Install Hello World Click the above link and then click "allow" in the pop-up bubble. You should see another pop-up telling you that you are installing an unverified add-on. Click "install". After the extension is installed, you'll be asked to restart Firefox. Installing, uninstalling, enabling and disabling add-ons require a restart to complete, ...
Add-ons - Archive of obsolete content
ed 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 source code on MDC, not on xuldev), and to Japanese things (like some specific locales, which have been translated to French since non-latin characters are not well supported). Hotfix Exten...
Install.js - Archive of obsolete content
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. ...
Source code directories overview - Archive of obsolete content
though XPCOM is cross-platform). xpfe contains the C interfaces, C code and XUL for implementing the "Cross Platform Front End." Essentially, this is where the Mozilla program starts and manages other components to accomplish tasks. This code contains very little platform dependent code; it relies on other components to provide platform independent interfaces to platform specific functionality.
xpinstall contains the C interfaces and code for implementing the SmartUpdate feature from Mozilla Classic.
XPInstall provides code for downloading files, uncompressing them and installing them in a platform independent way. xulrunner contains code for XUL Runner. Firefox Firefox is contained in the browser directory app contains contains code to build the firefox executable. base contains the XUL ...
Mozilla Application Framework - Archive of obsolete content
you need. XPCOM A simple, cross-platform component model with multiple language bindings and IDL descriptions so you can plug your custom functionality into the framework and connect it with other components. Web Services Built-in support for XMLHttpRequest, XML-RPC, SOAP, and WSDL to enable Mozilla-based application authors to take advantage of the exploding world of web services.
XPInstall Our cross-platform installer for trivial packaging and installation of your Mozilla framework applications. and much much more... Tools Venkman A JavaScript debugger with support for breakpoints, conditional breakpoints, local variable inspection, watch variables, single step, stop on error, profile data collection, report generation, code reformatting (pretty printing), and more. DOM...
Venkman Introduction - Archive of obsolete content
web development tools. On other platforms, including Mac OS and Unix, it is alone in offering this degree of flexibility, depth, and power in a visual debugging environment. Starting the Debugger The JavaScript Debugger is automatically pre-installed in Mozilla 1.x but must be installed separately in Firefox and other Gecko-based products, such as Thunderbird and Netscape 7.x. Fortunately, the
XPInstall technology makes it possible to install new application modules in Firefox by just clicking a hyperlink. If you don't already have Venkman or would like to upgrade, you can easily get the latest version from Firefox Add-ons. The installation process is two steps. First, from within the browser you want to host the debugger application, visit the Firefox Add-ons page and click on the "install" li...
InstallTrigger.installChrome - Archive of obsolete content
InstallTrigger.installChrome Trigger scripts are typically invoked by JavaScript event handlers on hyperlinks. When a user clicks the link "Install the New Blue theme" in the example below,
XPInstall downloads, registers, and installs the theme contained in newblue.xpi to the user's profile directory. <a href="#" onclick="InstallTrigger.installChrome( InstallTrigger.SKIN, 'http://wildskins/newblue.xpi', 'newblue/1.0');"> Install the New Blue theme</a> ...
diskSpaceAvailable - Archive of obsolete content
he partition, a file, or a directory on the partition whose space is being queried. Returns A double number representing the amount of space, in bytes, on the queried drive. Description Use this function to make sure there is adequate space on the local disk for extracting and installing your files (see example below). You can use a string representing any file on the disk you want to check, and
XPInstall will resolve the reference to the partition itself. Example var diskAmtNeeded = 10000; f = getFolder("Program"); diskSpace = File.diskSpaceAvailable(f); g = getFolder(f, "myfile.txt"); if (diskSpace > diskAmtNeeded) { err = addFile(..., ... g, ...); if (err == 0) performInstall(); else cancelInstall(); } else { alert("not enough disk space. no install); cancelInstall(); } ...
Methods - Archive of obsolete content
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. Methods dirCreate Creates a new directory. dirGetParent Returns an object representing the parent directory. dirRemove Removes a directory. dirRename Renames the specified directory. copy Makes a copy of the specified file. diskSpaceAvailable Returns the amount of disk space available in bytes. ...
File Object - Archive of obsolete content
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. File Use the File object to manipulate local files and directories during the installation process. Overview The File object has methods for analyzing the file system and preparing it (as when new directories, program shortcuts, version comparisons, or deletions are required) for newly installed software packages. ...
InstallVersion Object - Archive of obsolete content
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. InstallVersion You use InstallVersion objects to contain version information for software. Overview This object and its methods are used both when triggering a download, to see whether a particular version needs to be installed, and when installing the software. ...
confirm - Archive of obsolete content
"Install FluxCompensator 0.4 as well", check); Returns The return value is an integer indicating which button the user selected: Value Button 0 'Cancel' or button 1. Also: user closed the dialog window 1 'OK' or button 0 2 The third button Previous versions of the
XPInstall API stated the return value of confirm() to be a Boolean. That is incorrect, confirm() always returned a plain integer (in pre-Gecko-1.8 versions either 0 or 1). Notes The preferred method for detecting support for custom dialog boxes is querying the existence of the button constants. Other approaches (e.g. buildID comparisons) are not recommended. if ("BUTTON_POS_0" in Install) { // Use extend...
patch - Archive of obsolete content
ile against a checksum stored in the GDIFF file. If the checksums do not match, the original version of the file is preserved, the patched version of the file is discarded, and an error code is returned. Any single installation process can apply multiple patches to the same file. If performInstall indicates that a reboot is necessary to complete the installation, patch may not work in subsequent
XPInstall processes until the reboot is performed. ...
Methods - Archive of obsolete content
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. Methods addDirectory Unpacks an entire subdirectory. addFile Unpacks a single file. alert Displays an Alert dialog box with a message and an OK button. cancelInstall Aborts the installation of the software. confirm Displays a Confirm dialog box with the specified message and OK and Cancel buttons. ...
Install Object - Archive of obsolete content
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. Install Use the Install object to manage the downloading and installation of software with the XPI Installation Manager. Overview The Install object is used primarily in installation scripts. In all cases, the Install object is implicit--like the window object in regular web page scripts--and needn't be prefixed to the object methods. ...
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. ...
Methods - Archive of obsolete content
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. Methods getString Retrieves a value from a .ini file. ...
WinProfile Object - Archive of obsolete content
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. WinProfile (Windows only) Windows developers use this object to manipulate the content of a Windows .ini file. Overview This object does not have a public constructor. Instead, you construct an instance of this object by calling the getWinProfile method of the Install object. ...
Methods - Archive of obsolete content
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. Methods createKey Adds a key. deleteKey Removes a key. deleteValue Removes the value of an arbitrary key. enumKeys Retrieves the registry subkeys for the given key. enumValueNames Retrieves the value of a given subkey. getValue Retrieves the value of an arbitrary key. ...
WinReg Object - Archive of obsolete content
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. WinReg (Windows only) Windows developers use this object to manipulate the content of the Windows registry. Overview This object does not have a public constructor. Instead, you construct an instance of this object by calling the getWinRegistry method of the Install object. This discussion assumes you are already familiar with the Windows Registry. ...
Manifest Files - Archive of obsolete content
ng. For extensions, you will need to create an install file install.rdf which describes what will be installed, the author of the extension and which versions of the browser or other applications it is compatible with. A specific directory structure is needed as well since extensions are limited in where the files may be installed to. An extension is packaged up into an XPI file. XPI is short for
XPInstall and is used by Mozilla to install components. Like a JAR file, an XPI file is just a ZIP file with a different extension, so you can create and view XPI files with a ZIP utility. Firefox's extension manager handles installing extensions packaged into XPI files automatically. It is recommended to upload extensions to the Mozilla Add-ons site, where users can locate them for installation. While the...
Archived Mozilla and build documentation - Archive of obsolete content
help you find those presentations. Gecko - the Smart Embedding Choice xbDesignMode.js XML in Mozilla Mozilla has a relatively good support for XML. Several World Wide Web Consortium (W3C) Recommendations and drafts from the XML family of specifications are supported, as well as other related technologies.
XPInstall XPJS Components Proposal Draft 1.0 XRE XTech 2005 Presentations XTech 2006 Presentations XUL Explorer XUL Explorer is a XULRunner application that provides an easy way to experiment with XUL. It's a simple editor that can preview XUL inline or in a separate popup window. It has a list of...
Building a Theme - Archive of obsolete content
if you have 7-Zip installed, you can use that for zipping it up: 7z a -tzip my_theme.xpi chrome chrome.manifest Note: The command-line tool will update an existing zip file, not replace it - so if you have files you've deleted from your theme, be sure to remove the .xpi file before running the zip command again. Now upload the .xpi file to your server, making sure it's served as application/x-
xpinstall. You can link to it and allow people to download and install it. For the purposes of just testing our .xpi file we can just drag it into the Add-ons Manager via "Tools -> Add-ons Manager", or open it using "File -> Open File...". Installing from a web page There are a variety of ways you can install extensions from web pages, including direct linking to the XPI files and using the InstallTrigg...
Using the Right Markup to Invoke Plugins - Archive of obsolete content
ement, and learning these is advisable. Note that the obtainment mechanism for the embed element -- that is, the way in which a plugin is obtained if it is missing -- comes via the pluginspage attribute. This attribute points to a page to get the plugin if it is not detected by the browser. The pluginurl attribute is another attribute that can be used, and it can be used to point directly to an
XPInstall file for a more streamlined download. For the embed element in particular, these attributes in Netscape 7 and Mozilla are governed by the Plugin Finder Service preference. Under Edit | Preferences | Navigator | Helper Applications is a preference to use Netscape's Plugin Finder Service. If the user has checkedAlways Use the Netscape Plugin Finder Service to get Plugins then whether these attribut...
Chrome registration
n packages will not execute. The chrome registry The Gecko runtime maintains a service known as the chrome registry that provides mappings from chrome package names to the physical location of chrome packages on disk. This chrome registry is configurable and persistent, and thus a user can install different chrome providers, and select a preferred skin and locale. This is accomplished through
xpinstall and the extension manager. In order to inform the chrome registry of the available chrome, a text manifest is used: this manifest is "chrome.manifest" in the root of an extension, or theme, or XULRunner application. The plaintext chrome manifests are in a simple line-based format. Each line is parsed individually; if the line is parsable the chrome registry takes the action identified by that l...
Makefile - variables
MOZ_CHROME_MULTILOCALE A list of locale names to process MOZ_CHROME_FILE_FORMAT both, file, jar, omni, symlink PACKAGER_NO_LIBS Hack to allow one makefile to include another without pulling in libs:: target definitions. STAGEDIST Local staging directory for localization and packaging. Todo: xpcom/
xpinstall variables: https://developer.mozilla.org/en/Adding_XPCOM_components_to_Mozilla_build_system ...
Roll your own browser: An embedding how-to
ld not, use embedding/config. What bits do I need? One of the requirements of building a SDK is the ability to identify and package up required files. Like that isn't totally obvious, nonetheless it has to be done. Here is that effort. I have created a directory under embedding called config. Contained within this directory are a couple of makefiles: basebrowser-unix basebrowser-win The
XPInstall packager follows the same format. However in our case, we only have one named XPI package. After the build is done, you can change directory into mozilla/embedding/config, and do a make. This will produce a directory in DIST named Embed. It 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 ...
Add-on Manager
or getInstallForURL() methods on the AddonManager object. These will pass an AddonInstall instance to the callback, which can then be used to install the add-on: Components.utils.import("resource://gre/modules/AddonManager.jsm"); AddonManager.getInstallForURL("http://www.foo.com/test.xpi", function(aInstall) { // aInstall is an instance of AddonInstall aInstall.install(); }, "application/x-
xpinstall"); The progress of AddonInstalls can be monitored using an InstallListener. A listener can be registered either for a specific install using the addListener() method or for all installs using the addInstallListener() method. Finding updates Add-ons can be checked for updates using the findUpdates() method. It must be passed an UpdateListener to receive information about compatibility informat...
Memory Profiler
Firefox Developer Tools now has a built-in memory profiler. This article details how to use an old profiler specifically designed for Firefox OS devices. Getting the Profiler Add-on The built-in memory profiler's interface is still under construction. It can be obtained by installing the Memory Profiler Add-on. You may need to set the "
xpinstall.signatures.required" pref to false in order to install it, since the XPI is not yet signed. Using the Add-on Open the devtools panel or WebIDE. Select the MemoryProfiler tab. To take a profile you can use the buttons in the profiler panel. Start - start profiling Stop - stop profiling Reset - clear profile data when profiler is stopped Profile data is accumulated and resumed after start. Use reset to start a new recording. Understand...