1 <p>This test checks for a crash when removing an iframe with scrollbars from a document. See
<rdar://problem/
5061807>.
</p>
2 <p>If the test passes, you'll see a PASS message below.
</p>
4 <pre id=
"console"></pre>
5 <iframe id=
"iframe" src=
"data:text/html,<body style='overflow-x: hidden'><div style='height:1000px'</body>" style=
"width:152px; height:300px"></iframe>
10 document
.getElementById("console").appendChild(document
.createTextNode(s
));
13 var iframe
= document
.getElementById("iframe");
15 function destroyIframe()
17 iframe
.parentNode
.removeChild(iframe
);
18 log("PASS: Yout didn't crash.");
19 testRunner
.notifyDone();
22 iframe
.onload = function() { setTimeout(destroyIframe
, 0); }
23 testRunner
.dumpAsText();
24 testRunner
.waitUntilDone();