<meta content="frame-src 'none'" http-equiv="Content-Security-Policy"/> | |
<script> | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
testRunner.waitUntilDone(); | |
} | |
window.onload = function() { | |
var i = document.createElement("iframe"); | |
document.body.appendChild(i); | |
i.contentWindow.location = "data:,hello"; | |
i.onload = function() { | |
document.body.innerText = "PASS"; | |
if (window.testRunner) | |
testRunner.notifyDone(); | |
} | |
} | |
</script> |