chromium/third_party/blink/web_tests/http/tests/security/XFrameOptions/x-frame-options-deny-delete-frame-in-load-event.html

<script>
    if (window.testRunner) {
        testRunner.dumpAsText();
        testRunner.waitUntilDone();
    }

    function loaded() {
        document.body.removeChild(document.getElementById("i"));
        if (window.testRunner)
            testRunner.notifyDone();
    }
</script>
Test that if an iframe is denied, we don't crash if the load event detaches the frame.
<iframe id="i" src="http://127.0.0.1:8000/security/XFrameOptions/resources/x-frame-options-deny.cgi" onload="loaded()"></iframe>