From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- browser/components/distribution.sys.mjs | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'browser/components/distribution.sys.mjs') 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); -- cgit v1.2.3