[Pkg-mozext-commits] [tabmixplus] 08/20: Function gMenuButtonBadgeManager removed in Firefox 56
David Prévot
taffit at moszumanska.debian.org
Thu Nov 16 18:58:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 7a97fad619673861c255637429d24aa6fd362b1e
Author: onemen <tabmix.onemen at gmail.com>
Date: Sun Oct 15 12:56:49 2017 +0300
Function gMenuButtonBadgeManager removed in Firefox 56
---
modules/SingleWindowModeUtils.jsm | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/modules/SingleWindowModeUtils.jsm b/modules/SingleWindowModeUtils.jsm
index e0697f3..d40c40f 100644
--- a/modules/SingleWindowModeUtils.jsm
+++ b/modules/SingleWindowModeUtils.jsm
@@ -199,11 +199,13 @@ this.SingleWindowModeUtils = {
newWindow.OfflineApps.uninit = function() {};
newWindow.IndexedDBPromptHelper.init();
if (TabmixSvc.version(420)) {
- newWindow.gMenuButtonBadgeManager.uninit = function() {
- if (typeof PanelUI == "object" && PanelUI.panel) {
- PanelUI.panel.removeEventListener("popupshowing", this, true);
- }
- };
+ if ("gMenuButtonBadgeManager" in newWindow) {
+ newWindow.gMenuButtonBadgeManager.uninit = function() {
+ if (typeof PanelUI == "object" && PanelUI.panel) {
+ PanelUI.panel.removeEventListener("popupshowing", this, true);
+ }
+ };
+ }
}
if (!TabmixSvc.version(440)) {
let obs = Services.obs;
--
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