зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
26f88232ff
Коммит
a2cae65b48
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче