[Pkg-mozext-commits] [greasemonkey] 08/19: GM_openInTab: Fix extra tabs opening.
David Prévot
taffit at moszumanska.debian.org
Sat Mar 21 02:50:57 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 ef5dd5cb7b917dcfea9a1da16e93198f2083de7b
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Mon Mar 16 10:42:33 2015 -0400
GM_openInTab: Fix extra tabs opening.
Before this change, one tab was added for each Firefox window (ever) opened.
Fixes #2094.
---
content/browser.js | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/content/browser.js b/content/browser.js
index 48847ac..50132dc 100644
--- a/content/browser.js
+++ b/content/browser.js
@@ -11,10 +11,7 @@ function GM_BrowserUI() {};
GM_BrowserUI.init = function() {
window.addEventListener("load", GM_BrowserUI.chromeLoad, false);
window.addEventListener("unload", GM_BrowserUI.chromeUnload, false);
-
- var messageManager = Components.classes["@mozilla.org/globalmessagemanager;1"]
- .getService(Components.interfaces.nsIMessageListenerManager);
- messageManager.addMessageListener('greasemonkey:open-in-tab',
+ window.messageManager.addMessageListener('greasemonkey:open-in-tab',
GM_BrowserUI.openInTab);
};
--
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