blob: 35cece8d5318de3c9503a5832bdbcc0c8300ce9d [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpAsText();
var iframe = null;
function start() {
iframe = document.createElement('iframe');
iframe.setAttribute('marginwidth', 1);
document.body.appendChild(iframe);
var bodyInFrame = document.createElement('body');
bodyInFrame.addEventListener('DOMSubtreeModified', removeIframe);
iframe.contentDocument.documentElement.appendChild(bodyInFrame);
document.body.innerHTML = 'PASS if not crashed.';
}
function removeIframe() {
iframe.parentNode.removeChild(iframe);
iframe = null;
gc();
}
</script>
<body onload="start()">
</body>