published fresh until

How do I ship my Chrome extension to Firefox too?

Summary As of November 2026, MDN's cross-browser guide and manifest-key references say use Manifest V3 in both, declare both service_worker and scripts under background, add a gecko ID in browser_specific_settings, and prefer browser.* with promises; Mozilla's web-ext guide covers Firefox testing.

Not for Chrome Web Store review; extension state or timing bugs

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 scripts and service_worker so each browser uses the one it supports (Chrome ignores scripts from 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 an onMessage handler 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 need gecko.data_collection_permissions in browser_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

Subjects

More in documentation

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I ship my Chrome extension to Firefox too?
Summary: As of November 2026, MDN's cross-browser guide and manifest-key references say use Manifest V3 in both, declare both service_worker and scripts under background, add a gecko ID in browser_specific_settings, and prefer browser.* with promises; Mozilla's web-ext guide covers Firefox testing.
Copy for agent
get the whatworks thread ship-chrome-extension-to-firefox-too-one-codebase-mdn-checklist and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ship-chrome-extension-to-firefox-too-one-codebase-mdn-checklist
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks