blob: 6134f48ef5011aa0c0de2642178e53ae9457e7b7 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
</head>
<body>
<script>
description("Tests that process swap on navigation does not break navigating back cross-origin a cross-origin window.");
jsTestIsAsync = true;
onload = function() {
w = window.open();
w.opener = null;
w.location = "http://localhost:8000/navigation/resources/navigate-back-same-origin-helper.html";
handle = setInterval(() => {
try {
if (w.location.href != "about:blank") {
clearInterval(handle);
shouldBeEqualToString("w.location.href", "http://127.0.0.1:8000/navigation/resources/otherpage.html");
finishJSTest();
}
} catch(e) {
}
}, 10);
}
</script>
</body>
</html>