blob: cceaa39fe4baf11a7b6b6738433ad844d4389f6f [file] [log] [blame]
<script>
function log(msg)
{
document.getElementById("console").appendChild(document.createTextNode(msg + "\n"));
}
onload = function()
{
parent.postMessage("finishedLoading", "*");
}
addEventListener("message", function() {
if (document.fail) {
log("FAIL: Cross origin direct document access allowed.");
} else {
log("PASS: Cross origin direct document access denied.");
}
if (window.testRunner)
testRunner.notifyDone();
}, false);
</script>
<pre id="console"></pre>