Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode-and-sends-report.html

Issue 23172003: Improve parallelization of CSP and XSSAuditor reporting tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Security-Policy-Report-Only" content="script-src ' self' 'unsafe-inline'; report-uri resources/save-report.php"> 4 <meta http-equiv="Content-Security-Policy-Report-Only" content="script-src ' self' 'unsafe-inline'; report-uri resources/save-report.php?test=eval-allowed-in -report-only-mode-and-sends-report.html">
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 try { 8 try {
9 eval("alert('PASS: eval() allowed!')"); 9 eval("alert('PASS: eval() allowed!')");
10 } catch (e) { 10 } catch (e) {
11 console.log('FAIL: eval() blocked!'); 11 console.log('FAIL: eval() blocked!');
12 } 12 }
13 </script> 13 </script>
14 <script src="resources/go-to-echo-report.js"></script> 14 <script src="resources/go-to-echo-report.js"></script>
15 </body> 15 </body>
16 </html> 16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698