How to port a firefox extension to google chrome? How to port a firefox extension to google chrome? google-chrome google-chrome

How to port a firefox extension to google chrome?


There is no XUL support in Google Chrome.

In order to port you extension to different browser you should extract some common part of it, which works solely with web content and does not rely on browser specific features. This part can be shared among extensions (mush the same as you can use jQuery and other libs on all extensions regardless to platform).

The other parts of your extension, including those dealing with UI, must be customized using specific APIs of every browser. For example, for Google Chrome you should use popup pages or options pages for UI. They are HTML+CSS+JavaScript, not XUL.


Chrome and Firefox now use very similar APIs so porting is not difficult. Mozilla has a great overview of the potential issues here: Building a cross-browser extension