tor-browser

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

xhr-in-moduleworker.html (468B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>Base URL in module dedicated workers: XHR</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script>
      7 async_test(function() {
      8  var worker = new Worker("../beta/xhr.py", {type: "module"});
      9  worker.onmessage = this.step_func_done(function(e) {
     10    assert_equals(e.data, "gamma\n");
     11  });
     12  worker.onerror = this.unreached_func("Got error event");
     13 });
     14 </script>