tor-browser

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

sameDocument-after-navigate.html (530B)


      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(() => {
      8    let i_entry = i.contentWindow.navigation.currentEntry;
      9    assert_true(i_entry.sameDocument);
     10    i.onload = t.step_func_done(() => assert_false(i_entry.sameDocument));
     11    i.contentWindow.location = "about:blank";
     12  });
     13 }, "entry.sameDocument after cross-document navigation");
     14 </script>