Manifest V3 Migration: How It Affects Extensions
In this article
Google's switch to Manifest V3 (MV3) is the biggest change to Chrome extensions in over a decade. It affects how extensions are built, what they can do, and how they handle privacy and performance. This guide explains exactly what MV3 changes, what it means for extension users and developers, and how to check if your favorite extensions are affected.
What You'll Need
- A Chrome browser (or a Chromium-based browser like Edge, Brave, or Opera)
- Access to the Chrome Web Store (to check extension details)
- For developers: a code editor and a basic understanding of JavaScript
Step-by-Step
- Understand what Manifest V3 actually changes. The core shift is from background pages (which run constantly) to service workers (which run only when needed). This saves memory and improves performance. Additionally, MV3 replaces the blocking web request API with the declarative net request API, which limits how extensions can intercept and modify network traffic. Finally, MV3 restricts remotely hosted code—all code must be included in the extension package itself.
- Check if an extension is still on Manifest V2. Open Chrome, go to
chrome://extensions, and look at each extension's details. If it doesn't explicitly say "Manifest V3", it's likely still on V2. Chrome will show a warning banner for V2 extensions, and they will be disabled automatically once V2 support is fully removed. - See what happens to V2 extensions in Chrome. Google has phased out V2 support. As of 2024, most V2 extensions are already disabled in stable Chrome. If you see a disabled extension, click "Remove" or look for an updated version in the Chrome Web Store. Some extensions may have a V3 version available but not automatically updated.
- For developers: migrate your extension to MV3. Start by updating your
manifest.jsonfile. Change themanifest_versionto 3. Remove thebackgroundpage and replace it with aservice_worker. For example, change"background": { "scripts": ["background.js"] }to"background": { "service_worker": "background.js" }. - Adapt your background logic to service workers. Service workers are event-driven and can be terminated at any time. You must move any long-running state to
chrome.storageor IndexedDB. Use event listeners likechrome.runtime.onInstalledandchrome.runtime.onMessageto trigger actions, and avoid usingwindowordocumentobjects in the service worker. - Replace blocking web requests with declarative net request. If your extension used
chrome.webRequestto block or modify requests, you need to switch tochrome.declarativeNetRequest. This requires you to define rules in a JSON file and declare them in your manifest. For example, to block a URL, you'd add a rule with aurlFilterand anactionofblock. This API is less flexible but more privacy-friendly. - Remove remote code. MV3 disallows loading JavaScript from remote servers. All scripts must be bundled with the extension. If you used a CDN for libraries, download them and include them locally. Also, avoid using
eval()ornew Function()as they are blocked. - Update permissions and host permissions. In MV3, host permissions are separated from other permissions. You must declare them in a
host_permissionsfield. For example,"host_permissions": ["https://*/*"]. Also, some permissions liketabsare now optional in certain contexts. - Test your extension thoroughly. Load your unpacked extension via
chrome://extensions(enable Developer mode). Test all features, especially those that depend on background processing. Use the service worker console (click on "service worker" link in the extension details) to debug. - Publish or update on the Chrome Web Store. Once your extension works, zip the folder and upload it to the Chrome Web Store. If you're updating an existing extension, the store will prompt you to submit a new version. Google now requires MV3 for all new submissions and updates.
Common Mistakes
- Assuming all extensions will break. Many simple extensions (like a dark mode toggle) work fine with minimal changes. Only those relying on background pages or blocking requests are heavily affected.
- Forgetting that service workers are ephemeral. If you store state in global variables, it will be lost when the service worker stops. Always use
chrome.storagefor persistent data. - Using
chrome.webRequestwithout understanding the new limits. The blocking version is gone; you can only observe requests, not modify them. For modification, you must use declarative net request. - Not updating the manifest version. If you forget to change
manifest_versionto 3, Chrome will treat it as V2 and disable it. - Keeping remote code. Even if it works in development, the Chrome Web Store will reject it during review.
Tips
- Use the Chrome Extensions documentation as your primary reference—it's updated regularly and includes migration guides.
- Test with a fresh profile to avoid interference from other extensions.
- For ad blockers, note that MV3 limits rule sets to 30,000 rules per extension (with a global cap). Some ad blockers have adapted by using multiple rule sets or a simpler approach.
- If you're a user, check the Chrome Web Store for updates. If an extension is no longer maintained, look for alternatives that are MV3-compatible.
- Use the
chrome.runtime.onInstalledevent to initialize your service worker's state when it first runs.
Troubleshooting
- Extension is disabled with "This extension is no longer supported" – This means it's still on V2. Go to the Chrome Web Store and check if the developer has published a V3 version. If not, remove it and find an alternative.
- Service worker doesn't start – Make sure you have an event listener (like
chrome.runtime.onMessage) registered at the top level of the service worker. Also, check the console for errors. - Declarative net request rules not working – Verify the rule syntax and that you've declared the
declarativeNetRequestpermission. Usechrome.declarativeNetRequest.getDynamicRules()to debug. - Extension loads but features don't work – Open the service worker console (click on "service worker" in the extension details) and look for errors. Also, check that you've migrated all API calls correctly.
- Chrome Web Store rejects your submission – Read the rejection reason. Common issues include remote code, missing privacy policy, or using deprecated APIs. Fix and resubmit.
Frequently Asked Questions
Will all my extensions stop working?
Not immediately, but eventually. Google has already disabled most V2 extensions in stable Chrome. Some extensions may have been updated to V3 without you noticing, so check your extension list.
Can I still use Manifest V2 extensions?
In regular Chrome, no. V2 support was removed in 2024. However, some enterprise policies allow V2 temporarily, but that's not a long-term solution.
Is Manifest V3 more secure?
Yes, primarily because it restricts remote code and limits the power of extensions to modify network requests. This reduces the risk of malicious extensions and improves privacy.
Do all extensions need to be rewritten?
No. Simple extensions that don't use background pages or blocking web requests may only need a manifest version bump. Others may require significant changes.
What happens to ad blockers?
Ad blockers like uBlock Origin have adapted to MV3, but they may have fewer features. The declarative net request API is less flexible than the old blocking API, so some filtering options are limited.
Can I force an extension to run in V2 mode?
No, Chrome doesn't allow that. You could use a Chromium-based browser that still supports V2 (like some older versions of Edge), but that's not recommended for security reasons.