-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add support/migrate to MV3 #28
Comments
What's the state for the Manifest V3 in Firefox? I don't plan to do such migration unless it's supported by Firefox (I couldn't find their current state), also, this should be implemented in the plugin (https://github.com/AlexITC/scala-js-chrome) first. Feel free to raise a PR. |
the previous link would bring the user to MV3 docs which aren't applicable to this MV2 template. See AlexITC#28
the previous link would bring the user to MV3 docs which aren't applicable to this MV2 template. See #28
Little known fact: Safari has also added support for Manifest v2 extensions. Regarding support for MV3: A quick search brought up this 12 months old forum post stating:
|
Apparently, this needs to get done soon (see), first thing is to get it done in github.com/AlexITC/scala-js-chrome |
Indeed. In particular:
|
Indeed, that makes the template/plugin not very useful because people won't be able to publish to the chrome web store. I'm yet to find what exactly needs to change, hoping that it isn't much work. I'll keep the ticket opened to post updates. |
I gingerly prodded at the generated manifest to see how quickly it falls apart when changing Where
These would need to be fused into one, e.g., by a) merging them all into To be clear, a simple concatentation won't suffice, because event handling changed.
The docs also elaborate on how these two issues can be addressed. |
@phdoerfler thanks for sharing the issues you have found, the migration to service workers is the major change I have found. As you point out, we can trick the build to produce a single js. I have been waiting to see how Metamask handles this migration. |
If anyone wants to upgrade soon, for sure, we should rely on the public docs + trial and error, in my personal case, I do not have this as a blocker which is why I have been waiting until Metamask releases the support for MV3, even if they do not share their analysis, the code should get in their repo some day.
I do not remember much about this but I understand that the service worker api for websites has slightly different apis available for extensions (which could differ from what background context has in MV2), which could explain problems like the one you are facing. A quick search makes me believe that we could import many js files for a service worker: |
Any news on this? |
Unfortunately, I haven't had a chance to look into this, right now I'm not actively working on any browser extension. |
Manifest V3 for Chrome Extensions was introduced recently.
Currently the code only supports MV2.
The text was updated successfully, but these errors were encountered: