tor-browser

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

key-id-back-cross-document.html (694B)


      1 <!doctype html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <iframe id="i" src="resources/key-navigate-back-cross-document-helper.html"></iframe>
      5 <script>
      6 async_test(t => {
      7  let start_length = navigation.entries().length;
      8  window.finish = t.step_func_done((end_key, end_id) => {
      9    assert_equals(window.start_key, end_key);
     10    assert_equals(window.start_id, end_id);
     11    // The new history entry in the iframe should not add any entries to
     12    // this window's navigation.
     13    assert_equals(navigation.entries().length, start_length);
     14  });
     15 }, "NavigationHistoryEntry's key and id on cross-document back navigation");
     16 </script>