tor-browser

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

first-csp-report.https.sub.html (534B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>Bug test page 1</title>
      5 </head>
      6 <body>
      7 <h1>Bug test page 1</h1>
      8 <!-- This image will cause a CSP violation, which will trigger an immediate report -->
      9 <img src="missing1.png">
     10 <script>
     11 setTimeout(()=>{
     12  var img = document.createElement('img');
     13  img.src = "missing2.png";
     14  // Appending this image will cause a second CSP violation, which will trigger
     15  // a second report.
     16  document.body.appendChild(img);
     17  location.href = "second-csp-report.https.sub.html";
     18 }, 1);
     19 </script>
     20 </body>
     21 </html>