dom/tests/mochitest/whatwg/postMessage_hash.html
author Clint Talbert <ctalbert@mozilla.com>
Sun, 07 Mar 2010 17:34:23 -0800
changeset 39055 3ad9fd8ed872083e4005f98dce57731e062f0a18
parent 39054 b4372055f473cb39d74dbe97e0206dd61ccc2547
child 39134 8ce70abd77773670461db881eeaa5560cc2aa8b2
permissions -rw-r--r--
Backed out changeset b4372055f473 -- due to unexplained orange on OS X Leak test (Bd) box

<!DOCTYPE html>
<html>
<head>
  <title>Hashed kid for test_postMessage_hash.html</title>
  <script type="application/javascript">
function receiveMessage(evt)
{
  var response = "response-message";

  if (window.location.href !== "http://localhost:8888/tests/dom/tests/mochitest/whatwg/postMessage_hash.html#hash")
    response += " kid-at-wrong-uri(" + window.location.href + ")";

  if (evt.origin !== "http://localhost:8888")
    response += " wrong-origin(" + evt.origin + ")";
  if (evt.source !== window.parent)
    response += " wrong-source";
  if (evt.data !== "from-parent")
    response += " wrong-data(" + evt.data + ")";
  if (evt.lastEventId !== "")
    response += " wrong-lastEventId(" + evt.lastEventId + ")";

  window.parent.postMessage(response, "http://localhost:8888");
}

window.addEventListener("message", receiveMessage, false);
  </script>
</head>
<body>
<p>Kid iframe</p>
</body>
</html>