Implement USER_SCRIPT world
Categories
(WebExtensions :: General, enhancement, P2)
Tracking
(firefox134 fixed)
| Tracking | Status | |
|---|---|---|
| firefox134 | --- | fixed |
People
(Reporter: robwu, Assigned: robwu)
References
(Blocks 1 open bug)
Details
(Whiteboard: [addons-jira])
Attachments
(4 files)
See https://bugzilla.mozilla.org/show_bug.cgi?id=1875475#c3 for details.
User scripts should be able to execute in its own world. There is a default USER_SCRIPT world, but an extension can also specify a different world by worldId (https://github.com/w3c/webextensions/blob/main/proposals/multiple_user_script_worlds.md).
A world that the user script executes in is essentially its own sandbox. The default CSP of that world is configurable, per worldId.
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
This patch adds the USER_SCRIPT value as a supported value in the
internal WebExtensionContentScript constructor.
This patch does not introduce a distinct USER_SCRIPT sandbox yet; that
will be done in the next patch.
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
| Assignee | ||
Comment 4•1 year ago
|
||
Comment 6•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f6472589c502
https://hg.mozilla.org/mozilla-central/rev/039a1db1d7bf
https://hg.mozilla.org/mozilla-central/rev/be2e3819905d
Description
•