New window with beforeUnload handler.
You should see "beforeUnload" in the console log if you try to close the window.