diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
commit | da4c7e7ed675c3bf405668739c3012d140856109 (patch) | |
tree | cdd868dba063fecba609a1d819de271f0d51b23e /toolkit/components/shopping | |
parent | Adding upstream version 125.0.3. (diff) | |
download | firefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip |
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/shopping')
4 files changed, 8 insertions, 8 deletions
diff --git a/toolkit/components/shopping/content/ShoppingProduct.mjs b/toolkit/components/shopping/content/ShoppingProduct.mjs index d457ac1579..f3890a0d74 100644 --- a/toolkit/components/shopping/content/ShoppingProduct.mjs +++ b/toolkit/components/shopping/content/ShoppingProduct.mjs @@ -552,7 +552,7 @@ export class ShoppingProduct extends EventEmitter { false ); } - let abortHandler = e => { + let abortHandler = () => { Glean?.shoppingProduct?.requestAborted.record(); obliviousHttpChannel.cancel(Cr.NS_BINDING_ABORTED); }; diff --git a/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js b/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js index 1061cf7fa6..05426a08ff 100644 --- a/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js +++ b/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js @@ -16,7 +16,7 @@ function recommendedAdsEventListener(eventName, sidebar) { content.document.querySelector("shopping-container").wrappedJSObject; let adEl = shoppingContainer.recommendedAdEl; return ContentTaskUtils.waitForEvent(adEl, name, false, null, true).then( - ev => null + () => null ); } ); diff --git a/toolkit/components/shopping/test/browser/browser_shopping_sidebar_messages.js b/toolkit/components/shopping/test/browser/browser_shopping_sidebar_messages.js index 969b49481d..8cab6b49d8 100644 --- a/toolkit/components/shopping/test/browser/browser_shopping_sidebar_messages.js +++ b/toolkit/components/shopping/test/browser/browser_shopping_sidebar_messages.js @@ -33,7 +33,7 @@ add_task(async function test_sidebar_error() { await SpecialPowers.spawn( sidebar.querySelector("browser"), [], - async prodInfo => { + async () => { let doc = content.document; let shoppingContainer = doc.querySelector("shopping-container").wrappedJSObject; @@ -79,7 +79,7 @@ add_task(async function test_sidebar_analysis_status_page_not_supported() { await SpecialPowers.spawn( sidebar.querySelector("browser"), [], - async prodInfo => { + async () => { let doc = content.document; let shoppingContainer = doc.querySelector("shopping-container").wrappedJSObject; @@ -125,7 +125,7 @@ add_task(async function test_sidebar_analysis_status_unprocessable() { await SpecialPowers.spawn( sidebar.querySelector("browser"), [], - async prodInfo => { + async () => { let doc = content.document; let shoppingContainer = doc.querySelector("shopping-container").wrappedJSObject; @@ -174,7 +174,7 @@ add_task(async function test_sidebar_analysis_status_not_enough_reviews() { await SpecialPowers.spawn( sidebar.querySelector("browser"), [], - async prodInfo => { + async () => { let doc = content.document; let shoppingContainer = doc.querySelector("shopping-container").wrappedJSObject; diff --git a/toolkit/components/shopping/test/browser/head.js b/toolkit/components/shopping/test/browser/head.js index af676bbc33..f2b303ce12 100644 --- a/toolkit/components/shopping/test/browser/head.js +++ b/toolkit/components/shopping/test/browser/head.js @@ -46,7 +46,7 @@ async function promiseSidebarUpdated(sidebar, expectedProduct) { return !!e.detail.data && isProductCurrent(); }, true - ).then(e => true); + ).then(() => true); }); } @@ -65,7 +65,7 @@ async function promiseSidebarAdsUpdated(sidebar, expectedProduct) { true, null, true - ).then(e => true); + ).then(() => true); }); } |