Sync web-platform-tests up to revision a5b95cb31914507088a4eda16f7674bbc6f3313f
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / html / webappapis / scripting / events / resources / compiled-event-handler-settings-objects-support.html
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>This will be in an iframe</title>
4
5 <script>
6 window.name = "iframe";
7 </script>
8
9 <body onbeforeunload="return { toString: parent.postMessage.bind(parent, 'PASS', '*') };">
10
11 <!--  window.open() uses the entry settings object to determine how the URL will be parsed  -->
12 <button onclick="var w = window.open('open-window.html'); w.onload = () => { parent.onWindowLoaded(w.document.URL); };">This will be clicked</button>