[Pkg-mozext-commits] [requestpolicy] 149/280: use `shutdownOnUnload` for `FrameScriptEnv`

David Prévot taffit at moszumanska.debian.org
Sat May 2 20:30:14 UTC 2015


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

taffit pushed a commit to branch master
in repository requestpolicy.

commit 955b7444cfe63a0068c087774c181ac14316aeee
Author: Martin Kimmerle <dev at 256k.de>
Date:   Sun Jan 18 14:47:15 2015 +0100

    use `shutdownOnUnload` for `FrameScriptEnv`
---
 src/content/ui/frame.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/content/ui/frame.js b/src/content/ui/frame.js
index 9f0cbfa..f7520b5 100644
--- a/src/content/ui/frame.js
+++ b/src/content/ui/frame.js
@@ -133,9 +133,7 @@ Components.utils.import("resource://gre/modules/Services.jsm");
    * closed.
    */
   {
-    FrameScriptEnv.elManager.addListener(mm, "unload", function() {
-      FrameScriptEnv.shutdown();
-    }, false);
+    FrameScriptEnv.shutdownOnUnload(mm);
   }
 
   /**

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



More information about the Pkg-mozext-commits mailing list