tor-browser

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

utf-8.html (1609B)


      1 <html>
      2 <head>
      3    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc'
      4          'sha256-c6TzhBw/snA+hlDMGOuKLWXIkb2sawA/S1wbSe6FeEM='
      5          'sha256-ST0rpskqtEC0Q0hqbIAZFeE1KBMJeGZGyYaTcTkieG8='
      6          'sha256-hbNM6T3uO5pu4o5YfNnUmwtq5VHHMr7V5ospXtx9bqU=';">
      7          <!-- hashes matching the 3 script blocks below -->
      8    <script src='/resources/testharness.js'></script>
      9    <script src='/resources/testharnessreport.js'></script>
     10 </head>
     11 <body>
     12    <script nonce="abc">
     13      var t1 = async_test("Should convert the script contents to UTF-8 before hashing - latin micro sign");
     14      window.addEventListener("securitypolicyviolation", t1.unreached_func("Should not have fired a spv"));
     15      var t2 = async_test("Should convert the script contents to UTF-8 before hashing - greek small letter mu");
     16      window.addEventListener("securitypolicyviolation", t2.unreached_func("Should not have fired a spv"));
     17      var t3 = async_test("Should convert the script contents to UTF-8 before hashing - latin capital letter g with breve");
     18      window.addEventListener("securitypolicyviolation", t3.unreached_func("Should not have fired a spv"));
     19    </script>
     20 
     21    <!-- the hash values of these script blocks should match the same values
     22         of identical script blocks in documents with other encodings -->
     23    <script>
     24      // µ - latin micro sign
     25      t1.done();
     26    </script>
     27    <script>
     28      // μ - greek small letter mu
     29      t2.done();
     30    </script>
     31    <script>
     32      // Ğ - latin capital letter g with breve
     33      t3.done();
     34    </script>
     35 </body>
     36 </html>