Firefox: declarativeNetRequest required (cannot be optional there) #10

Merged
akib merged 3 commits from akib/firefox-dnr-required into main 2026-11-11 08:57:06 +00:00 AGit
Owner

Firefox rejects declarativeNetRequest as an optional permission (web-ext lint: MANIFEST_OPTIONAL_PERMISSIONS), so the Route block's block/redirect rules could never be granted in the Firefox store build.

  • Firefox build: declarativeNetRequest moves to permissions (install prompt "Block content on any page"); Chrome/Safari unchanged (optional).
  • Reason written in wxt.config.ts, docs/PRIVACY.md, docs/store/firefox.md, wiki Installing / Build-and-Release / Capabilities, CHANGELOG, M6-NOTES (decision closed).
  • Why it is acceptable: used only while a Route block runs, session rules scoped to the workflow's tab and removed at run end, no page content access; redirects still need granted site access.

Verified: npm run check (1141 tests), build:firefox manifest, lint:firefox 0 errors / 6 warnings, Chrome manifest unchanged.

🤖 Generated with Claude Code

Firefox rejects `declarativeNetRequest` as an optional permission (`web-ext lint`: MANIFEST_OPTIONAL_PERMISSIONS), so the Route block's block/redirect rules could never be granted in the Firefox store build. - Firefox build: `declarativeNetRequest` moves to `permissions` (install prompt "Block content on any page"); Chrome/Safari unchanged (optional). - Reason written in `wxt.config.ts`, `docs/PRIVACY.md`, `docs/store/firefox.md`, wiki Installing / Build-and-Release / Capabilities, CHANGELOG, M6-NOTES (decision closed). - Why it is acceptable: used only while a Route block runs, session rules scoped to the workflow's tab and removed at run end, no page content access; redirects still need granted site access. Verified: `npm run check` (1141 tests), `build:firefox` manifest, `lint:firefox` 0 errors / 6 warnings, Chrome manifest unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Firefox rejects declarativeNetRequest in optional_permissions, so the Route
block's block/redirect rules could never be granted in the Firefox store build.
The Firefox build now declares it in permissions ("Block content on any page"
at install); Chrome keeps it optional. Reason documented in wxt.config.ts,
PRIVACY.md, store/firefox.md and the wiki; lint:firefox now 0 errors, 6 warnings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
akib merged commit bef4cad879 into main 2026-11-11 08:57:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
akib/blockflow!10
No description provided.