Bug 709182 - 'Connecting...' in tab title when reloading is unnecessary visual noise. r=ttaubert r=dao
authorJared Wein <jwein@mozilla.com>
Wed, 15 Feb 2012 17:15:42 -0800
changeset 89851 f2267cb4330f27bec010decc38bd19e7e4b48a3e
parent 89850 ec0c67eda91eb2964ad595cac14d7f62ccec0aca
child 89852 6989376471f7deb2579f360cce19d883130f2532
push idunknown
push userunknown
push dateunknown
reviewersttaubert, dao
bugs709182
milestone13.0a1
Bug 709182 - 'Connecting...' in tab title when reloading is unnecessary visual noise. r=ttaubert r=dao
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -531,17 +531,18 @@
                 // cancelled a pending load which would have cleared
                 // its anchor scroll detection temporary increment.
                 if (aWebProgress.DOMWindow == this.mBrowser.contentWindow)
                   this.mBrowser.userTypedClear += 2;
 
                 if (!this.mBlank) {
                   if (!(aStateFlags & nsIWebProgressListener.STATE_RESTORING)) {
                     this.mTab.setAttribute("busy", "true");
-                    this.mTabBrowser.setTabTitleLoading(this.mTab);
+                    if (!(this.mBrowser.docShell.loadType & Ci.nsIDocShell.LOAD_CMD_RELOAD))
+                      this.mTabBrowser.setTabTitleLoading(this.mTab);
                   }
 
                   if (this.mTab.selected)
                     this.mTabBrowser.mIsBusy = true;
                 }
               }
               else if (aStateFlags & nsIWebProgressListener.STATE_STOP &&
                        aStateFlags & nsIWebProgressListener.STATE_IS_NETWORK) {