From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- docshell/test/navigation/file_bug1326251.html | 4 ++-- docshell/test/navigation/file_bug1375833.html | 2 +- docshell/test/navigation/file_bug1609475.html | 2 +- .../test/navigation/file_scrollRestoration_part3_nobfcache.html | 2 +- docshell/test/navigation/file_session_history_on_redirect.html | 2 +- docshell/test/navigation/file_session_history_on_redirect_2.html | 2 +- docshell/test/navigation/mochitest.toml | 7 +++++-- docshell/test/navigation/test_blockBFCache.html | 6 +++--- docshell/test/navigation/test_bug13871.html | 2 +- docshell/test/navigation/test_bug1699721.html | 4 ++-- docshell/test/navigation/test_contentpolicy_block_window.html | 2 +- docshell/test/navigation/test_load_history_entry.html | 2 +- 12 files changed, 20 insertions(+), 17 deletions(-) (limited to 'docshell/test/navigation') diff --git a/docshell/test/navigation/file_bug1326251.html b/docshell/test/navigation/file_bug1326251.html index 57a81f46f1..35645d031e 100644 --- a/docshell/test/navigation/file_bug1326251.html +++ b/docshell/test/navigation/file_bug1326251.html @@ -171,9 +171,9 @@ ]; function awaitOnload(frame, occurances = 1) { - return new Promise(function(resolve, reject) { + return new Promise(function(resolve) { let count = 0; - frame.addEventListener("load", function listener(e) { + frame.addEventListener("load", function listener() { if (++count == occurances) { frame.removeEventListener("load", listener); setTimeout(resolve, 0); diff --git a/docshell/test/navigation/file_bug1375833.html b/docshell/test/navigation/file_bug1375833.html index 373a7fe08e..6d39f30281 100644 --- a/docshell/test/navigation/file_bug1375833.html +++ b/docshell/test/navigation/file_bug1375833.html @@ -10,7 +10,7 @@ function test() { let iframe = document.querySelector("#testFrame"); setTimeout(function() { iframe.src = "file_bug1375833-frame1.html"; }, 0); - iframe.onload = function(e) { + iframe.onload = function() { setTimeout(function() { iframe.src = "file_bug1375833-frame2.html"; }, 0); iframe.onload = function() { opener.postMessage(iframe.contentWindow.location.href, "*"); diff --git a/docshell/test/navigation/file_bug1609475.html b/docshell/test/navigation/file_bug1609475.html index 7699d46b08..fd2a061e88 100644 --- a/docshell/test/navigation/file_bug1609475.html +++ b/docshell/test/navigation/file_bug1609475.html @@ -3,7 +3,7 @@ diff --git a/docshell/test/navigation/file_session_history_on_redirect_2.html b/docshell/test/navigation/file_session_history_on_redirect_2.html index df7e99a1dd..e7dce7c4a1 100644 --- a/docshell/test/navigation/file_session_history_on_redirect_2.html +++ b/docshell/test/navigation/file_session_history_on_redirect_2.html @@ -6,7 +6,7 @@ opener.is(event.persisted, false, "Should have disabled bfcache for this test."); } - window.onpageshow = function(event) { + window.onpageshow = function() { opener.pageshow(); } diff --git a/docshell/test/navigation/mochitest.toml b/docshell/test/navigation/mochitest.toml index ce0fa0d18f..811ad7c89d 100644 --- a/docshell/test/navigation/mochitest.toml +++ b/docshell/test/navigation/mochitest.toml @@ -132,7 +132,10 @@ skip-if = ["os == 'android'"] ["test_bug430723.html"] skip-if = [ - "!debug && (os == 'mac' || os == 'win')", # Bug 874423 + "win10_2009 && !debug", # Bug 874423 + "win11_2009 && !debug", # Bug 874423 + "apple_silicon && !debug", # Bug 874423 + "apple_catalina && !debug", # Bug 874423 "http3", "http2", ] @@ -284,7 +287,7 @@ support-files = ["file_same_url.html"] ["test_session_history_on_redirect.html"] ["test_sessionhistory.html"] -skip-if = ["verify && os == 'mac' && debug"] # Hit MOZ_CRASH(Shutdown too long, probably frozen, causing a crash.) bug 1677545 +skip-if = ["os == 'mac' && debug && verify"] # Hit MOZ_CRASH(Shutdown too long, probably frozen, causing a crash.) bug 1677545 ["test_sessionhistory_document_write.html"] diff --git a/docshell/test/navigation/test_blockBFCache.html b/docshell/test/navigation/test_blockBFCache.html index 5cfbdb38f7..c8f3ccc2e4 100644 --- a/docshell/test/navigation/test_blockBFCache.html +++ b/docshell/test/navigation/test_blockBFCache.html @@ -164,7 +164,7 @@ function executeTest() { let bc = new BroadcastChannel("bfcache_blocking"); function promiseMessage(type) { - return new Promise((resolve, reject) => { + return new Promise((resolve) => { bc.addEventListener("message", (e) => { if (e.data.type == type) { resolve(e.data); @@ -177,11 +177,11 @@ function executeTest() { return promiseMessage("pageshow").then(data => data.persisted == shouldBePersisted); } - function promisePageShowFromBFCache(e) { + function promisePageShowFromBFCache() { return promisePageShow(true); } - function promisePageShowNotFromBFCache(e) { + function promisePageShowNotFromBFCache() { return promisePageShow(false); } diff --git a/docshell/test/navigation/test_bug13871.html b/docshell/test/navigation/test_bug13871.html index 0532bc7b56..b3d1f3b05d 100644 --- a/docshell/test/navigation/test_bug13871.html +++ b/docshell/test/navigation/test_bug13871.html @@ -57,7 +57,7 @@ var window2 = window.open("http://test1.example.org:80/tests/docshell/test/navig var window3 = window.open("http://test1.example.org:80/tests/docshell/test/navigation/parent.html", "window3", "width=10,height=10"); function waitForLoad(w) { - return new Promise(function(resolve, reject) { + return new Promise(function(resolve) { // If we already got the "ready" message, resolve immediately. if (windows.has(w)) { resolve(); diff --git a/docshell/test/navigation/test_bug1699721.html b/docshell/test/navigation/test_bug1699721.html index c6ae8e88d3..92642ac886 100644 --- a/docshell/test/navigation/test_bug1699721.html +++ b/docshell/test/navigation/test_bug1699721.html @@ -52,7 +52,7 @@ info("wait for message from popup"); let messagePromise = new Promise(resolve => { - addEventListener("message", evt => { + addEventListener("message", () => { resolve(); }, { once: true }); }); @@ -93,7 +93,7 @@ }); let messagePromise2 = new Promise(resolve => { - addEventListener("message", evt => { + addEventListener("message", () => { resolve(); }, { once: true }); }); diff --git a/docshell/test/navigation/test_contentpolicy_block_window.html b/docshell/test/navigation/test_contentpolicy_block_window.html index 7dc73e8574..96d98d8308 100644 --- a/docshell/test/navigation/test_contentpolicy_block_window.html +++ b/docshell/test/navigation/test_contentpolicy_block_window.html @@ -78,7 +78,7 @@ var policy = { return Ci.nsIContentPolicy.REJECT_REQUEST; }, - shouldProcess(contentLocation, loadInfo) { + shouldProcess() { return Ci.nsIContentPolicy.ACCEPT; }, }; diff --git a/docshell/test/navigation/test_load_history_entry.html b/docshell/test/navigation/test_load_history_entry.html index 8ca3fcb913..64aad33818 100644 --- a/docshell/test/navigation/test_load_history_entry.html +++ b/docshell/test/navigation/test_load_history_entry.html @@ -163,7 +163,7 @@ async function waitForPopstate(win) { return new Promise(resolve => { - win.addEventListener("popstate", (e) => { + win.addEventListener("popstate", () => { setTimeout(resolve, 0); }, {once: true}); }); -- cgit v1.2.3