[Pkg-mozext-commits] [tabmixplus] 09/28: Fix incompatibility with Treestyletab extension, Open Link in Foreground/Background Tab Broken in 0.4.1.8, regressed by changeset 049df3172bd4

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 d6ae406f46951090b1ff9288ed7d01929ad22c31
Author: onemen <tabmix.onemen at gmail.com>
Date:   Fri Jun 19 20:27:11 2015 +0300

    Fix incompatibility with Treestyletab extension, Open Link in Foreground/Background Tab Broken in 0.4.1.8, regressed by changeset 049df3172bd4
---
 chrome/content/extensions/extensions.js | 6 ++++++
 chrome/content/minit/tablib.js          | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/chrome/content/extensions/extensions.js b/chrome/content/extensions/extensions.js
index 3a696a3..3b6dcae 100644
--- a/chrome/content/extensions/extensions.js
+++ b/chrome/content/extensions/extensions.js
@@ -656,6 +656,12 @@ TMP_extensionsCompatibility.treeStyleTab = {
     // we removed TMP_openTabNext function 2011-11-15
     if ("TreeStyleTabWindowHelper" in window && TreeStyleTabWindowHelper.overrideExtensionsDelayed) {
       Tabmix.changeCode(TreeStyleTabWindowHelper, "TreeStyleTabWindowHelper.overrideExtensionsDelayed")._replace(
+        'var newTab',
+        'gContextMenu.linkURL = url;'
+      )._replace(
+        'TreeStyleTabService.readyToOpenChildTab(aTab)',
+        'TreeStyleTabService.readyToOpenChildTab(gBrowser.mCurrentTab)'
+      )._replace(
         /eval\(["|']gBrowser\.TMP_openTabNext/,
         'if (false) $&'
       ).toCode();
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index b98277a..dde01e8 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -1024,12 +1024,6 @@ var tablib = {
       if (!url)
         return;
 
-      // the next line is insertion point for treeStyleTab extension look in
-      // treeStyleTab hacks.js
-      /* jshint ignore:start */
-      var newTab = null;
-      /* jshint ignore:end */
-
       gContextMenu.linkURL = url;
       // originalFunctions.openInverseLink is a copy of original
       // nsContextMenu.prototype.openLinkInTab

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