chromium/third_party/blink/web_tests/http/tests/navigation/resources/image-load-in-subframe-pagehide-handler-helper.html

<!DOCTYPE html>
<html>
<body>
<script>
    function imageLoad() {
        var img = new Image(1, 1);
        // We're using a redirect here because it guarantees that if we're
        // receiving callbacks in a detached Frame, we'll acceess members
        // that are now invalid (e.g., DocumentLoaders).
        img.src = "redirect302.pl";
        document.getElementsByTagName("body")[0].appendChild(img);
        window.top.finish();
    }
</script>
<iframe src="subframe-with-pagehide-handler-in-parent.html">
</body>
</html>