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

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

Issue 26481005: Implementation of script hashes for CSP. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on tip of tree Created 7 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-i nline'; script-src 'none'"> 4 <meta http-equiv="Content-Security-Policy" content="script-src 'sha1-Au4 uYFbkf7OYd+ACMnKq96FN3qo='">
5 <script> 5 <script>
6 if (window.testRunner) { 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 }
9 </script>
10 <script>
11 alert('PASS (1/1)'); 8 alert('PASS (1/1)');
12 </script> 9 </script>
13 </head> 10 </head>
14 <body> 11 <body>
15 <p> 12 <p>
16 This tests the effect of duplicated directives. It passes if a 13 This tests the effect of a valid script-hash value. It passes if no
17 console warning is visible, and the alert() is executed. 14 console warning is visible, and the alert() is executed.
18 </p> 15 </p>
19 </body> 16 </body>
20 </html> 17 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698