Bug 243893 - Open in Tab is unusable when toolbars are not present. r=mconnor, a=asa

This commit is contained in:
mozilla.mano%sent.com 2005-07-07 15:52:50 +00:00
Родитель 87a40637a6
Коммит bc1083033a
2 изменённых файлов: 15 добавлений и 13 удалений

Просмотреть файл

@ -1108,14 +1108,14 @@ AutoHideTabbarPrefListener.prototype =
toggleAutoHideTabbar: function ()
{
var aVisible = false;
try {
aVisible = !gPrefService.getBoolPref(this.domain);
}
catch (e) {
}
if (gBrowser.tabContainer.childNodes.length == 1) {
if (gBrowser.tabContainer.childNodes.length == 1 &&
window.toolbar.visible) {
var aVisible = false;
try {
aVisible = !gPrefService.getBoolPref(this.domain);
}
catch (e) {
}
gBrowser.setStripVisibilityTo(aVisible);
gPrefService.setBoolPref("browser.tabs.forceHide", false);
}

Просмотреть файл

@ -60,7 +60,7 @@
<xul:hbox id="tab-drop-indicator-bar">
<xul:hbox id="tab-drop-indicator"/>
</xul:hbox>
<xul:hbox class="tabbrowser-strip chromeclass-toolbar" collapsed="true" tooltip="_child" context="_child"
<xul:hbox class="tabbrowser-strip" collapsed="true" tooltip="_child" context="_child"
ondraggesture="nsDragAndDrop.startDrag(event, this.parentNode.parentNode); event.stopPropagation();"
ondragover="nsDragAndDrop.dragOver(event, this.parentNode.parentNode); event.stopPropagation();"
ondragdrop="nsDragAndDrop.drop(event, this.parentNode.parentNode); event.stopPropagation();"
@ -1147,7 +1147,8 @@
if (l == 2) {
var autohide = this.mPrefs.getBoolPref("browser.tabs.autoHide");
if (autohide)
var tabStripHide = !window.toolbar.visible;
if (autohide || tabStripHide)
this.setStripVisibilityTo(false);
}
@ -1276,9 +1277,10 @@
<![CDATA[
if (!this.mProgressListeners) {
this.mProgressListeners = [];
const autoHide = this.mPrefs.getBoolPref("browser.tabs.autoHide");
const forceHide = this.mPrefs.getBoolPref("browser.tabs.forceHide");
if (!autoHide && !forceHide)
var autoHide = this.mPrefs.getBoolPref("browser.tabs.autoHide");
var forceHide = this.mPrefs.getBoolPref("browser.tabs.forceHide");
var tabStripHide = !window.toolbar.visible;
if (!autoHide && !forceHide && !tabStripHide)
this.setStripVisibilityTo(true);
// Hook up a listener for <link>s.