question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please consider supporting Firefox's WebExtensions

See original GitHub issue

Firefox is currently implementing web extensions - these are pretty much the same as the chrome.*, although there are a few differences.

Firefox has created the browser.* namespace which is virtually the same as the chrome.* space. There are two differences:

  • browser.* will gain Firefox specific extensions.
  • browser.* uses promises rather the callbacks.

More information:

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
acvetkovcommented, Sep 26, 2016

@Standard8 hi.

Why you can not use sinon-chrome for FF web-extensions testing?

global.browser = require('sinon-chrome');

before(function() {
  browser.tabs.query.yields([]);
  // or
  browser.tabs.query.returns(Promise.resolve([]));
});
0reactions
acvetkovcommented, Oct 12, 2016

sinon-chrome has supported webextensions api since 2.1.0 version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebExtensions/FAQ - MozillaWiki
2.3 Are WebExtension API compatible with multiprocess Firefox? ... Firefox supports both namespaces in order to enable a larger population ...
Read more >
WebExtensions in Firefox 57 | Mozilla Add-ons Community Blog
To broaden your mind please consider the following: – Even if Mozilla considered WebExtensions to be “stable” in FF 48 doesn't mean ...
Read more >
WebExtensions - MozillaWiki
Extensions developed with WebExtensions APIs are compatible with Electrolysis. They run in the main Firefox process (except for content scripts, ...
Read more >
1344561 - consider supporting moz-extension:// service workers
It seems that registering a ServiceWorker from inside a WebExtension is not allowed (i.e when called from a moz-extension:// javascript resource).
Read more >
Manifest v3 in Firefox: Recap & Next Steps - The Mozilla Blog
In our previous update, we announced that we would be supporting MV3 ... Manifest V3 is the next iteration of WebExtensions, and offers...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found