tor-browser

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

reload-base-url.html (606B)


      1 <!doctype html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <iframe id="i" src="resources/page-with-base-url-common.html"></iframe>
      5 <script>
      6 async_test(t => {
      7  window.onload = t.step_func(() => {
      8    const startingURL = new URL(i.src);
      9    i.contentWindow.navigation.reload();
     10    i.onload = t.step_func_done(() => {
     11      const iframeURL = new URL(i.contentWindow.navigation.currentEntry.url);
     12      assert_equals(iframeURL.pathname, startingURL.pathname);
     13    });
     14  });
     15 }, "reload() must ignore the Navigation object's base URL");
     16 </script>