3 <script src="../resources/cross-frame-access.js"></script>
5 window.onload = function()
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.dumpChildFramesAsText();
10 testRunner.waitUntilDone();
13 window.addEventListener('message', function ()
16 testRunner.notifyDone();
23 window[0][0].document.getElementById('accessMe').innerHTML = "FAIL: Cross frame access to a data: URL embed in a frame on a foreign domain allowed.";
24 log("FAIL: Cross frame access to a data: URL embed in a frame on a foreign domain allowed.");
28 log("PASS: Cross frame access to a data: URL embed in a frame on a foreign domain denied!");
33 <p>The scenario for this test is that you have an iframe with content from a foreign domain. In that foreign content
34 is an iframe which loads a data: URL. This tests that this main document does not have access to that
35 data: URL loaded iframe.</p>
36 <iframe src="http://localhost:8000/security/dataURL/resources/foreign-domain-data-url-accessee-iframe.html" style="width: 400px; height:200px;"></iframe>
37 <pre id="console"></pre>