tor-browser

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

entry-after-detach.html (696B)


      1 <!doctype html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <iframe id="i" src="/common/blank.html"></iframe>
      5 <script>
      6 async_test(t => {
      7  window.onload = t.step_func_done(() => {
      8    let i_entry = i.contentWindow.navigation.currentEntry;
      9    assert_true(i_entry.sameDocument);
     10    assert_not_equals(i_entry.url, null);
     11    assert_not_equals(i_entry.key, "");
     12    assert_not_equals(i_entry.id, "");
     13    i.remove();
     14    assert_false(i_entry.sameDocument);
     15    assert_equals(i_entry.url, null);
     16    assert_equals(i_entry.key, "");
     17    assert_equals(i_entry.id, "");
     18  });
     19 }, "NavigationHistoryEntry properties after detach");
     20 </script>