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

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

Issue 19787002: CSP: 'eval()' blocked in report-only mode should send a violation report. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase. 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy-Report-Only" content="script-src ' self' 'unsafe-inline'; report-uri resources/save-report.php">
5 </head>
6 <body>
7 <script>
8 try {
9 eval("alert('PASS: eval() allowed!')");
10 } catch (e) {
11 console.log('FAIL: eval() blocked!');
12 }
13 </script>
14 <script src="resources/go-to-echo-report.js"></script>
15 </body>
16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698