diff options
Diffstat (limited to 'toolkit/components/places/BookmarkHTMLUtils.sys.mjs')
-rw-r--r-- | toolkit/components/places/BookmarkHTMLUtils.sys.mjs | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/toolkit/components/places/BookmarkHTMLUtils.sys.mjs b/toolkit/components/places/BookmarkHTMLUtils.sys.mjs index 81bd791730..d619f9fed2 100644 --- a/toolkit/components/places/BookmarkHTMLUtils.sys.mjs +++ b/toolkit/components/places/BookmarkHTMLUtils.sys.mjs @@ -1082,21 +1082,11 @@ BookmarkExporter.prototype = { function insertFaviconForNode(node) { if (node.icon) { try { - // Create a fake faviconURI to use (FIXME: bug 523932) - let faviconURI = Services.io.newURI("fake-favicon-uri:" + node.url); - PlacesUtils.favicons.replaceFaviconDataFromDataURL( - faviconURI, - node.icon, - 0, - Services.scriptSecurityManager.getSystemPrincipal() - ); - PlacesUtils.favicons.setAndFetchFaviconForPage( + PlacesUtils.favicons.setFaviconForPage( Services.io.newURI(node.url), - faviconURI, - false, - PlacesUtils.favicons.FAVICON_LOAD_NON_PRIVATE, - null, - Services.scriptSecurityManager.getSystemPrincipal() + // Create a fake favicon URI to use (FIXME: bug 523932) + Services.io.newURI("fake-favicon-uri:" + node.url), + Services.io.newURI(node.icon) ); } catch (ex) { console.error("Failed to import favicon data:", ex); |