Mozilla announced some big developer news for Firefox on Friday with the introduction of the WebExtensions API, which is compatible with Chrome and Opera so developers can create extensions that work across multiple browsers.
Mozilla says it hears from developers that they want add-on development to be more like web development in that the same code should run on multiple browsers based on standards with “comprehensive documentation”. Mozilla’s Kev Needham writes:
To this end, we are implementing a new, Blink-compatible API in Firefox called WebExtensions. Extension code written for Chrome, Opera, or, possibly in the future, Microsoft Edge will run in Firefox with few changes as a WebExtension. This modern and JavaScript-centric API has a number of advantages, including supporting multi-process browsers by default and mitigating the risk of misbehaving add-ons and malware.
WebExtensions will behave like other Firefox add-ons; they will be signed by Mozilla, and discoverable through addons.mozilla.org (AMO) or through the developer’s website. With this API, extension developers should be able to make the same extension available on Firefox and Chrome with a minimal number of changes to repackage for each platform.
WebExtensions is available in preview release for Firefox 42, which is on Developer Edition. You can find info about testing the API here.
In addition to this, Mozilla is introducing what it calls a “safer and faster” multi-process version of Firefox with Electrolysis. It is also requiring all extensions to be validated and signed by Mozilla starting in Firefox 41.
They’ll be deprecating XPCOM- and XUL-based add-ons. More on all of this here.
Image via Mozilla