blob: 37109feafe357711b7db172ca314a45e79674658 (
plain)
1
2
3
4
5
6
7
8
9
10
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>Beforeunload must be gated behind sticky activation: start page</title>
<p>This page will immediately navigate. If a beforeunload dialog pops up, the test fails.</p>
<script>
window.onbeforeunload = e => e.preventDefault();
location.href = 'beforeunload-sticky-destination.html';
</script>
|