<html> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
window.onmessage = function(evt) | |
{ | |
if (evt.data == "setHistoryLength") { | |
setHistoryLength(); | |
return; | |
} else | |
alert("Unknown message."); | |
} | |
function setHistoryLength() | |
{ | |
alert("About to shadow child window's history object: " + window.history); | |
window.history = ""; | |
alert("Child window's history object should not be shadowed: " + window.history); | |
parent.window.postMessage("done", "*"); | |
} | |
</script> | |
<body> | |
HELLO THERE | |
</body> | |
</html> |