blob: 1dab98a2c939696aa09710d4e43f61d67e4f8507 [file] [log] [blame]
<html>
<head>
<title>Multiple Back/Forward Entries</title>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.dumpBackForwardList();
layoutTestController.waitUntilDone();
}
function loadDone() {
if (window.layoutTestController)
layoutTestController.notifyDone();
}
</script>
</head>
<body>
This test creates an iFrame via document.write(), then immediately changes the source of that iframe while the main document is still being parsed. The src change should not result in a new back/forward list entry.<br>
<script>
document.write('<iframe id="frame" src="http://127.0.0.1:8000/navigation/resources/slow-resource.pl" width="500" height="500"></iframe>');
document.getElementById('frame').src = "http://127.0.0.1:8000/navigation/resources/slow-resource.pl";
setTimeout("loadDone();", 2000);
</script>
</body>
</html>