diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 302fcb55adb..f1bc6dfef69 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -1541,17 +1541,14 @@ var closeWindow = false; var l = this.mTabs.length - this._removingTabs.length; + var newTab; if (l == 1) { closeWindow = aCloseWindowWithLastTab != null ? aCloseWindowWithLastTab : this.mPrefs.getBoolPref("browser.tabs.closeWindowWithLastTab"); - // BrowserOpenTab focuses the location bar. Use it only if that's - // really wanted. - if (closeWindow) - this.addTab("about:blank"); - else - BrowserOpenTab(); + newTab = this.addTab("about:blank"); + newTab.collapsed = true; l++; } if (l == 2) { @@ -1589,7 +1586,7 @@ tab.owner = null; }); - return [aTab, closeWindow]; + return [aTab, closeWindow, newTab]; ]]> @@ -1600,7 +1597,7 @@