Skip to content

[Firefox] Installation fails due to "background.service_worker" in manifest.json #70

@k0lo86

Description

@k0lo86

3. What OS (Operating System) are you using?

Linux

4. Upload logs.txt

There was an error during the temporary add-on installation.
Error details

background.service_worker is currently disabled. Add background.scripts.

5. Message

Hi,

I am trying to load this extension as a temporary add-on in Firefox, but the installation fails with the following error:

Error details: background.service_worker is currently disabled. Add background.scripts.

Reason:
It seems the manifest.json is configured strictly for Chrome's Manifest V3 implementation. While Firefox supports MV3, it currently requires background scripts to be defined using background.scripts rather than background.service_worker.

Suggested Fix:
In manifest.json, the background section needs to be updated to support Firefox.

Current (Chrome):

"background": {
  "service_worker": "background.js"
}

Proposed Change (Firefox Compatible):

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

Could you please update the manifest or provide a Firefox-compatible build?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions