Bug 331938: make sure to set at least the visual transfer status of a new blank tab, patch by Simon Bünzli <zeniko@gmail.com>, r=mconnor

This commit is contained in:
gavin@gavinsharp.com 2007-08-21 22:01:19 -07:00
parent da4e0293be
commit b8d8ea7936

View File

@ -357,11 +357,14 @@
this.mTabBrowser.mIsBusy = false; this.mTabBrowser.mIsBusy = false;
} }
if (!oldBlank && this.mTabBrowser.mCurrentTab == this.mTab) { if (this.mTabBrowser.mCurrentTab == this.mTab) {
for (var i = 0; i < this.mTabBrowser.mProgressListeners.length; i++) { for (var i = 0; i < this.mTabBrowser.mProgressListeners.length; i++) {
var p = this.mTabBrowser.mProgressListeners[i]; var p = this.mTabBrowser.mProgressListeners[i];
if (p) if (p && !oldBlank)
p.onStateChange(aWebProgress, aRequest, aStateFlags, aStatus); p.onStateChange(aWebProgress, aRequest, aStateFlags, aStatus);
// make sure that the visible status of new blank tabs is correctly set
else if (p && "onUpdateCurrentBrowser" in p)
p.onUpdateCurrentBrowser(aStateFlags, aStatus, "", 0);
} }
} }