blob: 21699d13e3fc675b29843e068e320cb85940a9e5 [file] [log] [blame]
<html>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.onmessage = function(evt)
{
if (evt.data == "setHistoryLength") {
setHistoryLength();
return;
} else
alert("Unknown message.");
}
function setHistoryLength()
{
alert("Attempting to clear parent window's history object:");
try {
parent.window.history = "";
} catch (e) {
alert("PASS: access to parent.window.history threw an exception.");
}
parent.window.postMessage("done", "*");
}
</script>
<body>
HELLO THERE
</body>
</html>