diff --git a/suite/browser/tabbrowser.xml b/suite/browser/tabbrowser.xml index ed7687689d3..5cc252c5bc4 100644 --- a/suite/browser/tabbrowser.xml +++ b/suite/browser/tabbrowser.xml @@ -64,12 +64,8 @@ - + - - - - @@ -113,16 +109,18 @@ + @@ -429,8 +441,12 @@ if (l == 1) return; // Don't allow the last tab to close. - if (l == 2) - this.mStrip.collapsed = true; // Go ahead and collapse, since we're going back to 1 tab. + if (l == 2) { + var pref = Components.classes['@mozilla.org/preferences;1'].getService(Components.interfaces.nsIPrefService).getBranch(null); + var autohide = pref.getBoolPref("browser.tabs.autoHide"); + if (autohide) + this.mStrip.collapsed = true; // Go ahead and collapse, since we're going back to 1 tab. + } var index = -1; if (this.mCurrentTab == aTab) @@ -508,9 +524,22 @@ +