[Pkg-mozext-commits] [tabmixplus] 96/147: Follow up bug 1324895 - Add 'Open All in Tabs' to client context menu in Synced Tabs
David Prévot
taffit at moszumanska.debian.org
Sat Aug 5 15:27:41 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 b7f500cfc413bfea694c96273def15184d826a61
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Jan 17 09:33:17 2017 +0200
Follow up bug 1324895 - Add 'Open All in Tabs' to client context menu in Synced Tabs
---
modules/{syncedTabs.jsm => SyncedTabs.jsm} | 4 +++-
modules/TabmixSvc.jsm | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/syncedTabs.jsm b/modules/SyncedTabs.jsm
similarity index 91%
rename from modules/syncedTabs.jsm
rename to modules/SyncedTabs.jsm
index 50db757..98d3762 100644
--- a/modules/syncedTabs.jsm
+++ b/modules/SyncedTabs.jsm
@@ -70,7 +70,9 @@ this.SyncedTabs = {
});
if (TabmixSvc.version(510)) {
- Tabmix.changeCode(TabListView.prototype, "TabListView.prototype.onClick")._replace(
+ const fnName = typeof TabListView.prototype._openAllClientTabs == "function" ?
+ "TabListView.prototype._openAllClientTabs" : "TabListView.prototype.onClick";
+ Tabmix.changeCode(TabListView.prototype, fnName)._replace(
'this.props.onOpenTabs(urls, where);',
`if (/^tab/.test(where)) {
// reverse the background here since props.onOpenTabs reverse it again
diff --git a/modules/TabmixSvc.jsm b/modules/TabmixSvc.jsm
index b65823f..c36f4b2 100644
--- a/modules/TabmixSvc.jsm
+++ b/modules/TabmixSvc.jsm
@@ -12,7 +12,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "TabmixPlacesUtils",
"resource://tabmixplus/Places.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "SyncedTabs",
- "resource://tabmixplus/syncedTabs.jsm");
+ "resource://tabmixplus/SyncedTabs.jsm");
var tabStateCache;
var _versions = {};
--
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