summaryrefslogtreecommitdiffstats
path: root/toolkit/components/thumbnails
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /toolkit/components/thumbnails
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/thumbnails')
-rw-r--r--toolkit/components/thumbnails/BackgroundPageThumbs.sys.mjs4
-rw-r--r--toolkit/components/thumbnails/PageThumbs.sys.mjs4
-rw-r--r--toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js2
-rw-r--r--toolkit/components/thumbnails/test/browser_thumbnails_bug727765.js2
-rw-r--r--toolkit/components/thumbnails/test/browser_thumbnails_bug818225.js2
-rw-r--r--toolkit/components/thumbnails/test/browser_thumbnails_redirect.js4
-rw-r--r--toolkit/components/thumbnails/test/browser_thumbnails_storage.js2
-rw-r--r--toolkit/components/thumbnails/test/browser_thumbnails_update.js8
8 files changed, 14 insertions, 14 deletions
diff --git a/toolkit/components/thumbnails/BackgroundPageThumbs.sys.mjs b/toolkit/components/thumbnails/BackgroundPageThumbs.sys.mjs
index 8467653acb..3040adc6a1 100644
--- a/toolkit/components/thumbnails/BackgroundPageThumbs.sys.mjs
+++ b/toolkit/components/thumbnails/BackgroundPageThumbs.sys.mjs
@@ -219,7 +219,7 @@ export const BackgroundPageThumbs = {
"nsISupportsWeakReference",
]),
};
- this._listener.onStateChange = (wbp, request, stateFlags, status) => {
+ this._listener.onStateChange = (wbp, request, stateFlags) => {
if (!request) {
return;
}
@@ -591,7 +591,7 @@ Capture.prototype = {
this._done(browser, null, TEL_CAPTURE_DONE_BAD_URI);
}
},
- failure => {
+ () => {
// The query can fail when a crash occurs while loading. The error causes
// thumbnail crash tests to fail with an uninteresting error message.
}
diff --git a/toolkit/components/thumbnails/PageThumbs.sys.mjs b/toolkit/components/thumbnails/PageThumbs.sys.mjs
index 4d103c8bd8..da7e187d85 100644
--- a/toolkit/components/thumbnails/PageThumbs.sys.mjs
+++ b/toolkit/components/thumbnails/PageThumbs.sys.mjs
@@ -262,7 +262,7 @@ export var PageThumbs = {
aBrowser.browsingContext.currentWindowGlobal.getActor("Thumbnails");
return thumbnailsActor
.sendQuery("Browser:Thumbnail:CheckState")
- .catch(err => {
+ .catch(() => {
return false;
});
}
@@ -835,7 +835,7 @@ export var PageThumbsExpiration = {
}
},
- notify: function Expiration_notify(aTimer) {
+ notify: function Expiration_notify() {
let urls = [];
let filtersToWaitFor = this._filters.length;
diff --git a/toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js b/toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js
index 15cf4d7067..b3b4c1f305 100644
--- a/toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js
+++ b/toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js
@@ -3,7 +3,7 @@
add_task(async function thumbnails_bg_captureIfMissing() {
let numNotifications = 0;
- function observe(subject, topic, data) {
+ function observe(subject, topic) {
is(topic, "page-thumbnail:create", "got expected topic");
numNotifications += 1;
}
diff --git a/toolkit/components/thumbnails/test/browser_thumbnails_bug727765.js b/toolkit/components/thumbnails/test/browser_thumbnails_bug727765.js
index 8e953e0ffa..d4dd7caca7 100644
--- a/toolkit/components/thumbnails/test/browser_thumbnails_bug727765.js
+++ b/toolkit/components/thumbnails/test/browser_thumbnails_bug727765.js
@@ -21,7 +21,7 @@ add_task(async function thumbnails_bg_bug727765() {
gBrowser,
url: URL,
},
- async browser => {
+ async () => {
await captureAndCheckColor(255, 0, 0, "we have a red thumbnail");
// Check the thumbnail color of the bottom right pixel.
diff --git a/toolkit/components/thumbnails/test/browser_thumbnails_bug818225.js b/toolkit/components/thumbnails/test/browser_thumbnails_bug818225.js
index 5f557c40a4..37f9b2f7d7 100644
--- a/toolkit/components/thumbnails/test/browser_thumbnails_bug818225.js
+++ b/toolkit/components/thumbnails/test/browser_thumbnails_bug818225.js
@@ -17,7 +17,7 @@ add_task(async function thumbnails_bg_bug818225() {
gBrowser,
url: URL,
},
- async browser => {
+ async () => {
gBrowserThumbnails.clearTopSiteURLCache();
await whenFileExists(URL);
}
diff --git a/toolkit/components/thumbnails/test/browser_thumbnails_redirect.js b/toolkit/components/thumbnails/test/browser_thumbnails_redirect.js
index b77b4011c3..ba06b9e779 100644
--- a/toolkit/components/thumbnails/test/browser_thumbnails_redirect.js
+++ b/toolkit/components/thumbnails/test/browser_thumbnails_redirect.js
@@ -21,7 +21,7 @@ add_task(async function thumbnails_redirect() {
gBrowser,
url: URL,
},
- browser => {}
+ () => {}
);
// Create a tab, redirecting to a page with a red background.
@@ -30,7 +30,7 @@ add_task(async function thumbnails_redirect() {
gBrowser,
url: URL,
},
- async browser => {
+ async () => {
await captureAndCheckColor(255, 0, 0, "we have a red thumbnail");
// Wait until the referrer's thumbnail's file has been written.
diff --git a/toolkit/components/thumbnails/test/browser_thumbnails_storage.js b/toolkit/components/thumbnails/test/browser_thumbnails_storage.js
index 6a9f1ed3f6..39d26897a2 100644
--- a/toolkit/components/thumbnails/test/browser_thumbnails_storage.js
+++ b/toolkit/components/thumbnails/test/browser_thumbnails_storage.js
@@ -89,7 +89,7 @@ async function promiseCreateThumbnail() {
gBrowser,
url: URL,
},
- async browser => {
+ async () => {
gBrowserThumbnails.clearTopSiteURLCache();
await whenFileExists(URL);
}
diff --git a/toolkit/components/thumbnails/test/browser_thumbnails_update.js b/toolkit/components/thumbnails/test/browser_thumbnails_update.js
index 004df9a01f..7a00717e2f 100644
--- a/toolkit/components/thumbnails/test/browser_thumbnails_update.js
+++ b/toolkit/components/thumbnails/test/browser_thumbnails_update.js
@@ -163,7 +163,7 @@ add_task(async function thumbnails_captureAndStore_error_response() {
gBrowser,
url: URL,
},
- async browser => {
+ async () => {
await captureAndCheckColor(0, 255, 0, "we have a green thumbnail");
}
);
@@ -176,7 +176,7 @@ add_task(async function thumbnails_captureAndStore_error_response() {
gBrowser,
url: URL,
},
- async browser => {
+ async () => {
await captureAndCheckColor(0, 255, 0, "we still have a green thumbnail");
}
);
@@ -195,7 +195,7 @@ add_task(async function thumbnails_captureAndStore_ok_response() {
gBrowser,
url: URL,
},
- async browser => {
+ async () => {
await captureAndCheckColor(0, 255, 0, "we have a green thumbnail");
}
);
@@ -208,7 +208,7 @@ add_task(async function thumbnails_captureAndStore_ok_response() {
gBrowser,
url: URL,
},
- async browser => {
+ async () => {
await captureAndCheckColor(255, 0, 0, "we now have a red thumbnail");
}
);