[Pkg-mozext-commits] [tabmixplus] 02/15: New tab (about:newtab) is closing for mistakenly consider to be a blank tab open for downloading. Regressed by changeset 0457eae85877
David Prévot
taffit at moszumanska.debian.org
Wed Mar 18 19:05:17 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 d9045b0639cdf859a9d4ab48c92ffb8b4640b7f9
Author: onemen <tabmix.onemen at gmail.com>
Date: Wed Mar 4 14:11:02 2015 +0200
New tab (about:newtab) is closing for mistakenly consider to be a blank tab open for downloading. Regressed by changeset 0457eae85877
---
chrome/content/tab/tab.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 7423c96..233099e 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -2574,8 +2574,8 @@ var TabmixProgressListener = {
let uri = aRequest.QueryInterface(Ci.nsIChannel).URI.spec;
// remove blank tab that created by downloading a file.
let isDownLoading = Tabmix.prefs.getBoolPref("enablefiletype") &&
- this.mTabBrowser.isBlankBrowser(aBrowser) &&
- uri != "about:blank" && aStatus === 0;
+ this.mTabBrowser.isBlankBrowser(aBrowser, true) &&
+ !/^about/.test(uri) && aStatus === 0;
if (isDownLoading) {
if (tab.selected)
this.mTabBrowser.previousTab(tab);
--
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