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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-style-blocked.html

Issue 2056183002: Implement the `require-sri-for` CSP directive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Security-Policy" content="style-src 'none'; script-src 'unsafe-inline'"> 4 <meta http-equiv="Content-Security-Policy" content="require-sri-for style; style -src *;;">
Mike West 2016/06/10 09:25:15 Nit: Extra ';'. Double nit: Please write this as
5 <link rel="stylesheet" href="resources/blue.css"> 5 <link rel="stylesheet" href="resources/blue.css">
6 <script> 6 <script>
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 </script> 9 </script>
10 </head> 10 </head>
11 <body> 11 <body>
12 <script> 12 <script>
13 document.write(document.styleSheets.length > 0 ? 'FAIL' : 'PASS'); 13 document.write(document.styleSheets.length > 0 ? 'FAIL' : 'PASS');
14 </script> 14 </script>
15 </body> 15 </body>
16 </html> 16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698