Implement userScripts API in MV3
Categories
(WebExtensions :: General, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: robwu, Unassigned)
References
(Depends on 2 open bugs)
Details
(Whiteboard: [wecg][addons-jira])
This is about implementing the userScripts API, as designed in the WECG at https://github.com/w3c/webextensions/issues/279 .
Not to be confused with the current userScripts API in Firefox that is tied to the user_scripts key from bug 1437098. This older API called "userScripts" is MV2-only because its design is incompatible with non-persistent background pages. Additional notes about differences: https://github.com/mdn/browser-compat-data/issues/21922#issuecomment-1892148953
Updated•3 months ago
|
Reporter | ||
Comment 1•3 months ago
|
||
Currently, the way that user script managers would use the API to run scripts in the main world is to use the userScripts API to have a world without scripts being restricted by the CSP. To enable that, we need to support the ability to exempt script nodes inserted by the "user script" world from the CSP (bug 1446231).
Reporter | ||
Comment 2•3 months ago
|
||
The capability to directly run scripts in the MAIN world is part of bug 1736575.
Description
•