diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-23 08:52:58 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-23 08:52:58 +0200 |
commit | ace6085feab5d41ad16c95cd000b2aff118b5b5f (patch) | |
tree | c8d9c136159cb5c2735d857ca7cac236f7d6612c /toolkit | |
parent | c30ebdac27c93b57e368c69e9c13055a17229992 (diff) | |
download | UXP-ace6085feab5d41ad16c95cd000b2aff118b5b5f.tar UXP-ace6085feab5d41ad16c95cd000b2aff118b5b5f.tar.gz UXP-ace6085feab5d41ad16c95cd000b2aff118b5b5f.tar.lz UXP-ace6085feab5d41ad16c95cd000b2aff118b5b5f.tar.xz UXP-ace6085feab5d41ad16c95cd000b2aff118b5b5f.zip |
moebius#328: Set a sandboxName on the WebExtensions Content Script sandboxes
https://github.com/MoonchildProductions/moebius/pull/328
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/components/webextensions/ExtensionContent.jsm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toolkit/components/webextensions/ExtensionContent.jsm b/toolkit/components/webextensions/ExtensionContent.jsm index 5bdcde6f5..5f9b88f35 100644 --- a/toolkit/components/webextensions/ExtensionContent.jsm +++ b/toolkit/components/webextensions/ExtensionContent.jsm @@ -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, |