tor-browser

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

unsafe-inline.html (583B)


      1 <!DOCTYPE html>
      2 <html>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';">
      6 <script type="importmap">
      7 {
      8  "imports": {
      9    "../resources/log.js?pipe=sub&name=A": "../resources/log.js?pipe=sub&name=B"
     10  }
     11 }
     12 </script>
     13 <script>
     14 const log = [];
     15 promise_test(() => {
     16  return import("../resources/log.js?pipe=sub&name=A")
     17    .then(() => assert_array_equals(log, ["log:B"]))
     18  },
     19  'Importmap should be accepted due to unsafe-inline');
     20 </script>