<script>
  if (testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsText();
  }
  onload = () => {
    var frame = document.createElement("frame");
    document.body.appendChild(frame);
    iframe.appendChild(frame);
    requestAnimationFrame(() => {
	dialog.showModal();
	if (testRunner)
          testRunner.notifyDone();
    });
  };
</script>
<p>This test PASS if it does not CRASH.</p>
<dialog id="dialog" style="display: contents"><iframe id="iframe"><frame/></iframe>TEXT_CHILD</dialog>
