blob: 7138489c26ed57143679e0beb4737fc7ae2ea55b [file] [log] [blame]
<html>
<body>
<p>Inner iframe on a foreign domain.</p>
<script>
var url = "data:text/html,<html>"
+ "<head>"
+ "<scr" + "ipt>"
+ "function loaded() {"
+ "window.parent.postMessage('run test', '*');"
+ "}"
+ "</scri" + "pt>"
+ "</head>"
+ "<body onload='loaded();'>"
+ "<p id='accessMe'>PASS: Cross frame access from a frame on a foreign domain denied!</p>"
+ "<p>Inner iframe. This iframe (which is data: URL and whose parent is on a foreign domain) is the frame that the"
+ " main frame is trying to access. It should not have access to it.</p>"
+ "</body>"
+ "</html>";
window.location = url;
</script>
</body>
</html>