<iframe id="aFrame"></iframe>
<script>
var url = "javascript:\"<html>"
- + "<head>"
- + "<scr" + "ipt>"
- + "window.onload = function()"
- + "{"
- + "if (window.testRunner)"
- + "testRunner.globalFlag = true;"
- + "}"
- + "</scr" + "ipt>"
- + "</head>"
+ "<body>"
+ "<p id='accessMe'>PASS: Access from the main frame was denied!</p>"
+ "<p>Inner-inner iframe. This iframe (which is javascript: URL and whose parent is on a foreign domain) is the frame that the"
+ "</html>\"";
var frame = document.getElementById('aFrame');
+ frame.onload = function () { window.opener.postMessage('run test', '*'); };
frame.src = url;
</script>
</body>