blob: a6b46ebbdd689950bf66c72e3bfac09fe10f96d4 [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;
try {
alert(obj.alert.constructor("return document.body.innerHTML")());
} catch (e) {
console.log(e);
}
} + ")()</scr" + "ipt>";
}
}
</script>