1
0
Fork 0
firefox/docshell/test/navigation/file_shiftReload_and_pushState.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

28 lines
685 B
HTML

<html>
<head>
<script>
function test() {
try {
frames[0].history.pushState({}, "state", "?pushed");
} catch (ex) {
opener.ok(false, "history.pushState shouldn't throw");
}
if (!opener.shiftReloadPushStateFirstRound) {
opener.shiftReloadPushStateFirstRound = true;
window.location.reload(true);
} else {
opener.ok(true, "Did run history.push");
opener.finishTest();
}
}
window.addEventListener("load", function() { setTimeout(test, 0); });
</script>
</head>
<body>
<iframe src="frame0.html"></iframe>
<script>
</script>
</body>
</html>