From a90a5cba08fdf6c0ceb95101c275108a152a3aed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:37 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- services/sync/tests/unit/test_bookmark_tracker.js | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'services/sync/tests') diff --git a/services/sync/tests/unit/test_bookmark_tracker.js b/services/sync/tests/unit/test_bookmark_tracker.js index 6084e48ebd..c47b573e7e 100644 --- a/services/sync/tests/unit/test_bookmark_tracker.js +++ b/services/sync/tests/unit/test_bookmark_tracker.js @@ -764,26 +764,7 @@ add_task(async function test_onFaviconChanged() { let iconURL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAA" + "AAAA6fptVAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg=="; - - PlacesUtils.favicons.replaceFaviconDataFromDataURL( - iconURI, - iconURL, - 0, - Services.scriptSecurityManager.getSystemPrincipal() - ); - - await new Promise(resolve => { - PlacesUtils.favicons.setAndFetchFaviconForPage( - pageURI, - iconURI, - true, - PlacesUtils.favicons.FAVICON_LOAD_NON_PRIVATE, - () => { - resolve(); - }, - Services.scriptSecurityManager.getSystemPrincipal() - ); - }); + await PlacesTestUtils.setFaviconForPage(pageURI, iconURI, iconURL); await verifyTrackedItems([]); Assert.equal(tracker.score, 0); } finally { -- cgit v1.2.3