mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
bfcfe34e57
Differential Revision: https://phabricator.services.mozilla.com/D39551 --HG-- extra : moz-landing-system : lando
29 lines
684 B
HTML
29 lines
684 B
HTML
<html>
|
|
<head>
|
|
<script>
|
|
let pass = false;
|
|
let initialLoad = false;
|
|
function checkNavigationTypeEquals2() {
|
|
if (performance.navigation.type == 2) {
|
|
pass = true;
|
|
}
|
|
testDone();
|
|
}
|
|
|
|
function testDone() {
|
|
opener.ok(pass, "Bug 145971: Navigation type does not equal 2 when restoring document from session history.");
|
|
opener.nextTest();
|
|
window.close();
|
|
}
|
|
|
|
function test() {
|
|
window.onpageshow = checkNavigationTypeEquals2;
|
|
window.location.href = 'goback.html';
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="setTimeout(test, 0);">
|
|
Testing bug 145971.
|
|
</body>
|
|
</html>
|