Bug 660391 - gURLBar.formatValue fails when exiting print preview, due to the URL bar not having a frame. r=gavin
authorDão Gottwald <dao@mozilla.com>
Thu, 02 Jun 2011 22:34:12 +0200
changeset 70484 2b7732c590bd09d98b6130f0bcddfee331e44f26
parent 70483 051b1bd21ae72bad98572335fda8acc233ce2e12
child 70485 3cbab1bd4b14c5e7fb45a992449f716bd13a12b0
push id20338
push userdgottwald@mozilla.com
push dateFri, 03 Jun 2011 05:51:27 +0000
treeherdermozilla-central@8a133638f5b6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs660391
milestone7.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 660391 - gURLBar.formatValue fails when exiting print preview, due to the URL bar not having a frame. r=gavin
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -2868,17 +2868,17 @@ var PrintPreviewListener = {
     gBrowser.selectedTab = this._tabBeforePrintPreview;
     this._tabBeforePrintPreview = null;
     gInPrintPreviewMode = false;
     this._toggleAffectedChrome();
     gBrowser.removeTab(this._printPreviewTab);
     this._printPreviewTab = null;
   },
   _toggleAffectedChrome: function () {
-    gNavToolbox.hidden = gInPrintPreviewMode;
+    gNavToolbox.collapsed = gInPrintPreviewMode;
 
     if (gInPrintPreviewMode)
       this._hideChrome();
     else
       this._showChrome();
 
     if (this._chromeState.sidebarOpen)
       toggleSidebar(this._sidebarCommand);