zalmoxisus / crossbuilder

Building web, Electron, Cordova and Chrome apps, and cross-browser extensions with React, Redux and Webpack. "Write once, deploy everywhere" concept in practice.
MIT License
484 stars 50 forks source link

Firefox extensions #12

Open zalmoxisus opened 8 years ago

zalmoxisus commented 8 years ago

For building Firefox extensions we use WebExtensions's standards, which is still supported only in Firefox Nightly.

To completely support it, we need:

jhen0409 commented 8 years ago

https://support.mozilla.org/en-US/kb/add-on-signing-in-firefox

The Firefox cannot use unsigned extension now, we should recommend use Firefox Developer Edition and disable xpinstall.signatures.required.

Also, the Firefox Developer Edition which can load local directories.

zalmoxisus commented 8 years ago

@jhen0409, Yes, AFAIK, Firefox doesn't support webextensions at all yet, and we need whether Nightly or Developer Edition.

About signing it is indicated in the load section. I know the readme needs rework :)

The original plan of Mozilla was to migrate to WebExtensions by December last year, but it is taking longer, and for now it is difficult to implement something as the API is too limited.

groovecoder commented 8 years ago

Just FYI here, Firefox has implemented a large number of web extensions API since February ...

http://arewewebextensionsyet.com/

zalmoxisus commented 8 years ago

@groovecoder, thanks for the info. Yes, the API is improving. We did support firefox webextension's api in 'v0.3.1'. Specifically for the current boilerplate we also need chrome.runtime.getBackgroundPage to be supported. Strange that according to that page it is already supported, but according the the issue it's not. I'll look into it.

groovecoder commented 8 years ago

I used it recently so I'm fairly sure it's supported now. That bug may still be open because of some other chrome.runetime method/property that isn't done yet? 😕