Bug 317839 r=beng (off by default) added hook for places system favicons

This commit is contained in:
brettw%gmail.com 2005-12-12 20:47:16 +00:00
Родитель e7d03cba44
Коммит 0e0aaa79eb
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -2208,6 +2208,17 @@ 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;