docshell/test/navigation/file_nested_frames.html
author Byron Campen [:bwc] <docfaraday@gmail.com>
Mon, 29 Apr 2019 15:51:30 +0000
changeset 471964 f8a6a019f873aaebc47740ea1423c0985aaedf69
parent 402119 d5a5ad1dbbf2c53a80386e7397ba6b32153b2b8e
permissions -rw-r--r--
Bug 1531803 - Part 3: Only set track id on JsepTrack if we're configured to emit track ids in SDP, and simplify some code. r=mjf Differential Revision: https://phabricator.services.mozilla.com/D25796

<html>
  <head>
    <script>
      function nestedIframeLoaded() {
        var tf = document.getElementById("testframe");
        var innerf = tf.contentDocument.getElementsByTagName("iframe")[0];
        if (!innerf.contentDocument.documentURI.includes("frame0")) {
          innerf.contentWindow.location.href = "http://mochi.test:8888/tests/docshell/test/navigation/frame0.html";
          return;
        }
        innerf.onload = null;
        innerf.src = "about:blank";
        var d = innerf.contentDocument;
        d.open();
        d.write("test");
        d.close();
        opener.is(window.history.length, 1, "Unexpected history length");
        opener.nextTest();
        window.close();
      }
    </script>
  </head>
  <body>
  <iframe id="testframe" src="file_nested_frames_innerframe.html" onload="frameLoaded()"></iframe>
  <script>
  </script>
  </body>
</html>