Bug 1423220 - Don't delay activating the DocShell for tabs that we're rendering by switching and not warming. r?Gijs draft
authorMike Conley <mconley@mozilla.com>
Fri, 16 Mar 2018 11:39:22 -0400
changeset 768637 4d5e960e879cf87a52f1b78617390c2296e77350
parent 768523 47e1787284fbfad3d32eb7081ffdda58d2b086de
child 768638 4c0c70730219aacb00a52495ee3953323d2a0bf3
push id102938
push usermconley@mozilla.com
push dateFri, 16 Mar 2018 16:32:14 +0000
reviewersGijs
bugs1423220
milestone61.0a1
Bug 1423220 - Don't delay activating the DocShell for tabs that we're rendering by switching and not warming. r?Gijs MozReview-Commit-ID: 3UmocajaSWJ
browser/modules/AsyncTabSwitcher.jsm
--- a/browser/modules/AsyncTabSwitcher.jsm
+++ b/browser/modules/AsyncTabSwitcher.jsm
@@ -249,17 +249,19 @@ class AsyncTabSwitcher {
 
     this.setTabStateNoAction(tab, state);
 
     let browser = tab.linkedBrowser;
     let { tabParent } = browser.frameLoader;
     if (state == this.STATE_LOADING) {
       this.assert(!this.minimizedOrFullyOccluded);
 
-      if (!this.tabbrowser.tabWarmingEnabled) {
+      // If we're not in the process of warming this tab, we
+      // don't need to delay activating its DocShell.
+      if (!this.warmingTabs.has(tab)) {
         browser.docShellIsActive = true;
       }
 
       if (tabParent) {
         browser.renderLayers = true;
       } else {
         this.onLayersReady(browser);
       }