Convert Google Chrome Extension to Firefox or Safari extension

user1365732 picture user1365732 · Jul 31, 2013 · Viewed 27.2k times · Source

Is it possible to convert a Google Chrome extension to a Firefox or Safari browser extension?

Answer

Abhishek picture Abhishek · Aug 1, 2013

Both Chrome and Firefox add-ons are essentially based on a JavaScript core, but Firefox is, by design, much more extensible. The Gecko engine and XUL (Mozilla's XML User Interface Language) allow for a much larger degree of freedom in what you can do with your extension, while Chrome (and WebKit) try to sandbox the working of its 'apps'.

So, yes, a Chrome extension can almost definitely be made into a Firefox extension, provided Firefox provides an API for whatever it is that you are trying to do. Just replace the Chrome's DevTools SDK-specific content with Firefox's Jetpack SDK-specific content (such as system calls or whatever else it is that you do within your extension).

The opposite, on the other hand, is not always true. Depending on the functionality in a Firefox extension, it cannot always be converted to work in Chrome.