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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/reflected-xss-filter.html

Issue 2428473004: Remove the 'reflected-xss' directive from CSP. (Closed)
Patch Set: Test. Created 4 years, 1 month 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.setXSSAuditorEnabled(true);
8 }
9 </script>
10 </head>
11 <body>
12 <p>Tests that 'Content-Security-Policy: reflected-xss filter;' enables the X SSAuditor.
13 This test passes if a console message is generated, and the script is blocke d.</p>
14 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intert ag.pl?csp=filter&amp;q=<script>alert(String.fromCharCode(0x58,0x53,0x53))</scrip t>"></iframe>
15 </body>
16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698