summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/browsing-the-web/unloading-documents/support/beforeunload-sticky-destination.html
blob: 2edcf1a43bf5273a53b2f15577cabb3c28c2e99c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<meta charset="utf-8">
<title>Beforeunload must be gated behind sticky activation: destination page</title>

<p>If you reached this page without clicking through a confirmation dialog, then the test has passed!

<script>
if (window.opener) {
  window.opener.postMessage('navigated successfully');
} else if (window.parent) {
  window.parent.postMessage('navigated successfully');
}
</script>