blob: 56878183b9e11f52b216a4f6f4523a5d30d09963 [file] [log] [blame]
<html>
<head>
<script src="../resources/cross-frame-access.js"></script>
</head>
<body>
<p>This tests that the main frame can't access the contents of an iframe that contains a data: URL loaded page</p>
<iframe id="aFrame"></iframe>
<pre id="console"></pre>
<script>
var url = "data:text/html,<html><body><p id=\'accessMe\'></p><p>Inner iframe.</p></body></html>";
var iframeId ="aFrame";
var passMessage = "PASS: Cross frame access to a data: URL was denied.";
var failMessage = "FAIL: Cross frame access to a data: URL was allowed.";
cannotAccessFrame(url, iframeId, passMessage, failMessage);
</script>
</body>
</html>