Nos bénévoles n'ont pas encore traduit cet article en Français. Aidez-nous à réaliser cette tâche !
There are a couple of differences between desktop Firefox and Firefox for Android that are particularly relevant to add-on developers:
- there is no visible XUL in the user interface, so you can't use XUL overlays to create your add-on's UI
- the
gBrowser
object does not exist, so you can't usetabbrowser
to interact with browser tabs
Instead, Firefox for Android provides its own APIs:
NativeWindow
enables you to manipulate parts of the native Android UIBrowserApp
enables you to interact with browser tabs- PageActions.jsm allows you to add buttons to the urlbar.
Prompt.jsm
allows you to easily show native prompts, dialogs, menus, and listsNotifications.jsm
allows you to handle system notifcationsHome.jsm
allows you to customize the home pageHomeProvider.jsm
allows you to store data to show on the home pageAccounts.jsm
allows you to start the Firefox Account set-up processJavaAddonManager.jsm
allows you to dynamically load and interface with compiled Java code. Firefox 42Snackbars.jsm
allows you to show Snackbar notification. Firefox 44
In these pages we've documented the main functions and properties exposed by these objects. To see all the details, refer to the code at browser.js
.
We also have some modules that don't ship with Firefox for Android but can be used in addons:
-
Sound.jsm
lets you play sounds in the browser simply
Étiquettes et contributeurs liés au document
Dernière mise à jour par :
wbamberg,