[Pkg-mozext-commits] [perspectives-extension] 21/44: Perspectives - Fix addProgressListener
David Prévot
taffit at moszumanska.debian.org
Sun Jun 26 04:59:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository perspectives-extension.
commit 46aad3ec05d0c191b239763e21afdc9b0a3e9bec
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date: Sun Jun 12 21:48:20 2016 -0700
Perspectives - Fix addProgressListener
Old function was not properly getting the browser object
---
plugin/chrome/content/notaries.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/plugin/chrome/content/notaries.js b/plugin/chrome/content/notaries.js
index 640eaed..4ac4aee 100644
--- a/plugin/chrome/content/notaries.js
+++ b/plugin/chrome/content/notaries.js
@@ -1052,7 +1052,10 @@ var Perspectives = {
}
Pers_debug.d_print("main", Perspectives.notaries);
Pers_statusbar.setStatus(null, Pers_statusbar.STATE_NEUT, "");
- getBrowser().addProgressListener(Perspectives.notaryListener);
+ var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
+ .getService(Components.interfaces.nsIWindowMediator);
+ var wnd = wm.getMostRecentWindow("navigator:browser");
+ wnd.gBrowser.addProgressListener(Perspectives.notaryListener);
Pers_debug.d_print("main", "Perspectives Finished Initialization\n\n");
} catch(e) {
if(Perspectives.strbundle === null) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git
More information about the Pkg-mozext-commits
mailing list