docshell/test/navigation/file_bug534178.html
author Byron Campen [:bwc] <docfaraday@gmail.com>
Mon, 29 Apr 2019 15:51:30 +0000
changeset 471964 f8a6a019f873aaebc47740ea1423c0985aaedf69
parent 444991 27b21e84ba9c64b4ea42711cc77f94f5f253e9be
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 testDone() {
        document.body.firstChild.remove();
        var isOK = false;
        try {
          isOK = history.previous != location;
        } catch (ex) {
          // history.previous should throw if this is the first page in shistory.
          isOK = true;
        }
        document.body.textContent = isOK ? "PASSED" : "FAILED";
        opener.ok(isOK, "Duplicate session history entries should have been removed!");
        opener.nextTest();
        window.close();
      }
      function ifrload() {
        setTimeout(testDone, 0);
      }
      function test() {
        var ifr = document.getElementsByTagName("iframe")[0];
        ifr.onload = ifrload;
        ifr.src = "data:text/html,doc2";
      }
    </script>
  </head>
  <body onload="setTimeout(test, 0)"><iframe src="data:text/html,doc1"></iframe>
  </body>
</html>