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:
Luca Greco 2017-10-20 15:35:29 +02:00
parent 53838baa80
commit 55892b5f21

View File

@ -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,