зеркало из https://github.com/mozilla/gecko-dev.git
Bug 317839 r=beng (off by default) added hook for places system favicons
This commit is contained in:
Родитель
e7d03cba44
Коммит
0e0aaa79eb
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче