Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
david-dick committed May 4, 2024
1 parent 029ff6d commit c8792fb
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions lib/Firefox/Marionette.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1897,18 +1897,27 @@ let bookmarkStatus = (async function(bookmarkArguments) {
let rIconUrl = netUtil.NetUtil.newURI(iconUrl);
if (bookmarkArguments["icon"]) {
let icon = bookmarkArguments["icon"];
placesUtils.PlacesUtils.favicons.replaceFaviconDataFromDataURL(
rIconUrl,
icon,
);
let iconResult = placesUtils.PlacesUtils.favicons.setAndFetchFaviconForPage(
if (placesUtils.PlacesUtils.favicons.setFaviconForPage) {
let iconDataUrl = netUtil.NetUtil.newURI(icon);
placesUtils.PlacesUtils.favicons.setFaviconForPage(
url,
rIconUrl,
iconDataUrl
);
} else {
placesUtils.PlacesUtils.favicons.replaceFaviconDataFromDataURL(
rIconUrl,
icon
);
let iconResult = placesUtils.PlacesUtils.favicons.setAndFetchFaviconForPage(
url,
rIconUrl,
false,
placesUtils.PlacesUtils.favicons.FAVICON_LOAD_NON_PRIVATE,
null,
Services.scriptSecurityManager.getSystemPrincipal()
);
}
} else {
let iconResult = placesUtils.PlacesUtils.favicons.setAndFetchFaviconForPage(
url,
Expand Down

0 comments on commit c8792fb

Please sign in to comment.