Bug 1367964 - Skip async tab switching blank tab optimization when the window is minimized. r?billm draft
authorMike Conley <mconley@mozilla.com>
Fri, 26 May 2017 13:28:58 -0400
changeset 585218 136cb7864ddde52365533258b01268081aa1314c
parent 585145 1bfa4578aa56f768626ba278a6929e23fc48db54
child 630671 248a202c34c7fcf205b8e9218ba3c5b68d4d6658
push id61053
push usermconley@mozilla.com
push dateFri, 26 May 2017 17:29:23 +0000
reviewersbillm
bugs1367964
milestone55.0a1
Bug 1367964 - Skip async tab switching blank tab optimization when the window is minimized. r?billm MozReview-Commit-ID: 676ruHBvFeY
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -4101,17 +4101,17 @@
               // tab instead and focusing it immediately.
               let shouldBeBlank = false;
               if (requestedBrowser.isRemoteBrowser) {
                 // If a tab is remote, we can show a blank tab instead of a
                 // spinner if we know it has never presented before, or if it
                 // has just crashed and we haven't started showing the tab crashed
                 // page yet.
                 let fl = requestedBrowser.frameLoader;
-                shouldBeBlank = (!fl.tabParent || !fl.tabParent.hasPresented);
+                shouldBeBlank = !this.minimized && (!fl.tabParent || !fl.tabParent.hasPresented);
               }
 
               this.log("Tab should be blank: " + shouldBeBlank);
               this.log("Requested tab is remote?: " + requestedBrowser.isRemoteBrowser);
 
               // Figure out which tab we actually want visible right now.
               let showTab = null;
               if (requestedTabState != this.STATE_LOADED &&