Bug 143866 Ctrl+T opens new tabs in tab-bar-less (popup, no toolbar) windows

p=me r=neil.parkwaycc.co.uk sr=jag a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@176132 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugzilla%arlen.demon.co.uk
2005-07-15 12:59:12 +00:00
parent abbf117a10
commit 8561e4546b
2 changed files with 6 additions and 6 deletions

View File

@@ -115,8 +115,8 @@ const gTabStripPrefListener =
if (topic != "nsPref:changed")
return;
var stripVisibility = !pref.getBoolPref(prefName);
if (gBrowser.tabContainer.childNodes.length == 1) {
if (gBrowser.tabContainer.childNodes.length == 1 && window.toolbar.visible) {
var stripVisibility = !pref.getBoolPref(prefName);
gBrowser.setStripVisibilityTo(stripVisibility);
pref.setBoolPref("browser.tabs.forceHide", false);
}

View File

@@ -55,7 +55,7 @@
<content>
<xul:stringbundle src="chrome://global/locale/tabbrowser.properties"/>
<xul:tabbox flex="1" eventnode="document" xbl:inherits="handleCtrlPageUpDown">
<xul:hbox class="tabbrowser-strip chromeclass-toolbar" collapsed="true" tooltip="_child" context="_child">
<xul:hbox class="tabbrowser-strip" collapsed="true" tooltip="_child" context="_child">
<xul:tooltip onpopupshowing="event.preventBubble(); if (document.tooltipNode.hasAttribute('label')) { this.setAttribute('label', document.tooltipNode.getAttribute('label')); return true; } return false;"/>
<xul:menupopup onpopupshowing="this.parentNode.parentNode.parentNode.updatePopupMenu(this);">
<xul:menuitem label="&closeTab.label;" accesskey="&closeTab.accesskey;"
@@ -967,8 +967,7 @@
return;
if (l == 2) {
var autohide = this.mPrefs.getBoolPref("browser.tabs.autoHide");
if (autohide)
if (this.mPrefs.getBoolPref("browser.tabs.autoHide"))
this.mStrip.collapsed = true;
}
@@ -1498,7 +1497,8 @@
this.mTabFilters[0] = filter;
if (!this.mPrefs.getBoolPref("browser.tabs.autoHide") &&
!this.mPrefs.getBoolPref("browser.tabs.forceHide"))
!this.mPrefs.getBoolPref("browser.tabs.forceHide") &&
window.toolbar.visible)
this.mStrip.collapsed = false;
]]>
</constructor>