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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-script-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="script-src 'unsafe-inlin e'"> 4 <meta http-equiv="Content-Security-Policy" content="require-sri-for script; script-src 'unsafe-inline' *">
Mike West 2016/06/10 09:25:15 Please write this as a `testharness.js` test. See
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="result" text="FAIL">PASS</div> 7 <div id="result" text="FAIL">PASS</div>
8 8
9 <script> 9 <script>
10 if (window.testRunner) 10 if (window.testRunner)
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 a=document.createElement('script'); 12 a=document.createElement('script');
13 a.src='http://localhost:8000/security/contentSecurityPolicy/resources/scri pt.js'; 13 a.src='http://localhost:8000/security/contentSecurityPolicy/resources/scri pt.js';
14 document.body.appendChild(a); 14 document.body.appendChild(a);
15 </script> 15 </script>
16 </body> 16 </body>
17 </html> 17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698