OLD | NEW |
(Empty) | |
| 1 <!-- One iframe's popstate handler removes another iframe from the |
| 2 document during a history navigation that affects both frames. The |
| 3 history navigation selects the same document in both frames. |
| 4 |
| 5 Should not crash. --> |
| 6 |
| 7 <script> |
| 8 if (window.testRunner) { |
| 9 testRunner.dumpAsText(); |
| 10 testRunner.waitUntilDone(); |
| 11 } |
| 12 |
| 13 window.onload = function () { |
| 14 frames[0].history.pushState("first", "first"); |
| 15 frames[0].onpopstate = function () { |
| 16 document.body.innerHTML = "PASS"; |
| 17 if (window.testRunner) |
| 18 testRunner.notifyDone(); |
| 19 }; |
| 20 frames[1].history.pushState("second", "second"); |
| 21 |
| 22 history.go(-2); |
| 23 } |
| 24 </script> |
| 25 |
| 26 <body> |
| 27 NOT TESTED |
| 28 <iframe src="resources/empty-subframe.html"></iframe> |
| 29 <iframe src="resources/empty-subframe.html"></iframe> |
| 30 </body> |
OLD | NEW |