docshell/test/navigation/file_bug1364364-1.html
author Byron Campen [:bwc] <docfaraday@gmail.com>
Mon, 29 Apr 2019 15:51:30 +0000
changeset 471964 f8a6a019f873aaebc47740ea1423c0985aaedf69
parent 391769 16f8037fb5f0e2b1547244e86b0d2c4ce43bd574
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

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>title</title>
  </head>
  <body onload="loadFramesAndNavigate();">
    <p id="content"></p>
    <div id="frameContainer">
    </div>
    <script type="application/javascript">
    function waitForLoad(frame) {
      return new Promise(r => frame.onload = () => setTimeout(r, 0));
    }

    async function loadFramesAndNavigate() {
      let dynamicFrame = document.createElement("iframe");
      dynamicFrame.src = "data:text/html,iframe1";
      document.querySelector("#frameContainer").appendChild(dynamicFrame);
      await waitForLoad(dynamicFrame);
      dynamicFrame.src = "data:text/html,iframe2";
      await waitForLoad(dynamicFrame);
      dynamicFrame.src = "data:text/html,iframe3";
      await waitForLoad(dynamicFrame);
      dynamicFrame.src = "data:text/html,iframe4";
      await waitForLoad(dynamicFrame);
      dynamicFrame.src = "data:text/html,iframe5";
      await waitForLoad(dynamicFrame);
      location.href = "file_bug1364364-2.html";
    }
    </script>
  </body>
</html>