blob: ffb7fe2f61c29c87ea641f8b74bf288673f53d9a [file] [log] [blame]
<html>
<body>
<p>Inner iframe on a foreign domain.</p>
<iframe id="aFrame" name="aFrame"></iframe>
<script>
var url = "javascript:\"<html>"
+ "<head>"
+ "<scr" + "ipt>"
+ "window.onload = function()"
+ "{"
+ "try {"
+ "top.document.getElementById('accessMe').innerHTML = 'FAIL: Cross frame access from a javascript: URL on a different domain was allowed';"
+ "} catch (e) {"
+ "console.log(e);"
+ "}"
+ "if (window.testRunner)"
+ "testRunner.notifyDone();"
+ "}"
+ "</scr" + "ipt>"
+ "</head>"
+ "<body>"
+ "<p>Inner-inner iframe. This iframe (which is javascript: 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>"
+ "</body>"
+ "</html>\"";
var frame = document.getElementById('aFrame');
frame.src = url;
</script>
</body>
</html>