diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index dd5e316f9b3..27ecb4e22fe 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -2252,19 +2252,6 @@ function SetPageProxyState(aState) function PageProxySetIcon (aURL) { -#ifdef MOZ_PLACES -/* - // Save this favicon in the favicon service - if (aURL) { - var faviconService = Components.classes["@mozilla.org/browser/favicon-service;1"]. - getService(Components.interfaces.nsIFaviconService); - var uri = Components.classes["@mozilla.org/network/io-service;1"] - .getService(Components.interfaces.nsIIOService).newURI(aURL, null, null); - faviconService.setAndLoadFaviconForPage(gBrowser.currentURI, uri, false); - } - */ -#endif - if (!gProxyFavIcon) return; @@ -3391,7 +3378,19 @@ nsBrowserStatusHandler.prototype = gBrowser.mCurrentBrowser == aBrowser && gBrowser.userTypedValue === null) { + // update the favicon in the URL bar PageProxySetIcon(aBrowser.mIconURL); + +#ifdef MOZ_PLACES + // Save this favicon in the favicon service + if (aBrowser.mIconURL) { + var faviconService = Components.classes["@mozilla.org/browser/favicon-service;1"]. + getService(Components.interfaces.nsIFaviconService); + var uri = Components.classes["@mozilla.org/network/io-service;1"] + .getService(Components.interfaces.nsIIOService).newURI(aBrowser.mIconURL, null, null); + faviconService.setAndLoadFaviconForPage(gBrowser.currentURI, uri, false); + } +#endif } },