Bug 1397525 - Don't instantiate async tab switcher when checking for tab warm-ability with e10s disabled. r=florian
authorMike Conley <mconley@mozilla.com>
Mon, 11 Sep 2017 13:31:59 -0400
changeset 429613 45fc09022ed039cf6709b71bc2a08d00ddf782d0
parent 429612 076cb2ce2643319587de1b2a17e20c6582c5efb2
child 429614 70acb4b69beb9ffa2637de9011c4bd6d5627eb60
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs1397525
milestone57.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 1397525 - Don't instantiate async tab switcher when checking for tab warm-ability with e10s disabled. r=florian MozReview-Commit-ID: EeUuS0yVwt9
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -5174,17 +5174,19 @@
           return switcher;
         ]]></body>
       </method>
 
       <method name="warmupTab">
         <parameter name="aTab"/>
         <body>
           <![CDATA[
-            this._getSwitcher().warmupTab(aTab);
+            if (gMultiProcessBrowser) {
+              this._getSwitcher().warmupTab(aTab);
+            }
           ]]>
         </body>
       </method>
 
       <!-- BEGIN FORWARDED BROWSER PROPERTIES.  IF YOU ADD A PROPERTY TO THE BROWSER ELEMENT
            MAKE SURE TO ADD IT HERE AS WELL. -->
       <property name="canGoBack"
                 onget="return this.mCurrentBrowser.canGoBack;"