Skip to content

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