From a2cae65b48248e2df78d69cf36fc3860edce96ea Mon Sep 17 00:00:00 2001 From: Jared Wein Date: Fri, 8 Sep 2017 14:59:22 -0400 Subject: [PATCH] Bug 1380150 - Prevent subresource loads from showing the progress indicator on the tab. r=Gijs MozReview-Commit-ID: JjZiHp2IXTC --HG-- extra : rebase_source : f819592c576fb2a5d832a36ce12315a54991f3d9 --- browser/base/content/tabbrowser.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 41bc36b301f5..d33eca9ee3cf 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -669,7 +669,7 @@ if (!this._shouldShowProgress(aRequest)) return; - if (this.mTotalProgress) + if (this.mTotalProgress && aWebProgress && aWebProgress.isTopLevel) this.mTab.setAttribute("progress", "true"); this._callProgressListeners("onProgressChange", @@ -756,7 +756,8 @@ } if (this._shouldShowProgress(aRequest)) { - if (!(aStateFlags & nsIWebProgressListener.STATE_RESTORING)) { + if (!(aStateFlags & nsIWebProgressListener.STATE_RESTORING) && + aWebProgress && aWebProgress.isTopLevel) { this.mTab.setAttribute("busy", "true"); this._syncThrobberAnimations(); }