blob: 1359a3e591950f7ef8f1ef0687679fb557cd6ef4 [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.onmessage = function(e) {
document.documentElement.appendChild(document.createTextNode(e.data));
if (window.testRunner)
testRunner.notifyDone();
}
var i = document.documentElement.appendChild(document.createElement('iframe'));
var f = frames[0].Function("location.replace('javascript:window.top.postMessage(\\'FAIL\\', \\'*\\')')");
i.onload = function() {
f();
setTimeout(function() {
window.postMessage("PASS", "*");
}, 0);
}
i.src = 'https://localhost:8443/security/resources/innocent-victim.html';
</script>