Cette traduction est incomplète. Aidez à traduire cet article depuis l'anglais.
Modules in this section implement low-level APIs. These modules fall roughly into three categories:
fundamental utilities such as collection. Many add-ons are likely to want to use modules from this category.
privileged modules that expose powerful low-level capabilities such as window/utils and net/xhr. You can use these modules in your add-on if you need to, but should be aware that the cost of privileged access is the need to take more elaborate security precautions. In many cases these modules have simpler, more restricted analogs among the "High-Level APIs" (for example, windows or request).
These modules are still in active development, and we expect to make incompatible changes to them in future releases.
- Create CommonJS module loaders.
- This is a built-in pseudo module of the toolkit loader. It is used to when chrome authority is needed by an Add-on and required an extra security review.
- Constructor for a console instance.
- Functionality similar to Python's traceback module.
- Re-exports three objects from three other modules:
- Provides one of the building blocks for those modules that use content scripts to interact with web content, such as
- Provides functions to modify a page content.
- Used by SDK modules that can load web content and attach content scripts to it.
- Used in the internal implementation of SDK modules which use content scripts to interact with web content.
- Helper functions for inheritance.
- Provides an API for creating namespaces for objects, which effectively may be used for creating fields that are not part of objects public API.
- Implementation of promises to make asynchronous programming easier.
- Enables you to extend the Firefox Developer Tools.
event/coremodule allows the creation of APIs to broadcast and subscribe to events.
- Create objects that broadcast events.
- Creates Firefox frames (i.e. XUL
<iframe>elements) that are not displayed to the user.
- Provides helper functions for working with platform internals like frames and browsers.
- Provides access to the local filesystem with the NodeJS path module API.
- Provides streams for reading and writing bytes.
- Provides access to the local filesystem.
- Provides streams for reading and writing text.
- Functional helper methods.
- Functions for working with type detection.
- The SDK's module loader.
- Enables you to read content from a URI.
- Provides access to
- Create, modify, and retrieve bookmarks.
- Helper functions for working with favicons.
- Access the user's browsing history.
- Implement XPCOM objects, factories, and services.
- Listen to changes to the Preferences system in Firefox.
- Access the Preferences system in Firefox.
- Enables an SDK module loaded into a child process to access web content in the child process and communicate with modules in the main process.
- Enables you to load modules, and privileged parts of your add-on in general, into child processes.
- Modify styles using stylesheet files or CSS rules.
- Helper functions for working with stylesheets.
- An implementation of the node.js
- Access, set and clear environment variables.
- API for working with the application observer service.
- Access to information about Firefox's runtime environment.
- Register callbacks that are called when a module is unloaded.
- Information about the application on which your add-on is running.
- Functions for working with XUL
tabsand the XUL
- Implements the
assertinterface defined in the CommonJS Unit Testing specification version 1.1.
- Test harness setup and execution.
- An HTTP server for the Mozilla platform, which can be used in unit tests.
- Sets up unit tests.
- Helper methods used in the CommonJS Unit Testing suite.
- Add a button to the Firefox user interface.
- Add a toggle button to the Firefox user interface.
- Create UI component IDs.
- Enables you to create sidebars.
- Add a toolbar to the Firefox user interface.
- Helper functions for working with arrays.
- A simple list-like class and utilities for using it.
- Functions to deprecate code.
- Building blocks for composing lists.
- Test strings containing URLs against simple patterns.
- Functions for working with objects.
- Generate or parse UUIDs.
- Functions for working with browser windows.