Bug 1167600 - Unable to print preview certain 'about:' pages. r=mconley
authorChirag Bhatia <chiragbhatia2006@gmail.com>
Wed, 24 Jun 2015 10:28:00 +0200
changeset 250146 2d9a98adbac2b3139503e80b5a989789fa9f67d7
parent 250145 7caec22daf3084098355062f3a5475dc094b40db
child 250147 bd399cc8c6cab407b6f26931d9fd432275aa63b6
push id61469
push usercbook@mozilla.com
push dateThu, 25 Jun 2015 08:37:02 +0000
treeherdermozilla-inbound@eba8941bf4a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1167600
milestone41.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 1167600 - Unable to print preview certain 'about:' pages. r=mconley
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -3142,19 +3142,22 @@ function BrowserReloadWithFlags(reloadFl
 }
 
 var PrintPreviewListener = {
   _printPreviewTab: null,
   _tabBeforePrintPreview: null,
 
   getPrintPreviewBrowser: function () {
     if (!this._printPreviewTab) {
+      let browser = gBrowser.selectedTab.linkedBrowser;
+      let forceNotRemote = gMultiProcessBrowser && !browser.isRemoteBrowser;
       this._tabBeforePrintPreview = gBrowser.selectedTab;
       this._printPreviewTab = gBrowser.loadOneTab("about:blank",
-                                                  { inBackground: false });
+                                                  { inBackground: false,
+                                                    forceNotRemote });
       gBrowser.selectedTab = this._printPreviewTab;
     }
     return gBrowser.getBrowserForTab(this._printPreviewTab);
   },
   getSourceBrowser: function () {
     return this._tabBeforePrintPreview ?
       this._tabBeforePrintPreview.linkedBrowser : gBrowser.selectedBrowser;
   },