blob: ded6352e28a9131e7b87db3f79ceae5f99d3d3c9 [file] [log] [blame]
<!-- Parent page -->
<script>
function clickLink() {
// Simulate a mouse click on a link targeting the child frame.
var evt = document.createEvent("MouseEvents");
evt.initMouseEvent("click", true, true, window,
0, 0, 0, 0, 0, false, false, false, false, 0, null);
document.getElementById("link").dispatchEvent(evt);
}
</script>
<!-- Child iframe -->
<iframe name="frame1" src="data:text/html,initial"></iframe>
<br>
<p>This test checks that the backForward list is not corrupted when a frame load is canceled.
<p>If testing manually, <a id="link" href="slow-resource.pl?delay=250" target="frame1">click here</a> and then Back. Then click Forward and quickly click Stop. Ensure that Back and Forward still work.