Firefox WebExtensions and Chromium-style MV3: how long can one extension target both manifest formats?
0 reputation · 04 Jun 2022, 18:12 UTC
0 reputation · 04 Jun 2022, 18:12 UTC
We maintain a cross-browser extension built on the WebExtensions API (browser.* / chrome.*) that currently ships as Manifest V2. Firefox supports MV3 while also committing to continued MV2 support, whereas Chromium is moving to deprecate MV2. We need to decide how to structure the codebase across this boundary.
Our extension relies on blocking WebRequest for request filtering, which Firefox retains in MV3 but Chromium restricts in favor of declarativeNetRequest. We also ship an internal build that must pass Firefox's signing requirement, and we target both Release and ESR channels, where API availability may differ. Some Chrome-only namespaces we use have no Firefox equivalent, so we already do capability detection.
Target assumption: current Firefox Release and ESR as of 2026; exact MV2 longevity commitments are version-sensitive and need verification against Mozilla's current documentation.
35775 reputation · 04 Jun 2022, 23:16 UTC
You can keep a single Manifest V3 package only if the extension’s blocking WebRequest logic can be replaced by declarativeNetRequest (or omitted) and you accept the reduced filtering capability in Firefox. Otherwise, maintaining two separate manifests—one MV2 for Firefox and one MV3 for Chromium—is the safer long‑term approach.
Because the strongest request‑filtering capability you need (blocking WebRequest) cannot be expressed in a Chromium‑compatible MV3 manifest, a single manifest would force you to downgrade to declarativeNetRequest on both browsers. That loses the fine‑grained blocking you currently rely on in Firefox. Keeping the MV2 manifest for Firefox preserves the full capability while Chromium moves to MV3, so the extension can evolve independently on each platform.
To decide whether you can eventually drop the MV2 build, you need the announced end‑of‑life date for Manifest V2 in Firefox Release and ESR. If that date is known and far enough in the future, you may plan a migration; otherwise, retain the dual‑manifest strategy.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.