blob: 3a8f3232c5fa8455ecb53c4f95cddc43f3eac491 [file] [log] [blame]
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
function start() {
window.firstFrame = document.createElement('iframe');
document.body.appendChild(window.firstFrame);
window.secondFrame = document.createElement('iframe');
window.secondFrame.src = 'javascript:window.top.maybeStart();';
window.firstFrame.contentDocument.documentElement.appendChild(window.secondFrame);
}
function maybeStart() {
window.secondFrame.contentWindow.onunload = function() {
document.documentElement.removeChild(window.bodyEl);
};
window.firstFrame.src = 'javascript:"";';
console.log("PASS unless crash.");
}
</script>
<body id=bodyEl onload=start()></body>
</html>