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