[Pkg-mozext-commits] [greasemonkey] 03/10: Export createObjectIn, cloneInto, exportFunction to privileged sandbox.

David Prévot taffit at moszumanska.debian.org
Thu May 29 17:26:52 UTC 2014


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit 74ee3171f46172404c9ab38e69b3e84c0d613cff
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Wed May 28 12:40:08 2014 -0400

    Export createObjectIn, cloneInto, exportFunction to privileged sandbox.
---
 components/greasemonkey.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/components/greasemonkey.js b/components/greasemonkey.js
index 6e100f3..40c15cf 100644
--- a/components/greasemonkey.js
+++ b/components/greasemonkey.js
@@ -104,6 +104,11 @@ function createSandbox(
   sandbox.unsafeWindow = aContentWin.wrappedJSObject;
   if (aFirebugConsole) sandbox.console = aFirebugConsole;
 
+  // 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.compareFirefoxVersion("16.0") < 0) {
     // See #1350.  The upstream bug was fixed in Firefox 16; apply workaround
     // only in older versions.

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