blob: ff37a5529b478ec3a1b93a2bc4683b21db765440 [file] [log] [blame]
<head>
<script>
function test() {
var xhr = new XMLHttpRequest;
xhr.open("GET", "detached-frame.html");
xhr.send();
window.parent.childDocument = document; // GC protect
xhr.onreadystatechange = function() {
if (xhr.readyState == xhr.DONE) {
var parentWindow = window.parent;
parentWindow.document.body.removeChild(parentWindow.document.getElementsByTagName("iframe")[0]);
parentWindow.document.body.innerHTML += "<p>PASS: No crash.</p>";
if (parentWindow.testRunner)
parentWindow.testRunner.notifyDone();
}
}
}
</script>
</head>
<body onload="test()">
</body>