From 3569664f58489d5a01c5c9f242a4f3bee6bda9a1 Mon Sep 17 00:00:00 2001 From: "darin%netscape.com" Date: Thu, 14 Sep 2006 06:01:15 +0000 Subject: [PATCH] fixes bug 112366 "status message is often incorrect [eg. resolving host...]" r=jag, sr=alecf --- suite/browser/nsBrowserStatusHandler.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/suite/browser/nsBrowserStatusHandler.js b/suite/browser/nsBrowserStatusHandler.js index 171d681015be..7a11a0044249 100644 --- a/suite/browser/nsBrowserStatusHandler.js +++ b/suite/browser/nsBrowserStatusHandler.js @@ -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); } },