fixes bug 112366 "status message is often incorrect [eg. resolving host...]"

r=jag, sr=alecf
This commit is contained in:
darin%netscape.com 2006-09-14 06:01:15 +00:00
parent 7c2419b8b1
commit 3569664f58

View File

@ -303,11 +303,14 @@ nsBrowserStatusHandler.prototype =
if (aStatus == NS_NET_STATUS_READ_FROM || aStatus == NS_NET_STATUS_WROTE_TO)
return;
this.status = aMessage;
if (!this.statusTimeoutInEffect) {
this.statusTimeoutInEffect = true;
this.status = aMessage;
this.updateStatusField();
setTimeout(function(aClosure) { aClosure.statusTimeoutInEffect = false; }, 400, this);
setTimeout(function(aClosure) { aClosure.updateStatusField();
aClosure.statusTimeoutInEffect = false; },
400, this);
}
},