summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/bugs/bug346659-opener.html
blob: d9d61280470103a36964769ba8cfa1a1a386a8ee (plain)
1
2
3
4
5
6
7
8
9
<body onload="postBack();">
  <script>
    function postBack() {
      var s = decodeURIComponent(window.location.search.substring(1));
      window.opener.postMessage(s, "http://mochi.test:8888");
    }
    var childWin = window.open();
  </script>
</body>