blob: 8a1878f06ec0abc429ace3a4ab867a4479f5b542 [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 using the
uppercased variant DATA:</p>
<iframe id="aFrame" name="aFrame"></iframe>
<pre id="console"></pre>
<script>
var url = "DATA:text/html,<html><scr" + "ipt>onload = function() { parent.postMessage(\'LOADED\', \'*\'); } </scr" + "ipt><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>