diff options
Diffstat (limited to 'Source/WebCore/manual-tests/quit-inside-unload.html')
-rw-r--r-- | Source/WebCore/manual-tests/quit-inside-unload.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/quit-inside-unload.html b/Source/WebCore/manual-tests/quit-inside-unload.html new file mode 100644 index 0000000..23ae71d --- /dev/null +++ b/Source/WebCore/manual-tests/quit-inside-unload.html @@ -0,0 +1,14 @@ +<script> + var showedAlert = false; + function handleUnload() + { + if (showedAlert) + return; + + showedAlert = true; + alert("Now Quit Safari. Do not dismiss this alert first."); + } +</script> +<body onunload="handleUnload()"> + Close this window +</body> |