[Pkg-mozext-commits] [tabmixplus] 04/56: ReferenceError: XPCOMUtils is not defined in MergeWindows.jsm, regressed by changeset 5deb30e30392
David Prévot
taffit at moszumanska.debian.org
Mon Jun 6 00:02:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 2700b3a57e35dacfb3a60a51190cddc3527587df
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Apr 26 11:56:59 2016 +0300
ReferenceError: XPCOMUtils is not defined in MergeWindows.jsm, regressed by changeset 5deb30e30392
---
modules/MergeWindows.jsm | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/MergeWindows.jsm b/modules/MergeWindows.jsm
index 4548fd9..3623c09 100644
--- a/modules/MergeWindows.jsm
+++ b/modules/MergeWindows.jsm
@@ -4,6 +4,7 @@ this.EXPORTED_SYMBOLS = ["MergeWindows"];
const Cu = Components.utils;
+Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://tabmixplus/Services.jsm");
@@ -203,10 +204,8 @@ this.MergeWindows = {
return !aWindow.toolbar.visible;
},
- isWindowPrivate: function() {
- delete this.isWindowPrivate;
- this.isWindowPrivate = aWindow => PrivateBrowsingUtils.isWindowPrivate(aWindow);
- return this.isWindowPrivate(arguments[0]);
+ isWindowPrivate: function(aWindow) {
+ return PrivateBrowsingUtils.isWindowPrivate(aWindow);
},
/*
--
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