tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit df78708cfe80f11889c2913459c4f64c5610c578
parent a78d78d6ddd3a6b5971b5c09965098eab496573a
Author: Josh Matthews <josh@joshmatthews.net>
Date:   Tue, 21 Oct 2025 10:23:14 +0000

Bug 1994419 [wpt PR 55451] - script: Do not force push history handling., a=testonly

Automatic update from web-platform-tests
script: Do not force push history handling.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

--

wpt-commits: e11f5f353ec456aa838d776a395357180184afbc
wpt-pr: 55451

Diffstat:
Atesting/web-platform/tests/html/browsers/history/the-location-interface/location_replace_session_history.html | 19+++++++++++++++++++
Atesting/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe_location_replace.html | 13+++++++++++++
Atesting/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe_location_replace2.html | 13+++++++++++++
Atesting/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe_location_replace3.html | 6++++++
4 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/html/browsers/history/the-location-interface/location_replace_session_history.html b/testing/web-platform/tests/html/browsers/history/the-location-interface/location_replace_session_history.html @@ -0,0 +1,19 @@ +<!DOCTYPE HTML> +<html> + <head> + <title>location.replace replaces the active session history entry</title> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + </head> + <body> + <div id="log"></div> + <script> + var t = async_test(); + t.step(() => { + let i = document.createElement('iframe'); + i.src = "resources/iframe_location_replace.html"; + document.body.appendChild(i); + }); + </script> + </body> +</html> diff --git a/testing/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe_location_replace.html b/testing/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe_location_replace.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML>replace.html +<script> + let pageshowCount = 0; + onpageshow = parent.t.step_func(() => { + pageshowCount += 1; + if (pageshowCount == 2) { + location.replace("resources/iframe_location_replace3.html"); + } + }); + onload = parent.t.step_func(() => { + location.href = "resources/iframe_location_replace2.html"; + }); +</script> diff --git a/testing/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe_location_replace2.html b/testing/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe_location_replace2.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML>replace2.html +<script> + let pageshowCount = 0; + onpageshow = parent.t.step_func(() => { + pageshowCount += 1; + if (pageshowCount == 2) { + parent.t.done(); + } + }); + onload = parent.t.step_func(() => { + history.back(); + }); +</script> diff --git a/testing/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe_location_replace3.html b/testing/web-platform/tests/html/browsers/history/the-location-interface/resources/iframe_location_replace3.html @@ -0,0 +1,6 @@ +<!DOCTYPE HTML>replace3.html +<script> + onload = parent.t.step_func(() => { + history.forward(); + }); +</script>