[Pkg-mozext-commits] [tabmixplus] 38/56: Update compatibility with treeStyleTab - update changeset d5cd8b3c10e1 - prepare the tree to open the new tab as next sibling for all calls to gBrowser.addTab, not just from openUILinkIn or from external app.
David Prévot
taffit at moszumanska.debian.org
Mon Jun 6 00:02:36 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 3570d0b7170cee80f6b613e8c7010c8296fc4608
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon May 16 18:36:37 2016 +0300
Update compatibility with treeStyleTab - update changeset d5cd8b3c10e1 - prepare the tree to open the new tab as next sibling for all calls to gBrowser.addTab, not just from openUILinkIn or from external app.
---
chrome/content/minit/tablib.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index be71383..c75a8cd 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -138,7 +138,7 @@ var tablib = { // eslint-disable-line
change_gBrowser: function change_gBrowser() {
Tabmix.originalFunctions.gBrowser_addTab = gBrowser.addTab;
gBrowser.addTab = function(...args) {
- let dontMove, isPending, referrerURI, fromExternal, relatedToCurrent,
+ let dontMove, isPending, referrerURI, relatedToCurrent,
callerTrace = Tabmix.callerTrace(),
isRestoringTab = callerTrace.contain("ssi_restoreWindow"),
// new tab can trigger selection change by some extensions (divX HiQ)
@@ -168,7 +168,6 @@ var tablib = { // eslint-disable-line
dontMove = params.dontMove;
isPending = params.isPending;
referrerURI = params.referrerURI;
- fromExternal = params.fromExternal;
relatedToCurrent = params.relatedToCurrent;
params.relatedToCurrent = false;
args[1] = params;
@@ -183,8 +182,7 @@ var tablib = { // eslint-disable-line
} else if (!Services.prefs.getBoolPref("browser.tabs.insertRelatedAfterCurrent")) {
relatedToCurrent = true;
}
- let checkToOpenTabNext = openTabnext && (callerTrace.contain("openUILinkIn") || fromExternal) &&
- (relatedToCurrent === null ? referrerURI : relatedToCurrent);
+ let checkToOpenTabNext = (relatedToCurrent === null ? referrerURI : relatedToCurrent) && openTabnext;
TMP_extensionsCompatibility.treeStyleTab.checkToOpenTabNext(this.selectedTab, checkToOpenTabNext);
}
--
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