summaryrefslogtreecommitdiffstats
path: root/toolkit/components/places/tests/chrome
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /toolkit/components/places/tests/chrome
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/places/tests/chrome')
-rw-r--r--toolkit/components/places/tests/chrome/test_cached_favicon.xhtml15
1 files changed, 4 insertions, 11 deletions
diff --git a/toolkit/components/places/tests/chrome/test_cached_favicon.xhtml b/toolkit/components/places/tests/chrome/test_cached_favicon.xhtml
index f7e7f4f1d8..1046574bdf 100644
--- a/toolkit/components/places/tests/chrome/test_cached_favicon.xhtml
+++ b/toolkit/components/places/tests/chrome/test_cached_favicon.xhtml
@@ -104,19 +104,12 @@ function test()
// icon with a page explicitly in order for it to be visible through
// the protocol.
info("Replace favicon data");
- var systemPrincipal = Cc["@mozilla.org/systemprincipal;1"]
- .createInstance(Ci.nsIPrincipal);
- PlacesUtils.favicons.replaceFaviconDataFromDataURL(
- Services.io.newURI(tests[1].url),
- tests[1].expectedIcon,
- (Date.now() + 86400) * 1000,
- systemPrincipal);
- info("Set favicon data");
- PlacesUtils.favicons.setAndFetchFaviconForPage(
+ PlacesUtils.favicons.setFaviconForPage(
Services.io.newURI("https://example.com/favicon_annotations"),
Services.io.newURI(tests[1].url),
- true, PlacesUtils.favicons.FAVICON_LOAD_NON_PRIVATE, null,
- systemPrincipal);
+ Services.io.newURI(tests[1].expectedIcon),
+ (Date.now() + 86400) * 1000,
+ );
// And start our test process.
loadNextTest();