chromium/third_party/blink/web_tests/fast/events/resources/subframe-stop-load-in-unload-handler-using-document-write.html

<script>
    window.location = "pass.html";

    window.onunload = function()
    {
        document.write("document.write");
        setTimeout("parent.log('You wanted to go to: '+ location.href); parent.fail()", 500);
    }
</script>