Manifest v3 background scripts/service worker on Firefox

Just faced the same problem:

  • Chrome is not happy with background.scripts and insists on using background.service_worker
  • Firefox doesn’t support background.service_worker and wants background.scripts

Manifest v3 is developed by Google, so looks like Firefox team haven’t fully implemented it yet. Firefox 109 is the first version to “support” manifest v3 (released on January 17).

I was able to quickly find these tickets 1 and 2 on bugzilla. Doesn’t look like it will be fixed any time soon!

What makes matters even worse, Chrome doesn’t accept new extensions to its store with manifest v2 any more! This could be the reason why Firefox team decided to enable Manifest v3 extensions even without service workers support.

web-ext is also developed by Mozilla, just having something like this:

"background": {
    "scripts": ["background.js"]
},

should allow you (no cross-browser compatibility!) to publish it to Firefox marketplace and use web-ext tool (it also has very verbose inbuilt lint subcommand ./node_modules/.bin/web-ext lint)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)