mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
moebius#328: Set a sandboxName on the WebExtensions Content Script sandboxes
https://github.com/MoonchildProductions/moebius/pull/328
This commit is contained in:
parent
7f09dee539
commit
3d237024d5
1 changed files with 2 additions and 0 deletions
|
|
@ -344,6 +344,7 @@ class ContentScriptContextChild extends BaseContext {
|
|||
// because it enables us to create the APIs object in this sandbox object and then copying it
|
||||
// into the iframe's window, see Bug 1214658 for rationale)
|
||||
this.sandbox = Cu.Sandbox(contentWindow, {
|
||||
sandboxName: `Web-Accessible Extension Page ${this.extension.id}`,
|
||||
sandboxPrototype: contentWindow,
|
||||
sameZoneAs: contentWindow,
|
||||
wantXrays: false,
|
||||
|
|
@ -360,6 +361,7 @@ class ContentScriptContextChild extends BaseContext {
|
|||
|
||||
this.sandbox = Cu.Sandbox(principal, {
|
||||
metadata,
|
||||
sandboxName: `Content Script ${this.extension.id}`,
|
||||
sandboxPrototype: contentWindow,
|
||||
sameZoneAs: contentWindow,
|
||||
wantXrays: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue