blob: c9a59cda88febb4ee993aafeab9b1cc5b16bb80d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
function recv(e) {
var msg = 'Received message: data="' + e.data + '" domain="' + e.domain + '" uri="' + e.uri + '"';
document.getElementById("result").firstChild.data = msg;
if (window.layoutTestController)
layoutTestController.notifyDone();
}
document.addEventListener("message", recv, false);
</script>
<base href="http://www.example.com/">
<body>
<div>window.location.href = <script>document.write(document.location.href);</script></div>
<div><iframe src="http://localhost:8000/security/postMessage/resources/javascript-post-message-sender.html"
id="child" width="800" height="300" style="border: 1px solid black;">
</iframe></div>
<div id="result">waiting...</div>
</body>
</html>