blob: 7e084b242c4c54e51ace5625005694a17b5e831a [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.onload = function()
{
frame = document.body.appendChild(document.createElement("iframe"));
frame.src = "http://localhost:8080/security/resources/innocent-victim-with-iframe.html";
frame.onload = function() {
frame.onload = null;
frame.contentWindow[0].location = "data:text/html,<script>(" + function() {
setTimeout(function() {
if (window.testRunner)
testRunner.notifyDone();
}, 0);
window.name = "alert";
obj = document.all;
obj.__proto__ = parent;
alert(obj.alert === this);
} + ")()</scr" + "ipt>";
}
}
</script>