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. {{fx_minversion_inline(34)}}
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 process
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
.