Bug 1367964 - Skip async tab switching blank tab optimization when the window is minimized. r?billm
MozReview-Commit-ID: 676ruHBvFeY
--- 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 &&