blob: aa122cbc800ef54abf8767b6468e2dace59f9846 [file] [log] [blame]
<p>This test verifies that you don't crash when adding an iframe to the document
from another iframe's onload handler.
</p>
<hr>
<p>PASS: You didn't crash.</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function addFrame()
{
var iframe = document.createElement('iframe');
iframe.src = "about:blank";
document.body.appendChild(iframe);
}
</script>
<iframe src="about:blank" onload="addFrame()"></iframe>