blob: 7e83528d10b1a64ad59457ef646d0430f83d8787 [file] [log] [blame]
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.onmessage = function(evt)
{
if (evt.data != "done") {
alert("Unexpected message: " + evt.data);
testRunner.notifyDone();
return;
}
alert("Child window's history object after attempt to clear: " + window.frames[0].history);
testRunner.notifyDone();
}
function setHistoryLength()
{
alert("Child window's history object before attempt to clear: " + window.frames[0].history);
window.frames[0].postMessage("setHistoryLength", "*");
}
</script>
</head>
<body onload="setHistoryLength();">
<iframe id='testFrame' src="http://localhost:8000/history/resources/cross-origin-replaces-history-object-child-iframe.html"></iframe>
</body>
</html>