tor-browser

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

session-history-location.https.html (1108B)


      1 <!DOCTYPE html>
      2 <title>Test history.length</title>
      3 <meta name="timeout" content="long">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/common/utils.js"></script>
      7 <script src="../resources/utils.js"></script>
      8 <script src="resources/utils.js"></script>
      9 <script src="resources/session-history-test-util.js"></script>
     10 
     11 <body>
     12 <script>
     13 setup(() => assertSpeculationRulesIsSupported());
     14 
     15 const uid = token();
     16 
     17 promise_test(async () => {
     18  assert_equals(
     19    await runTestInPrerender("testLocationAssignInPrerender", uid),
     20    "Passed"
     21  );
     22 }, "location.assign navigates independently with replacement in a prerender");
     23 
     24 promise_test(async () => {
     25  assert_equals(
     26    await runTestInPrerender("testLocationReplaceInPrerender", uid),
     27    "Passed"
     28  );
     29 }, "location.replace navigates independently in a prerender");
     30 
     31 promise_test(async () => {
     32  assert_equals(
     33    await runTestInPrerender("testSetLocationHrefInPrerender", uid),
     34    "Passed"
     35  );
     36 }, "Setting location.href navigates independently with replacement in a prerender");
     37 </script>