Bug 558764 - When there is no network, the throbber of about:home is spinning forever [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Tue, 13 Apr 2010 09:37:28 -0400
changeset 1474 8dd7baefd1097caf7fe0dfc188a0619a4ea14814
parent 1473 a221300fd1e5395c802a4044bd08bed32455a03b
child 1475 8a2a9932232adef82ad530fb982b34407249d765
push id1322
push usermfinkle@mozilla.com
push dateTue, 13 Apr 2010 13:37:39 +0000
reviewersmfinkle
bugs558764
Bug 558764 - When there is no network, the throbber of about:home is spinning forever [r=mfinkle]
chrome/content/aboutHome.xhtml
--- a/chrome/content/aboutHome.xhtml
+++ b/chrome/content/aboutHome.xhtml
@@ -244,17 +244,19 @@
           versionPart.className = "version";
           inner.appendChild(versionPart);
   
           outer.appendChild(inner);
           list.appendChild(outer);
         }
       },
     
-      searchFailed: function searchFailed() {}
+      searchFailed: function searchFailed() {
+        document.getElementById("newAddons").style.display = "none";
+      }
     }
 
     const kAddonsMaxDisplay = 2;
 
     function initAddons() {
       let repository = "@mozilla.org/extensions/addon-repository;1";
       let repo = Cc[repository].createInstance(Ci.nsIAddonRepository);
       if (repo.isSearching)