<html>
  <head>
    <script>
      let pass = false;
      let initialLoad = false;
      var bc = new BroadcastChannel("bug145971");
      function checkNavigationTypeEquals2() {
        if (performance.navigation.type == 2) {
          pass = true;
        }
        testDone();
      }

      function testDone() {
        bc.postMessage({result: pass});
        bc.close();
        window.close();
      }

      function test() {
        window.onpageshow = checkNavigationTypeEquals2;
        window.location.href = 'goback.html';
      }
    </script>
  </head>
  <body onload="setTimeout(test, 0);">
  Testing bug 145971.
  </body>
</html>
