-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox support discussion (MV2, MV3) #78
Comments
The one that makes the most sense so far is a solution originally posted by @Stvad in #75 (comment)
|
Alternatively, the extension can be changed to use Manifest v2 after the build runs, originally posted in #55 (comment)
|
Would have liked to use this repo but the lack of Firefox support is a blocker for me. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
@fregante I believe that since January 17, 2023 (FF 109) V3 Manifests are supported, right?
Do you think it makes sense to reintroduce the polyfill? #88 |
These issues mean that there's still no way to build a cross-browser extension with a single manifest.json.
The polyfill is no longer needed because Chrome also has promisified APIs in MV3. You can just use |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
By the way, Firefox now accepts MV3 extensions, with the exception that background workers are not supported (background scripts are). I think that Parcel 2.9 supports setting both background.worker and background.script in the manifest, but Chrome will reject such manifest. In short, you can now build cross-browser MV3 extensions:
|
This comment was marked as resolved.
This comment was marked as resolved.
Maybe we're close here. It seems that Chrome 121 will finally allow This means that it will finally be possible restore Firefox support by this template:
Tue, Jan 23, 2024 |
I note that https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite/ (which is another extension template) takes a slightly different approach of specifying the manifest in Is it worth considering a similar approach here, or are we close enough to being able to craft a single |
Given that Chrome 121 is out, this should already work out of the box, just specify background.scripts and make sure you're using the latest parcel version |
We're just blocked by Parcel at the moment: I forgot I already tried it: |
If anyone is already using the template and is looking to add support for Firefox, use the latest version of Parcel and restore the npm i -D @parcel/config-webextension@canary parcel@canary See the PR #97 |
Firefox doesn't yet support
Manifest v3background workers (update March 2023)_ but this build works exclusively on that. You can use this issue to discuss alternative methods of supporting both Firefox and Chrome.Refer to these links for official MV3 support in Firefox:
latest update: https://blog.mozilla.org/addons/2022/05/18/manifest-v3-in-firefox-recap-next-steps/
provisional migration guide: https://extensionworkshop.com/documentation/develop/manifest-v3-migration-guide/
tracking bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1578284
complete roadmap: https://bugzilla.mozilla.org/showdependencytree.cgi?id=1578284&hide_resolved=1
The text was updated successfully, but these errors were encountered: