chromium/third_party/blink/web_tests/fast/loader/detach-iframe-while-loading-javascript-url.html

<iframe id="i"></iframe>
<script>
if (window.testRunner) {
  testRunner.dumpAsText();
  testRunner.waitUntilDone();
}

var iframe = document.getElementById("i");
iframe.src = "javascript:" +
  "\"<script>" +
  // Stash the parent so we can use it after |window| is gone.
  "  var w = window.parent;" +
  // This detaches the |iframe|, which makes |window| null.
  "  window.parent.document.body.innerHTML = 'PASS if no crash.';" +
  // End the test through the parent.
  "  w.testRunner.notifyDone();" +
  "</" + "script>\"";
document.body.appendChild(iframe)
</script>