[Pkg-mozext-commits] [tabmixplus] 39/56: Using strict equality (===) break 'open tab next' when relatedToCurrent is undefined and referrerURI exist, make sure relatedToCurrent is not undefined
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 e39535d14b6ac23d50251048dae3bd3ce8132992
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon May 16 19:02:27 2016 +0300
Using strict equality (===) break 'open tab next' when relatedToCurrent is undefined and referrerURI exist, make sure relatedToCurrent is not undefined
---
chrome/content/minit/tablib.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index c75a8cd..3a9a34a 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, relatedToCurrent,
+ let dontMove, isPending, referrerURI, relatedToCurrent = null,
callerTrace = Tabmix.callerTrace(),
isRestoringTab = callerTrace.contain("ssi_restoreWindow"),
// new tab can trigger selection change by some extensions (divX HiQ)
@@ -168,7 +168,7 @@ var tablib = { // eslint-disable-line
dontMove = params.dontMove;
isPending = params.isPending;
referrerURI = params.referrerURI;
- relatedToCurrent = params.relatedToCurrent;
+ relatedToCurrent = params.relatedToCurrent || null;
params.relatedToCurrent = false;
args[1] = params;
}
--
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