Bug 642355 - Fix print preview in popups. r=gavin

This commit is contained in:
Dão Gottwald 2011-03-31 10:12:10 +02:00
parent 10af14bcf0
commit 2e57c45181
2 changed files with 4 additions and 3 deletions

View File

@ -793,6 +793,7 @@
<toolbar id="TabsToolbar"
class="toolbar-primary"
fullscreentoolbar="true"
customizable="true"
mode="icons" lockmode="true"

View File

@ -2743,9 +2743,9 @@
<method name="updateVisibility">
<body><![CDATA[
if (this.childNodes.length - this.tabbrowser._removingTabs.length == 1 &&
window.toolbar.visible)
this.visible = !Services.prefs.getBoolPref("browser.tabs.autoHide");
if (this.childNodes.length - this.tabbrowser._removingTabs.length == 1)
this.visible = window.toolbar.visible &&
!Services.prefs.getBoolPref("browser.tabs.autoHide");
else
this.visible = true;
]]></body>