diff --git a/suite/browser/navigator.js b/suite/browser/navigator.js index c259bc704271..37f892146a3a 100644 --- a/suite/browser/navigator.js +++ b/suite/browser/navigator.js @@ -1554,12 +1554,13 @@ function SetPageProxyState(aState, aURI) if (aState == "valid") { gLastValidURLStr = gURLBar.value; gURLBar.addEventListener("input", UpdatePageProxyState, false); - if (pref.getBoolPref("browser.chrome.site_icons") && aURI && "schemeIs" in aURI && (aURI.schemeIs("http") || aURI.schemeIs("https"))) { - var favurl = gBrowser.buildFavIconString(aURI); - if (favurl != gProxyFavIcon.src) { - gProxyFavIcon.setAttribute("src", favurl); + if (gBrowser.shouldLoadFavIcon(aURI)) { + var favStr = gBrowser.buildFavIconString(aURI); + if (favStr != gProxyFavIcon.src) { + gBrowser.loadFavIcon(aURI, "src", gProxyFavIcon); gProxyDeck.selectedIndex = 0; } + else gProxyDeck.selectedIndex = 1; } else { gProxyDeck.selectedIndex = 0; diff --git a/suite/browser/navigator.xul b/suite/browser/navigator.xul index 7ab21e80f4ff..27bcd569160a 100644 --- a/suite/browser/navigator.xul +++ b/suite/browser/navigator.xul @@ -184,7 +184,8 @@ Contributor(s): ______________________________________. --> ondraggesture="PageProxyDragGesture(event);"/> + onload="this.parentNode.selectedIndex = 1; event.stopPropagation(); event.preventBubble();" + onerror="gBrowser.addToMissedIconCache(this.src);"/>