-
Notifications
You must be signed in to change notification settings - Fork 68
world
in content_scripts declaration
#485
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
Comments
Fixes #1529. MV3 only allows the values "self", "wasm-unsafe-eval", and "wasm-unsafe-eval" for an extension's `script-src` CSP setting. As a result, we can no longer use inline script to update the main world `window` global in order to enable Google Docs' annotated canvas mode. Instead we use the new `world: 'MAIN'` setting and in Firefox, which doesn't yet support that setting, we use Firefox's X-ray vision object unwrapping. Safari doesn't support Google Docs' annotated canvas due to: https://bugs.webkit.org/show_bug.cgi?id=232781 However, Safari have indicated support for implementing `world: 'MAIN'` in: w3c/webextensions#485
Fixes #1529. MV3 only allows the values "self", "wasm-unsafe-eval", and "wasm-unsafe-eval" for an extension's `script-src` CSP setting. As a result, we can no longer use inline script to update the main world `window` global in order to enable Google Docs' annotated canvas mode. Instead we use the new `world: 'MAIN'` setting and in Firefox, which doesn't yet support that setting, we use Firefox's X-ray vision object unwrapping. Safari doesn't support Google Docs' annotated canvas due to: https://bugs.webkit.org/show_bug.cgi?id=232781 However, Safari have indicated support for implementing `world: 'MAIN'` in: w3c/webextensions#485
Fixes birchill#1529. MV3 only allows the values "self", "wasm-unsafe-eval", and "wasm-unsafe-eval" for an extension's `script-src` CSP setting. As a result, we can no longer use inline script to update the main world `window` global in order to enable Google Docs' annotated canvas mode. Instead we use the new `world: 'MAIN'` setting and in Firefox, which doesn't yet support that setting, we use Firefox's X-ray vision object unwrapping. Safari doesn't support Google Docs' annotated canvas due to: https://bugs.webkit.org/show_bug.cgi?id=232781 However, Safari have indicated support for implementing `world: 'MAIN'` in: w3c/webextensions#485
Support for |
Apple added support for world in the manifest in Safari 18 (Released 2024-09-16) and in scripting.RegisteredContentScript in Considering all browsers now have implemented |
Since Chrome 111, Chrome supports a new key
world
incontent_scripts
in manifest, which value is "ISOLATED"(default) or "MAIN". Thus developers can declare content scripts to run in the main world directly.In the meeting Nov 9, 2023, we also discussed this issue when we were discussing #482 . At the moment, Firefox and Safari support (or will support)
world
inbrowser.scripting
API, and they are supportive of theworld
key in manifest.The text was updated successfully, but these errors were encountered: