[Pkg-mozext-commits] [greasemonkey] 01/10: Work around a crash bug in Firefox 27.

David Prévot taffit at moszumanska.debian.org
Sat Feb 15 01:10:55 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 24f9860628536f897fb00b5a9eea5ea032c36982
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Tue Feb 11 15:21:17 2014 -0500

    Work around a crash bug in Firefox 27.
    
    Fixes #1869
---
 components/greasemonkey.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/components/greasemonkey.js b/components/greasemonkey.js
index 97d66fd..8655f03 100644
--- a/components/greasemonkey.js
+++ b/components/greasemonkey.js
@@ -161,6 +161,13 @@ function createSandbox(
   Components.utils.evalInSandbox(
       'const GM_info = ' + uneval(aScript.info()), sandbox);
 
+  // See #1869 and http://bugzil.la/934509 and http://bugzil.la/969923
+  // Crash bug workaround for Firefox 27.
+  var _orig_sandbox_clearInterval = sandbox.clearInterval;
+  sandbox.clearInterval = GM_util.hitch(null, function(aId) {
+    if (aId) _orig_sandbox_clearInterval.call(sandbox.window, aId);
+  });
+
   return sandbox;
 }
 

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