blob: 344971888b83e607c5be59d5b4875bfda93aeafc [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
function go() {
var iframe = document.getElementById('child');
var win = iframe.contentWindow;
win.postMessage('done', '*');
}
document.domain = "0.0.1";
</script>
<body>
<div>window.location.href = <script>document.write(window.location.href);</script></div>
<div>document.domain = <script>document.write(document.domain);</script></div>
<div><iframe src="http://127.0.0.1:8080/security/postMessage/resources/post-message-listener-with-ready.html" id="child" width="800" height="300"
style="border: 1px solid black;">
</iframe></div>
</body>
</html>