mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 1410415 - Set a sandboxName on the WebExtensions Content Script sandboxes. r=mixedpuppy
MozReview-Commit-ID: aIcayH9TYd --HG-- extra : rebase_source : 8dc99277bfbfb5b04379640e258a83dc1cb34c42
This commit is contained in:
parent
53838baa80
commit
55892b5f21
@ -425,6 +425,7 @@ class ContentScriptContextChild extends BaseContext {
|
||||
// enables us to create the APIs object in this sandbox object and then
|
||||
// copying it into the iframe's window. See bug 1214658.
|
||||
this.sandbox = Cu.Sandbox(contentWindow, {
|
||||
sandboxName: `Content Script ExtensionPage ${this.extension.id}`,
|
||||
sandboxPrototype: contentWindow,
|
||||
sameZoneAs: contentWindow,
|
||||
wantXrays: false,
|
||||
@ -441,6 +442,7 @@ class ContentScriptContextChild extends BaseContext {
|
||||
|
||||
this.sandbox = Cu.Sandbox(principal, {
|
||||
metadata,
|
||||
sandboxName: `Content Script ${this.extension.id}`,
|
||||
sandboxPrototype: contentWindow,
|
||||
sameZoneAs: contentWindow,
|
||||
wantXrays: true,
|
||||
|
Loading…
Reference in New Issue
Block a user