Bug 1336554 - Add support to e10s-multi for simplified browser tab. r=mconley
authorMatheus Longaray <mlongaray@hp.com>
Fri, 03 Feb 2017 21:21:01 +0100
changeset 340781 44105ac409045b923a60465d25081dea8b7efcee
parent 340714 2d37b966abedd85da2f6dcf8412407f2e3f9c12c
child 340782 20044793987e0463f5aeadbaccba210e3a55d2aa
push id31311
push userphilringnalda@gmail.com
push dateSun, 05 Feb 2017 00:36:57 +0000
treeherdermozilla-central@e581572bc9c1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1336554
milestone54.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 1336554 - Add support to e10s-multi for simplified browser tab. r=mconley This patch adds support to e10s-multi when creating tab for simplified browser. MozReview-Commit-ID: KHXePRVxrGl
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -3395,18 +3395,20 @@ var PrintPreviewListener = {
                                                   { inBackground: false,
                                                     preferredRemoteType,
                                                     relatedBrowser: browser });
       gBrowser.selectedTab = this._printPreviewTab;
     }
     return gBrowser.getBrowserForTab(this._printPreviewTab);
   },
   createSimplifiedBrowser() {
+    let browser = this._tabBeforePrintPreview.linkedBrowser;
     this._simplifyPageTab = gBrowser.loadOneTab("about:blank",
-                                                { inBackground: true });
+                                                { inBackground: true,
+                                                  relatedBrowser: browser });
     return this.getSimplifiedSourceBrowser();
   },
   getSourceBrowser() {
     return this._tabBeforePrintPreview ?
       this._tabBeforePrintPreview.linkedBrowser : gBrowser.selectedBrowser;
   },
   getSimplifiedSourceBrowser() {
     return this._simplifyPageTab ?