diff options
Diffstat (limited to 'testing/web-platform/tests/html/browsers/history/the-history-interface/resources/traverse-during-beforeunload.html')
-rw-r--r-- | testing/web-platform/tests/html/browsers/history/the-history-interface/resources/traverse-during-beforeunload.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/browsers/history/the-history-interface/resources/traverse-during-beforeunload.html b/testing/web-platform/tests/html/browsers/history/the-history-interface/resources/traverse-during-beforeunload.html new file mode 100644 index 0000000000..53a4a1886e --- /dev/null +++ b/testing/web-platform/tests/html/browsers/history/the-history-interface/resources/traverse-during-beforeunload.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<meta charset="utf-8"> + +<script> +"use strict"; + +window.addEventListener("beforeunload", () => { + history.back(); +}); + +location.href = "message-opener.sub.html?id=destination"; +</script> |