Firefox differentiators

Firefox is a great place to begin your browser extension development. To start, you get the highest compliance with the proposed browser extension API including use of the browser.* namespace and promises for handling asynchronous events. Then, there is a highly supportive community of extension developers, ready to assist you.

Firefox also offers some unique features that you can use to build more secure, easy to use, and more visually appealing extensions. Just take a look at what's available:

Help users separate their browser activities with Contextual Identities a.k.a. Containers. Give groups of tabs their own local browser storage: cookie store and local data in localStorage and indexedDB. This keeps details such as site preferences, signed in sessions, and ad tracking data private to the tabs.

Illustration of the containers menu

Record and display additional or complementary information about a web page with the Sidebar UI component, a panel that sits alongside web pages.

Illustration of the annotation example sidebar sitting alongside a webpage

Better integrate your extension with the browser using the ability to pick up the browser style in page and browser actions as well as the sidebar UI. Define, in the manifest.json file, the URLs where a page action is shown or hidden, and choose where to place the browser action icon.

Illustration of a browser action icon placed in the menu panel

Help users locate content of interest in a web page, with the ability to find and highlight text in a webpage.

Illustration of find highlighting text in page content

Perform searches directly from your extension, with features to get details of search engines and perform a search.

Wikipedia page showing the results of the search for "extension"

Add an extra dimension to your themes by updating the browser theme at runtime. With this feature you can alternate themes by time of day, apply a different theme when users browse your website, reflect user actions in your extension, and more.

Illustration suggesting the theme is changing by time

Provide users with control over their browsing experience from your extension with the ability to modify (some) global browser settings.

Example of a Firefox setting showing that it is being controlled by an extension

Enable users to reliably add your extension's features to new pages and sites, with the ability to register and unregister content scripts at runtime.

Illustration of example code used to inject a  content script on demand

Take advantage of external services to handle protocols or content types by registering protocol handlers in the manifest.json.

Illustration of code setting a protocol handler

Perform additional web tasks such as resolving domain names and proxying web requests.

Example of Firefox proxy settings

Add advanced security capabilities using PKCS #11 security modules to source keys and certificates.

Illustration of the certificate and key

Icons from icon8