second-csp-report.https.sub.html (786B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Bug test page 2</title> 5 </head> 6 <body> 7 <h1>Bug test page 2</h1> 8 <script> 9 var img = document.createElement('img'); 10 img.src = "missing3.png"; 11 // Appending this image will cause a third CSP violation. The report generated 12 // here must not be batched with the reports from the previous page, regardless 13 // of whether they have been sent or not. 14 document.body.appendChild(img); 15 // Give the report handler enough time to finish handling any reports from the 16 // previous page (Reports there are delayed by 1 second because of the trickle 17 // pipe in the headers in first-csp-report.https.sub.html.sub.headers) and then 18 // inform the parent that reports may be checked. 19 setTimeout(()=>{ 20 parent.postMessage("ready", "*"); 21 },1250); 22 </script> 23 </body> 24 </html>