blob: d917b791f85eced3dc9e87c8e8189edffbfa5585 [file] [log] [blame]
<html>
<body>
<p>The scenario for this test is that you have an iframe with content from a foreign domain. In that foreign content
is an iframe which loads a javascript: URL. This tests that the javascript: URL loaded iframe does not have access
to the main frame using top.document.</p>
<iframe src="http://localhost:8000/security/javascriptURL/resources/foreign-domain-javascipt-url-accessor-iframe.html" style="width: 400px; height:200px;"></iframe>
<p id='accessMe'>Pass: Cross frame access from a javascript: URL on a different domain was denied.</p>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.dumpChildFramesAsText();
}
// FIXME: Add polling to make sure this works
</script>
</body>
</html>