| Index: LayoutTests/http/tests/history/cross-origin-redirect-on-back.html
|
| diff --git a/LayoutTests/http/tests/history/cross-origin-redirect-on-back.html b/LayoutTests/http/tests/history/cross-origin-redirect-on-back.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..30da4e4bbb57ddb05f3792a10573eb9fc70cf833
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/history/cross-origin-redirect-on-back.html
|
| @@ -0,0 +1,25 @@
|
| +<html>
|
| +<body>
|
| +<script>
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| +}
|
| +
|
| +window.onload = function() {
|
| + if (location.hash == "#back") {
|
| + document.body.appendChild(document.createTextNode("We pass if we don't crash."));
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + return;
|
| + }
|
| +
|
| + setTimeout(function() {
|
| + history.replaceState({}, "", "#back");
|
| + history.pushState({}, "", "http://127.0.0.1:8000/resources/redirect.php?url=http://localhost:8000/history/resources/back.html");
|
| + location = "http://127.0.0.1:8000/history/resources/back.html";
|
| + }, 0);
|
| +};
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|