Update WPT tests for embedded content
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / html / semantics / embedded-content / the-iframe-element / support / load-into-the-iframe.html
1
2 <!DOCTYPE html>
3 <html>
4   <head>
5     <meta charset="utf-8">
6   </head>
7   <body>
8     <iframe sandbox="allow-scripts"></iframe>
9     <script>
10       // We're the popup (i.e. a top frame).  Load into the iframe the page
11       // trying to modifying the top frame and transmit the result to our
12       // opener.
13       onmessage = function(e) {
14         opener.postMessage(e.data, "*")
15       }
16       document.querySelector("iframe").src = "iframe-that-performs-top-navigation-on-popup.html";
17     </script>
18   </body>
19 </html>