tor-browser

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

navigatesuccess-cross-document.html (630B)


      1 <!doctype html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <iframe id="i" src="resources/navigatesuccess-cross-document-helper.html"></iframe>
      5 <script>
      6 async_test(t => {
      7  // The iframe will post a message if it receives a navigatesuccess.
      8  window.onmessage = t.unreached_func("navigatesuccess received");
      9  window.onload = t.step_func(() => {
     10    i.contentWindow.location.search = "?1";
     11    i.onload = t.step_func_done(() => assert_equals(i.contentWindow.location.search, "?1"));
     12  });
     13 }, "navigatesuccess does not fire for a cross-document navigation");
     14 </script>