chromium/third_party/blink/renderer/core/testing/data/add_frame_in_unload.html

<!DOCTYPE html>
<html>
<script>
function handleUnload()
{
    var iframe = document.createElement('iframe');
    iframe.src = 'about:blank';
    document.body.appendChild(iframe);
}
</script>
<body onunload="handleUnload()">
</body>
</html>