tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

back.tentative.html (831B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>Detect simple soft navigation.</title>
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="/resources/testdriver.js"></script>
      9 <script src="/resources/testdriver-vendor.js"></script>
     10 <script src="resources/soft-navigation-helper.js"></script>
     11 </head>
     12 <body>
     13  <a id=link>Click me!</a>
     14  <main id=main>
     15  </main>
     16  <script>
     17    // Push state a couple of times
     18    history.pushState({}, "", "foobar.html");
     19    history.pushState({}, "", "anotherOne.html");
     20    testSoftNavigation({
     21      pushState: async () => {
     22        history.back();
     23        await waitForUrlToEndWith("foobar.html");
     24      },
     25      testName: "`history.back() properly works with SoftNavigationHeuristics"});
     26  </script>
     27 </body>
     28 </html>