blob: 87b746b06a0cd5eb84705f7863f315201d8fd8e0 [file] [log] [blame]
<html>
<body>
<p>Inner iframe on a foreign domain.</p>
<iframe id="aFrame"></iframe>
<script>
var url = "data:text/html,<html>"
+ "<body>"
+ "<p>Inner-inner iframe. This iframe (which is data: URL and whose parent is on a foreign domain) is the frame attempting to access"
+ " the main frame. It should not have access to it.</p>"
+ "<scr" + "ipt>"
+ "top.document.getElementById('accessMe').innerHTML = 'FAIL: Cross frame access from a data: URL on a different domain was allowed';"
+ "</scri" + "pt>"
+ "<iframe></iframe>" // Flag iframe
+ "</body>"
+ "</html>";
var frame = document.getElementById('aFrame');
frame.src = url;
</script>
</body>
</html>