Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved Firefox to web extensions #49

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

twolfson
Copy link

@twolfson twolfson commented Nov 16, 2017

As reported in #47, Firefox 57 no longer supports the old extension format (i.e. .xul and friends). As a result, we need to move to web extensions which are 1:1 with Chrome extensions. In this PR:

Notes:

This was relatively straightforward; mostly replacing chrome with browser makes it work. One sticking point was the deprecated tabs.onSelectionChanged API but that was easily resolved with its counterpart tabs.onActivated:

https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/onSelectionChanged

Relevant links:

@twolfson
Copy link
Author

Proof of functionality can be found here -- I submitted it to addons.mozilla.org via the scripts in this PR:

https://addons.mozilla.org/en-US/firefox/addon/livereload-web-extension/

@GCorbel
Copy link

GCorbel commented Dec 5, 2017

It works with Firefox quantum. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support WebExtensions of Firefox extension
2 participants