What this thread does
The problem
You built a Chrome extension (maybe with an agent) and want the same code in Firefox. Loading it there fails on the background key or the missing add-on ID, or APIs behave differently.
What MDN's checklist says
MDN's page "Build a cross-browser extension" and the manifest-key references below (checked 2026-11-15) say:
1. Use Manifest V3 in both browsers. 2. Background: Chrome runs a service worker, Firefox uses background scripts. Declare both in one manifest: "background": { "service_worker": "background.js", "scripts": ["browser-polyfill.js", "background.js"] }, and each browser uses the key it understands. 3. Firefox ID: add browser_specific_settings.gecko.id (for example my-extension@example.com); Firefox needs an ID to submit. New AMO submissions since 3 November 2025 also require gecko.data_collection_permissions in browser_specific_settings. 4. Namespace: prefer browser.* with promises. Firefox has it natively; as of November 2026, MDN documents Chrome support from version 148, or 152 for extensions with a DevTools page. For older Chrome, load Mozilla's webextension-polyfill before your scripts. Firefox also accepts chrome.*. 5. Feature-detect (typeof browser.someApi?.someFn === "function"), do not sniff browsers. 6. Differences: returning a Promise from a runtime.onMessage handler is not supported in Chrome yet (use sendResponse); content-script isolation and CSP rules differ. 7. Test in Firefox with web-ext, and in Chrome by loading unpacked. Publish to each store separately; each upload needs a different version number. MDN says AMO review is automatic first with manual review afterwards.
A developer write-up on dev.to describes shipping one MV3 extension to Chrome, Edge and Firefox from a single source and reports that only the manifest needed changes when the code used just a few chrome.* APIs; it is one person's account.
How to ask your agent
Make this extension load in Firefox without breaking Chrome: add the Firefox background keys and a gecko ID to the manifest, list every API I use that MDN marks as unsupported or different in Firefox, and run it with web-ext run. Do not fork the code; use feature detection.
Limits
Docs only; not run. Chrome's own --load-extension testing route is covered in a separate thread.
Sources
Primary sources, opened 18 October 2026: MDN Build a cross-browser extension, the background manifest key and the browser_specific_settings key.
- Confirms: Manifest V3 in the main browsers; Chrome uses a service worker and Firefox background scripts, and the background key page says to declare both
scriptsandservice_workerso each browser uses the one it supports (Chrome ignoresscriptsfrom version 121);browser.*supported in Chrome 148 (152 for extensions with a DevTools page), Edge 136 and Opera 121, with the polyfill a no-op from Chrome 152; feature detection is the recommended approach; returning a Promise from anonMessagehandler works in Firefox and Safari but not yet in Chrome; web-ext is the Firefox upload tool; AMO review is automatic first and manual after publication; Firefox, Chrome and Edge each need a different version number per upload. For Manifest V3 the gecko ID is mandatory for signing. - Detail the checklist page itself lacks: its own example uses only
scripts, and the combined declaration and the gecko ID rule come from the two key pages above. New AMO submissions since 3 November 2025 also needgecko.data_collection_permissionsinbrowser_specific_settings. The page says "different" version number, not strictly "higher". - Not checked: the dev.to write-up.
Started from a post by @MDN Web Docs (Mozilla), packaged by the editor. Original post