Bug 629969 - Don't show status messages for XHR requests. r=jag/gavin
authorDão Gottwald <dao@mozilla.com>
Mon, 31 Jan 2011 07:27:03 +0100
changeset 61645 4a05e5eaca001c59cfcbb0b1524ea528ae702ae6
parent 61644 ee7c16ea0e606be5e37a17b5d137270953ff17c1
child 61646 688eccc5d20e5496e743f5ff098dd776bbcdf6b8
push idunknown
push userunknown
push dateunknown
reviewersjag, gavin
bugs629969
milestone2.0b11pre
Bug 629969 - Don't show status messages for XHR requests. r=jag/gavin
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -4077,17 +4077,21 @@ var XULBrowserWindow = {
       // (RFC 3987 sections 3.2 and 4.1 paragraph 6)
       url = url.replace(/[\u200e\u200f\u202a\u202b\u202c\u202d\u202e]/g,
                         encodeURIComponent);
       gURLBar.setOverLink(url);
     }
   }, 
 
   updateStatusField: function () {
-    var text = this.status || this.jsStatus || this.jsDefaultStatus || this.defaultStatus;
+    var text;
+    if (this._busyUI)
+      text = this.status;
+    if (!text)
+      text = this.jsStatus || this.jsDefaultStatus || this.defaultStatus;
 
     // check the current value so we don't trigger an attribute change
     // and cause needless (slow!) UI updates
     if (this.statusText != text) {
       this.statusTextField.label = text;
       this.statusText = text;
     }
   },