file_block_toplevel_data_navigation3.html (458B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Toplevel data navigation</title> 6 </head> 7 <body> 8 test3: performing data: URI navigation through win.loc.href<br/> 9 <script> 10 // postMessage will not be sent if data: URI is blocked 11 window.location.href = "data:text/html,<body><script>" + 12 "window.opener.postMessage('test3','*');<\/script>toplevel data: URI " + 13 "navigations should be blocked</body>"; 14 </script> 15 </body> 16 </html>