| Index: LayoutTests/fast/loader/remove-iframe-during-history-navigation-different.html
|
| diff --git a/LayoutTests/fast/loader/remove-iframe-during-history-navigation-different.html b/LayoutTests/fast/loader/remove-iframe-during-history-navigation-different.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a71d0794b7ff55ea5fa7d2d2db70702baaa3af8d
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/loader/remove-iframe-during-history-navigation-different.html
|
| @@ -0,0 +1,33 @@
|
| +<!-- One iframe's popstate handler removes another iframe from the
|
| + document during a history navigation that affects both frames. The
|
| + history navigation loads a different document in the other frame.
|
| +
|
| + Should not crash. -->
|
| +
|
| +<script>
|
| + if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + }
|
| +
|
| + window.onload = function () {
|
| + frames[0].history.pushState("first", "first");
|
| + frames[0].onpopstate = function () {
|
| + document.body.innerHTML = "PASS";
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + };
|
| + document.querySelectorAll("iframe")[1].onload = function () {
|
| + setTimeout("history.go(-2);", 10);
|
| + };
|
| + setTimeout(function () {
|
| + frames[1].location.href = "resources/empty-subframe.html?new";
|
| + }, 10);
|
| + }
|
| +</script>
|
| +
|
| +<body>
|
| + NOT TESTED
|
| + <iframe src="resources/empty-subframe.html"></iframe>
|
| + <iframe src="resources/empty-subframe.html"></iframe>
|
| +</body>
|
|
|