dom/base/test/iframe_messageChannel_chrome.html
author Andrea Marchesini <amarchesini@mozilla.com>
Thu, 05 Jun 2014 00:58:00 +0200
changeset 186768 b28cd167b6fe0d4e8630bc2c900df7cc6810aee2
child 248913 cd0d976e5f5c6389512cad8f2cae03526b0fb0f3
permissions -rw-r--r--
Bug 984990 - Enable MessageChannel for chrome and resource:// callers, r=bz

<!DOCTYPE HTML>
<html>
<body>
  <script type="application/javascript">

window.addEventListener('message', receiveMessage, false);
function receiveMessage(evt) {
  evt.data.postMessage("Hello world");
}
  </script>
</body>