docshell/test/navigation/file_bug508537_1.html
author Jeff Walden <jwalden@mit.edu>
Tue, 19 Nov 2019 04:55:39 +0000
changeset 502538 b5c5ba07d3dbd0d07b66fa42a103f4df2c27d3a2
parent 444992 db6a356eef5952d3365a6b4ec2f454e3293d4b5e
permissions -rw-r--r--
Bug 1596544 - intl_ValidateAndCanonicalizeUnicodeExtensionType should ignore the second |option| argument until it's needed to report an error. r=anba Differential Revision: https://phabricator.services.mozilla.com/D53145

<html>
  <head>
    <script>
      function dynFrameLoad() {
        var ifrs = document.getElementsByTagName("iframe");
        opener.ok(String(ifrs[0].contentWindow.location).includes(ifrs[0].src),
                  "Wrong document loaded (1)\n");
        opener.ok(String(ifrs[1].contentWindow.location).includes(ifrs[1].src),
                  "Wrong document loaded (2)\n");
        if (opener && ++opener.testCount == 1) {
          window.location = "goback.html";
        } else {
          opener.nextTest();
          window.close();
        }
      }

      window.addEventListener("load",
        function() {
          var container = document.getElementById("t1");
          container.addEventListener("load", dynFrameLoad, true);
          container.appendChild(container.appendChild(document.getElementById("i1")));
        });
    </script>
  </head>
  <body>
    <h5>Container:</h5>
    <div id="t1"></div>
    <h5>Original frames:</h5>
    <iframe id="i1" src="frame0.html"></iframe>
    <iframe src="frame1.html"></iframe>
  </body>
</html>