Skip to content

fix(firefox): background.scripts event page, not service_worker (#64)#65

Merged
paperhurts merged 1 commit into
mainfrom
fix/firefox-background-scripts
Jun 20, 2026
Merged

fix(firefox): background.scripts event page, not service_worker (#64)#65
paperhurts merged 1 commit into
mainfrom
fix/firefox-background-scripts

Conversation

@paperhurts

Copy link
Copy Markdown
Owner

Closes #64. Firefox refused to install the add-on (background.service_worker is currently disabled. Add background.scripts.) — it doesn't support MV3 service-worker backgrounds. Switched the Firefox manifest to an event-page background (scripts + type: module) running the same background.ts; Chrome keeps service_worker. Corrected the docs that wrongly claimed Firefox SW parity.

Still needs a manual Firefox smoke test (load → set up → save → check repo + background console).

🤖 Generated with Claude Code

)

Firefox doesn't support background.service_worker for MV3 (even 121+) — it
rejected install with 'background.service_worker is currently disabled. Add
background.scripts.' so the Firefox background never ran. Switch the Firefox
manifest to an event-page background (`scripts: [background.js]`, `type:
module`); Chrome keeps service_worker in its own manifest. Same background.ts
bundle.

docs: correct the CLAUDE.md 'MV3 SW parity' claim and the firefox README
background label.

Closes #64

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@paperhurts paperhurts merged commit e27f9dd into main Jun 20, 2026
1 check passed
@paperhurts paperhurts deleted the fix/firefox-background-scripts branch June 20, 2026 14:54
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.

Firefox add-on won't install: background.service_worker not supported (use background.scripts)

1 participant