[Pkg-mozext-commits] [greasemonkey] 34/62: use export helpers to avoid xray backscatter

David Prévot taffit at moszumanska.debian.org
Sun Sep 13 22:10:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository greasemonkey.

commit 7e2eafc55b8b200cbe2d175488d81fe2401612e3
Author: The8472 <git at infinite-source.de>
Date:   Sun Aug 23 20:54:33 2015 +0200

    use export helpers to avoid xray backscatter
    
    fixes greasemonkey/greasemonkey#2070
---
 modules/sandbox.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/sandbox.js b/modules/sandbox.js
index f2ed4e7..03c20b5 100644
--- a/modules/sandbox.js
+++ b/modules/sandbox.js
@@ -52,6 +52,7 @@ function createSandbox(aScript, aContentWin, aUrl, aFrameScope) {
         'sandboxName': aScript.id,
         'sandboxPrototype': aContentWin,
         'wantXrays': true,
+        'wantExportHelpers': true
       });
 
   // Note that because waivers aren't propagated between origins, we need the
@@ -60,10 +61,6 @@ function createSandbox(aScript, aContentWin, aUrl, aFrameScope) {
       'return window.wrappedJSObject || window;');
   Object.defineProperty(sandbox, 'unsafeWindow', {get: unsafeWindowGetter});
 
-  // Functions for interaction with unsafeWindow; see: http://goo.gl/C8Au16
-  sandbox.createObjectIn = Cu.createObjectIn;
-  sandbox.cloneInto = Cu.cloneInto;
-  sandbox.exportFunction = Cu.exportFunction;
 
   if (GM_util.inArray(aScript.grants, 'GM_addStyle')) {
     sandbox.GM_addStyle = GM_util.hitch(null, GM_addStyle, aContentWin.document);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list