tor-browser

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

host-specific-origin.html (468B)


      1 <!doctype html>
      2 <title>resolving url with stuff in host-specific</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="log"></div>
      6 <script>
      7 async_test(function() {
      8  postMessage('', {targetOrigin: location.protocol + '//' + location.host + '//'});
      9  onmessage = this.step_func(function(e) {
     10    assert_equals(e.origin, location.protocol + '//' + location.host);
     11    this.done();
     12  });
     13 });
     14 </script>