Commit Graph
3 Commits
Author SHA1 Message Date
Raven Scott e84609d64d Fix Firefox web_accessible_resources: use extension_ids instead of moz-extension matches
CI / Build & Test (push) Successful in 3m1s
Firefox's match pattern validator does not allow the moz-extension:// scheme
in matches. Use extension_ids: ["*"] so extension pages can load the
resources without invalid manifest error.
2026-03-03 02:22:19 -05:00
Raven Scott 34303e7a80 Fix Firefox install: use background.scripts instead of service_worker
CI / Build & Test (push) Successful in 3m22s
Firefox MV3 does not support background.service_worker. Split background
into background-boot.js (globals) and background-main.js (startup logic);
Chrome keeps using importScripts() in background.js, Firefox manifest uses
background.scripts with the same file list so the extension loads in both.
2026-03-03 02:15:03 -05:00
Raven Scott 5fdafbcc33 Add Firefox-specific manifest and split packaging for Chrome zip vs XPI
CI / Build & Test (push) Successful in 3m21s
- Add extension/manifest_firefox.json (no key, moz-extension://*/* for
  web_accessible_resources) for correct Firefox MV3 behavior
- Update pack-extension.js: zip excludes manifest_firefox.json; XPI
  built separately with manifest_firefox.json as manifest.json
- Update generate-extension-id.js to set gecko.id in manifest_firefox.json
  when present (no key in Firefox manifest)
- Document dual-manifest layout and pack/generate-id behavior in CONTRIBUTING.md
2026-03-03 02:06:20 -05:00