Bug 517896: Stop button does not show up on page loads, r=mfinkle
authorVivien Nicolas <21@vingtetun.org>
Mon, 21 Sep 2009 16:32:48 -0400
changeset 65584 6ca9357850929e6f9f5ee9a37e29c42fcbbd2b51
parent 65583 7bcec3ae8504754d379d237b69389bb22f3c1c59
child 65585 672a86922fac2a2c583f6388a1ac365b230a21b0
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs517896
Bug 517896: Stop button does not show up on page loads, r=mfinkle
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -210,16 +210,19 @@ var BrowserUI = {
       icons.setAttribute("mode", "edit");
       this._edit.defaultValue = this._edit.value;
 
       let urlString = this.getDisplayURI(Browser.selectedBrowser);
       if (urlString == "about:blank")
         urlString = "";
       this._edit.value = urlString;
     }
+    else if (!aEdit && Browser.selectedTab.isLoading() && icons.getAttribute("mode") != "loading") {
+      icons.setAttribute("mode", "loading");
+    }
     else if (!aEdit && icons.getAttribute("mode") != "view") {
       icons.setAttribute("mode", "view");
     }
   },
 
   _closeOrQuit: function _closeOrQuit() {
     // Close active dialog, if we have one. If not then close the application.
     let dialog = this.activeDialog;