blob: f3c004707f39063b248fc39fbbea9b300deec4f4 [file] [log] [blame]
<html>
<head>
<script src="resources/document-location.js"></script>
<script type="text/javascript">
layoutTestController.dumpBackForwardList();
layoutTestController.dumpAsText();
var myFrame;
function myCallbackFunction() {
myFrame.src = '#';
}
</script>
</head>
<body>
<p>This test verifies that setting the iframe.src through javascript to # does not add a history item. If the test passes you'll see only one history item.</p>
<script type="text/javascript">
myFrame = document.createElement("iframe");
myFrame.src = "javascript:document.write('<script type=text/javascript>window.parent.myCallbackFunction();<\/script>');";
document.body.appendChild(myFrame);
</script>
</body>
</html>