tor-browser

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

img-src-port-wildcard-allowed.sub.html (691B)


      1 <!DOCTYPE HTML>
      2 <meta http-equiv="Content-Security-Policy" content="img-src http://www.{{host}}:*">
      3 <html>
      4 <head>
      5    <title>img-src works correctly with port wildcard source</title>
      6    <script src='/resources/testharness.js'></script>
      7    <script src='/resources/testharnessreport.js'></script>
      8 </head>
      9 <body>
     10    <div id='log'></div>
     11 
     12    <script>
     13      var t1 = async_test("img-src with wildcard port should match any port");
     14    </script>
     15    <img src='http://{{domains[www]}}:{{ports[http][0]}}/content-security-policy/support/pass.png'
     16         onload='t1.done();'
     17         onerror='t1.step(function() { assert_unreached("Image should have loaded."); t1.done()} );'>
     18 
     19 </body>
     20 </html>