tor-browser

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

WorkerLocation-origin.sub.window.js (506B)


      1 async_test(t => {
      2  const frame = document.createElement("iframe"),
      3        asciiOrigin = location.protocol + "//{{domains[天気の良い日]}}:" + location.port,
      4        path = new URL("support/WorkerLocation-origin.html", location).pathname;
      5  frame.src = asciiOrigin + path;
      6  self.onmessage = t.step_func_done(e => {
      7    assert_equals(e.data.origin, asciiOrigin);
      8  });
      9  document.body.appendChild(frame);
     10  t.add_cleanup(() => frame.remove());
     11 }, "workerLocation.origin must use ASCII code points");