dom/tests/mochitest/bugs/bug346659-parent.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/bugs/bug346659-parent.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +<body onload="postBack();">
     1.5 +  <script>
     1.6 +    var childWin;
     1.7 +    function postBack() {
     1.8 +      childWin = window.frames[0];
     1.9 +      var s = decodeURIComponent(window.location.search.substring(1));
    1.10 +      var cmd = JSON.parse(s);
    1.11 +      if ("load" in cmd) {
    1.12 +        window.testNum = cmd.load;
    1.13 +      } else if ("write" in cmd) {
    1.14 +        window.testNum = cmd.write;
    1.15 +      }
    1.16 +      window.opener.postMessage(s, "http://mochi.test:8888");
    1.17 +    }
    1.18 +  </script>
    1.19 +  <iframe></iframe>
    1.20 +</body>

mercurial