Skip to content

Commit

Permalink
Fixes for the removal of setAndFetchFaviconForPage in https://bugzill…
Browse files Browse the repository at this point in the history
  • Loading branch information
david-dick committed Oct 13, 2024
1 parent 880b078 commit dd8f94b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/Firefox/Marionette.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2049,14 +2049,17 @@ let bookmarkStatus = (async function(bookmarkArguments) {
);
}
} else {
let iconResult = placesUtils.PlacesUtils.favicons.setAndFetchFaviconForPage(
url,
rIconUrl,
true,
placesUtils.PlacesUtils.favicons.FAVICON_LOAD_NON_PRIVATE,
null,
Services.scriptSecurityManager.getSystemPrincipal()
);
if (placesUtils.PlacesUtils.favicons.setFaviconForPage) {
} else if (placesUtils.PlacesUtils.favicons.setAndFetchFaviconForPage) {
let iconResult = placesUtils.PlacesUtils.favicons.setAndFetchFaviconForPage(
url,
rIconUrl,
true,
placesUtils.PlacesUtils.favicons.FAVICON_LOAD_NON_PRIVATE,
null,
Services.scriptSecurityManager.getSystemPrincipal()
);
}
}
}
return bookmark;
Expand Down

0 comments on commit dd8f94b

Please sign in to comment.