docshell/test/navigation/file_shiftReload_and_pushState.html
author Dorel Luca <dluca@mozilla.com>
Tue, 06 Nov 2018 22:40:36 +0200
changeset 444741 1942bfe9ee2dfd98714ba94ec7e5aeaff74d9909
parent 444717 0852730f9ecda10bce8839574a9c9be374e6a7fa
child 444991 27b21e84ba9c64b4ea42711cc77f94f5f253e9be
permissions -rw-r--r--
Backed out 2 changesets (bug 1496082) for mochitest faiures in docshell/test/navigation/test_bug270414.html Backed out changeset 776b54474da9 (bug 1496082) Backed out changeset 0852730f9ecd (bug 1496082)

<html>
  <head>
    <script>
      function test() {
        try {
          frames[0].history.pushState({}, "state", "?pushed");
        } catch(ex) {
          opener.ok(false, "history.pushState shouldn't throw");
        }

        if (!opener.shiftReloadPushStateFirstRound) {
          opener.shiftReloadPushStateFirstRound = true;
          window.location.reload(true);
        } else {
          opener.ok(true, "Did run history.push");
          opener.nextTest();
          window.close();
        }
      }

      window.addEventListener("load", function() { setTimeout(test, 0); });
    </script>
  </head>
  <body>
  <iframe src="frame0.html"></iframe>
  <script>
  </script>
  </body>
</html>