Bug 1380150 - Prevent subresource loads from showing the progress indicator on the tab. r=Gijs

MozReview-Commit-ID: JjZiHp2IXTC

--HG--
extra : rebase_source : f819592c576fb2a5d832a36ce12315a54991f3d9
This commit is contained in:
Jared Wein 2017-09-08 14:59:22 -04:00
Родитель 26f88232ff
Коммит a2cae65b48
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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();
}