chromium/third_party/blink/web_tests/http/tests/security/sandboxed-opener-can-close-window.html

<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.dumpChildFrames();
    testRunner.setPopupBlockingEnabled(false);
}
</script>
<p>To run this test outside of DumpRenderTree, please disable your popup blocker!</p>
<p>This test passes if it doesn't hang.</p>
<iframe sandbox="allow-scripts allow-popups"
  src="data:text/html,
       <body><script>
       var win = window.open('about:blank', '_blank');
       win.close();
       document.body.appendChild(
           document.createTextNode(win.closed ? 'PASS' : 'FAIL'));
       </script></body>"
  ></iframe>