| <!-- 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 id="frame1" name="frame1" src="about:blank"></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. |