summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/bugs/bug346659-parent.html
blob: 0fea91c6997b905298e55d5c0c704dd575c54ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<body onload="postBack();">
  <script>
    var childWin;
    function postBack() {
      childWin = window.frames[0];
      var s = decodeURIComponent(window.location.search.substring(1));
      var cmd = JSON.parse(s);
      if ("load" in cmd) {
        window.testNum = cmd.load;
      } else if ("write" in cmd) {
        window.testNum = cmd.write;
      }
      window.opener.postMessage(s, "http://mochi.test:8888");
    }
  </script>
  <iframe></iframe>
</body>