<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>
