[Pkg-mozext-commits] [tabmixplus] 42/51: Don't prevent focusAndSelectUrlBar when replacing last tab

David Prévot taffit at moszumanska.debian.org
Mon Feb 2 18:36:55 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 808bed8dd84b344d17891f0b7a8dd0c09ed2ad78
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Jan 19 23:12:01 2015 +0200

    Don't prevent focusAndSelectUrlBar when replacing last tab
---
 chrome/content/links/userInterface.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/chrome/content/links/userInterface.js b/chrome/content/links/userInterface.js
index 288583b..65a34fd 100644
--- a/chrome/content/links/userInterface.js
+++ b/chrome/content/links/userInterface.js
@@ -193,14 +193,15 @@ function TMP_BrowserOpenTab(aTab, replaceLastTab) {
        replaceLastTab && Tabmix.prefs.getBoolPref("selectLocationBar.afterLastTabClosed") ||
        url == "about:blank" || url == "about:newtab" || url == "about:privatebrowsing";
    if (clearUrlBar)
-     Tabmix.clearUrlBar(newTab, url);
+     Tabmix.clearUrlBar(newTab, url, false, replaceLastTab);
 
    return newTab;
 }
 
 Tabmix.selectedTab = null;
-Tabmix.clearUrlBar = function TMP_clearUrlBar(aTab, aUrl, aTimeOut) {
-  if(/about:home|(www\.)*(google|bing)\./.test(aUrl))
+Tabmix.clearUrlBar = function TMP_clearUrlBar(aTab, aUrl, aTimeOut, replaceLastTab) {
+  // Firefox always call focusAndSelectUrlBar when it replacing last tab
+  if (!replaceLastTab && /about:home|(www\.)*(google|bing)\./.test(aUrl))
     return;
   if (aTab.selected && !isBlankPageURL(aUrl)) {
     // clean the the address bar as if the user laod about:blank 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