Since Firefox 57, the only way to create a Firefox sidebar is to create a WebExtension with the sidebar_action
manifest.json key.
Web publishers can offer visitors a Firefox sidebar to encourage their engagement. There are two ways to create a sidebar for Firefox users: the Social API and an extension. You can choose either depending on your needs and resources.
An extension is a kind of add-ons that adds new functionalities to Firefox. There is a wide range of extensions available, and some of them provide a sidebar. Such kind of sidebar can be a simple Web panel or a full-featured extension that is completely integrated with the browser. There are some ways to create an extension:
sidebar_action
API available since Firefox 54. Obsolete since Gecko 57 (Firefox 57 / Thunderbird 57 / SeaMonkey 2.54)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
This content covers features introduced in Firefox 17.
The Social API is a new API from Mozilla that allows social media services to integrate their content into the browser window. At this time, Facebook, Cliqz, mixi and MSN are partnering with Mozilla as social providers. Now the API is available to all Web developers so it's worth checking out if you are offering a social service.
window.sidebar
API Obsolete since Gecko 23 (Firefox 23 / Thunderbird 23 / SeaMonkey 2.20)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
As of Firefox 23, the addPanel
and addPersistentPanel
functions have been removed from the deprecated, Netscape-derived window.sidebar
object. That means the ability to add a traditional sidebar panel is no longer available from Web content. The new Social API or an extension can be used instead as described above.