1
0
Fork 0
firefox/docshell/test/navigation/test_bug145971.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

29 lines
648 B
HTML

<html>
<head>
<script>
let pass = false;
let initialLoad = false;
var bc = new BroadcastChannel("bug145971");
function checkNavigationTypeEquals2() {
if (performance.navigation.type == 2) {
pass = true;
}
testDone();
}
function testDone() {
bc.postMessage({result: pass});
bc.close();
window.close();
}
function test() {
window.onpageshow = checkNavigationTypeEquals2;
window.location.href = 'goback.html';
}
</script>
</head>
<body onload="setTimeout(test, 0);">
Testing bug 145971.
</body>
</html>