[Pkg-mozext-commits] [tabmixplus] 10/28: SingleWindowModeUtils fail to close new window, gPluginHandler.pluginCrashed was changed to gPluginHandler.NPAPIPluginCrashed by bug 1110887 (Firefox 40)
David Prévot
taffit at moszumanska.debian.org
Sun Jul 5 15:02:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 7240182bd4084c909f6457fbf9834de8cd5da222
Author: onemen <tabmix.onemen at gmail.com>
Date: Sun Jun 21 21:46:53 2015 +0300
SingleWindowModeUtils fail to close new window, gPluginHandler.pluginCrashed was changed to gPluginHandler.NPAPIPluginCrashed by bug 1110887 (Firefox 40)
---
modules/SingleWindowModeUtils.jsm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/SingleWindowModeUtils.jsm b/modules/SingleWindowModeUtils.jsm
index dc65248..bd1a72f 100644
--- a/modules/SingleWindowModeUtils.jsm
+++ b/modules/SingleWindowModeUtils.jsm
@@ -157,7 +157,8 @@ this.SingleWindowModeUtils = {
obs.addObserver(newWindow.gXPInstallObserver, "addon-install-blocked", false);
obs.addObserver(newWindow.gXPInstallObserver, "addon-install-failed", false);
obs.addObserver(newWindow.gXPInstallObserver, "addon-install-complete", false);
- obs.addObserver(newWindow.gPluginHandler.pluginCrashed, "plugin-crashed", false);
+ let pluginCrashed = TabmixSvc.version(400) ? "NPAPIPluginCrashed" : "pluginCrashed";
+ obs.addObserver(newWindow.gPluginHandler[pluginCrashed], "plugin-crashed", false);
newWindow.gPrivateBrowsingUI.uninit = function() {};
existingWindow.setTimeout(function () {
// restore window dimensions, to prevent flickring in the next restart
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list