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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-default-src.html

Issue 1360693002: Apply CSP default-src hash values to script-src and style src. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="default-src 'sha256- qYLfI6En65ykBzcRp14iPwE+5tYvOnoWhLlGH9eVub4='">
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
8 alert('PASS');
Mike West 2015/09/22 04:37:38 Nit: See below.
jww 2015/09/22 16:55:37 Done.
9 </script>
10 </head>
11 <body>
12 <p>
13 This tests that hash values in default-src carry to scripts. It
14 passes if no console warning is visible, and only PASS messages are
15 shown.
16 </p>
17 </body>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698