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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.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 <script src="resources/report-test.js"></script> 4 <script src="resources/report-test.js"></script>
5 <meta http-equiv="Content-Security-Policy" content="img-src 'none'; report-u ri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.ph p"> 5 <meta http-equiv="Content-Security-Policy" content="img-src 'none'; report-u ri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.ph p?test=report-cross-origin-no-cookies.html">
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 var xhr = new XMLHttpRequest(); 9 var xhr = new XMLHttpRequest();
10 xhr.open("GET", "http://localhost:8080/cookies/resources/setCookies.cgi", fa lse); 10 xhr.open("GET", "http://localhost:8080/cookies/resources/setCookies.cgi", fa lse);
11 xhr.setRequestHeader("SET-COOKIE", "cspViolationReportCookie=crossOrigin;pat h=/"); 11 xhr.setRequestHeader("SET-COOKIE", "cspViolationReportCookie=crossOrigin;pat h=/");
12 xhr.send(null); 12 xhr.send(null);
13 </script> 13 </script>
14 14
15 <!-- This image will generate a CSP violation report. --> 15 <!-- This image will generate a CSP violation report. -->
16 <img src="/security/resources/abe.png"> 16 <img src="/security/resources/abe.png">
17 17
18 <script src='resources/go-to-echo-report.js'></script> 18 <script src='resources/go-to-echo-report.js'></script>
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698