tor-browser

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

worker-request.html (596B)


      1 <!DOCTYPE html>
      2 <html>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script>
      6 const log = [];
      7 new Worker('../resources/empty.js?pipe=trickle(d1)', {type: "module"});
      8 </script>
      9 <script type="importmap">
     10 {
     11  "imports": {
     12    "../resources/log.js?pipe=sub&name=A": "../resources/log.js?pipe=sub&name=B"
     13  }
     14 }
     15 </script>
     16 <script>
     17 promise_test(() => {
     18  return import("../resources/log.js?pipe=sub&name=A")
     19    .then(() => assert_array_equals(log, ["log:B"]))
     20  },
     21  'After module worker creation import maps are still effective');
     22 </script>