Bug 517896: Stop button does not show up on page loads [r=mark.finkle]
authorVivien Nicolas <21@vingtetun.org>
Mon, 21 Sep 2009 12:32:50 -0400
changeset 65582 a711dc4304cda7c82af414345b084ce139d5df76
parent 65581 c3c86405a72354b21c528673c9e31b948e74774d
child 65583 7bcec3ae8504754d379d237b69389bb22f3c1c59
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)
reviewersmark
bugs517896
Bug 517896: Stop button does not show up on page loads [r=mark.finkle]
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -403,28 +403,28 @@ var BrowserUI = {
     let icons = document.getElementById("urlbar-icons");
 
     // Use documentURIObject in the favicon construction so that we
     // do the right thing with about:-style error pages.  Bug 515188
     let uri = Browser.selectedBrowser.contentDocument.documentURIObject;
 
     switch (aState) {
       case TOOLBARSTATE_LOADED:
-        if (icons.getAttribute("mode" != "edit"))
+        if (icons.getAttribute("mode") != "edit")
           icons.setAttribute("mode", "view");
         
         if (!this._faviconLink)
           this._faviconLink = uri.prePath + "/favicon.ico";
         this._setIcon(this._faviconLink);
         this.updateIcon();
         this._faviconLink = null;
         break;
 
       case TOOLBARSTATE_LOADING:
-        if (icons.getAttribute("mode" != "edit"))
+        if (icons.getAttribute("mode") != "edit")
           icons.setAttribute("mode", "loading");
 
         this._favicon.src = "";
         this._faviconLink = null;
         this.updateIcon();
         break;
     }
   },