summaryrefslogtreecommitdiffstats
path: root/browser/components/distribution.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--browser/components/distribution.sys.mjs17
1 files changed, 3 insertions, 14 deletions
diff --git a/browser/components/distribution.sys.mjs b/browser/components/distribution.sys.mjs
index 369de15ab2..f58fd7a419 100644
--- a/browser/components/distribution.sys.mjs
+++ b/browser/components/distribution.sys.mjs
@@ -247,21 +247,10 @@ DistributionCustomizer.prototype = {
if (item.icon && item.iconData) {
try {
- let faviconURI = Services.io.newURI(item.icon);
- lazy.PlacesUtils.favicons.replaceFaviconDataFromDataURL(
- faviconURI,
- item.iconData,
- 0,
- Services.scriptSecurityManager.getSystemPrincipal()
- );
-
- lazy.PlacesUtils.favicons.setAndFetchFaviconForPage(
+ lazy.PlacesUtils.favicons.setFaviconForPage(
Services.io.newURI(item.link),
- faviconURI,
- false,
- lazy.PlacesUtils.favicons.FAVICON_LOAD_NON_PRIVATE,
- null,
- Services.scriptSecurityManager.getSystemPrincipal()
+ Services.io.newURI(item.icon),
+ Services.io.newURI(item.iconData)
);
} catch (e) {
console.error(e);