[Pkg-mozext-commits] [tabmixplus] 68/147: Follow up bug 1322408 - Use `gBrowser.loadTabs` to open all tabs when middle-clicking a client in Synced Tabs

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:37 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 a1b94c6b5d6171255e73279f19bfd086af9cdbef
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Dec 20 13:06:59 2016 +0200

    Follow up bug 1322408 - Use `gBrowser.loadTabs` to open all tabs when middle-clicking a client in Synced Tabs
---
 modules/syncedTabs.jsm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/modules/syncedTabs.jsm b/modules/syncedTabs.jsm
index 02e8694..e3f9197 100644
--- a/modules/syncedTabs.jsm
+++ b/modules/syncedTabs.jsm
@@ -69,7 +69,16 @@ this.SyncedTabs = {
       configurable: true
     });
 
-    if (TabmixSvc.version(510)) {
+    if (TabmixSvc.version(530)) {
+      Tabmix.changeCode(TabListView.prototype, "TabListView.prototype.onClick")._replace(
+        'this.props.onOpenTabs(urls, where);',
+        `if (/^tab/.test(where)) {
+          // reverse the background here since props.onOpenTabs reverse it again
+          where = where == 'tab' ^ this.tabmix_inBackground ? "tab" : "tabshifted";
+        }
+        $&`
+      ).toCode();
+    } else if (TabmixSvc.version(510)) {
       Tabmix.changeCode(TabListView.prototype, "TabListView.prototype.onClick")._replace(
         'this.props.onOpenTabs(urls, where, {});',
         `if (/^tab/.test(where)) {

-- 
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