Upstream the iOS web_shell and supporting code
[chromium-blink-merge.git] / content / test / data / post_message2.html
blob2e0cfe5f32daac053c275f50008304ac35618254
1 <html>
3 <head><title>Post message subframe tests</title>
4 <script>
5 function postToOpenerFrame(msg, origin) {
6 window.opener.frames[0][1].postMessage(msg, origin);
7 return true;
10 window.addEventListener("message", messageReceived, false);
12 function messageReceived(event) {
13 // Change the title to generate a notification.
14 document.title = event.data;
16 </script>
17 </head>
19 <iframe id="frame1" src="frame_tree/1-1.html"></iframe>
21 </html>