tor-browser

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

entries-when-inactive.html (720B)


      1 <!doctype html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <script>
      5 async_test(t => {
      6  let start_index = navigation.currentEntry.index;
      7  const first_entry = navigation.entries()[start_index];
      8  history.pushState(1, "", "#1");
      9  assert_equals(navigation.entries()[start_index], first_entry);
     10  history.back();
     11  window.onpopstate = t.step_func_done(() => {
     12    const second_entry = navigation.entries()[start_index + 1];
     13    history.replaceState(0, "", "#0");
     14    assert_equals(navigation.entries()[start_index + 1], second_entry);
     15  });
     16 }, "A non-active entry in navigation.entries() should not be modified when a different entry is modified");
     17 </script>