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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html

Issue 22159002: Add 'didDispatchPingLoader' callback to FrameLoaderClient. (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 <meta http-equiv="Content-Security-Policy" content="img-src 'none'; report-u ri /security/contentSecurityPolicy/resources/save-report.php"> 5 <meta http-equiv="Content-Security-Policy" content="img-src 'none'; report-u ri /security/contentSecurityPolicy/resources/save-report.php">
5 </head> 6 </head>
6 <body> 7 <body>
7 <script> 8 <script>
8 var xhr = new XMLHttpRequest(); 9 var xhr = new XMLHttpRequest();
9 xhr.open("GET", "/cookies/resources/setCookies.cgi", false); 10 xhr.open("GET", "/cookies/resources/setCookies.cgi", false);
10 xhr.setRequestHeader("SET-COOKIE", "cspViolationReportCookie=sameOrigin;path =/"); 11 xhr.setRequestHeader("SET-COOKIE", "cspViolationReportCookie=sameOrigin;path =/");
11 xhr.send(null); 12 xhr.send(null);
12 </script> 13 </script>
13 14
14 <!-- This image will generate a CSP violation report. --> 15 <!-- This image will generate a CSP violation report. -->
15 <img src="/security/resources/abe.png"> 16 <img src="/security/resources/abe.png">
16 17
17 <script src='resources/go-to-echo-report.js'></script> 18 <script src='resources/go-to-echo-report.js'></script>
18 </body> 19 </body>
19 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698