diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /browser/components/preferences/tests/siteData | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/preferences/tests/siteData')
3 files changed, 3 insertions, 3 deletions
diff --git a/browser/components/preferences/tests/siteData/browser_clearSiteData.js b/browser/components/preferences/tests/siteData/browser_clearSiteData.js index ad1d27bfe2..7ae1fda453 100644 --- a/browser/components/preferences/tests/siteData/browser_clearSiteData.js +++ b/browser/components/preferences/tests/siteData/browser_clearSiteData.js @@ -137,7 +137,7 @@ async function testClearData(clearSiteData, clearCache) { let clearButton = dialogWin.document .querySelector("dialog") .getButton("accept"); - if (!clearSiteData && !clearCache) { + if (!clearSiteData && !clearCache && useOldClearHistoryDialog) { // Simulate user input on one of the checkboxes to trigger the event listener for // disabling the clearButton. clearCacheCheckbox.doCommand(); diff --git a/browser/components/preferences/tests/siteData/head.js b/browser/components/preferences/tests/siteData/head.js index 2b8a9984a6..6385013a52 100644 --- a/browser/components/preferences/tests/siteData/head.js +++ b/browser/components/preferences/tests/siteData/head.js @@ -52,7 +52,7 @@ function is_element_hidden(aElement, aMsg) { } function promiseLoadSubDialog(aURL) { - return new Promise((resolve, reject) => { + return new Promise(resolve => { content.gSubDialog._dialogStack.addEventListener( "dialogopen", function dialogopen(aEvent) { diff --git a/browser/components/preferences/tests/siteData/service_worker_test.html b/browser/components/preferences/tests/siteData/service_worker_test.html index 56f5173481..710b61090f 100644 --- a/browser/components/preferences/tests/siteData/service_worker_test.html +++ b/browser/components/preferences/tests/siteData/service_worker_test.html @@ -13,7 +13,7 @@ <h1>Service Worker Test</h1> <script type="text/javascript"> navigator.serviceWorker.register("service_worker_test.js") - .then(regis => document.body.setAttribute("data-test-service-worker-registered", "true")); + .then(() => document.body.setAttribute("data-test-service-worker-registered", "true")); </script> </body> </html> |