tor-browser

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

url-resolution-conflict.html (667B)


      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 </script>
      8 </script>
      9 <script type="module">
     10 import '../resources/../resources/log.js?pipe=sub&name=a';
     11 </script>
     12 <script type="importmap">
     13 {
     14  "scopes": {
     15    "/": {
     16      "../resources/log.js?pipe=sub&name=a": "../resources/log.js?pipe=sub&name=b"
     17    }
     18  }
     19 }
     20 </script>
     21 <script type="module">
     22 promise_test(async () => {
     23  await import("../resources/log.js?pipe=sub&name=a");
     24  assert_array_equals(log, ["log:a"]);
     25 },
     26 "import map should not override already resolved URL, even if spelled differently");
     27 </script>