tor-browser

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

Document-URL.html (635B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>Document.URL with redirect</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div id=log></div>
      7 <script>
      8 async_test(function() {
      9  var iframe = document.createElement("iframe");
     10  iframe.src = "/common/redirect.py?location=/common/blank.html";
     11  document.body.appendChild(iframe);
     12  this.add_cleanup(function() { document.body.removeChild(iframe); });
     13  iframe.onload = this.step_func_done(function() {
     14    assert_equals(iframe.contentDocument.URL,
     15                  location.origin + "/common/blank.html");
     16  });
     17 })
     18 </script>