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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-basic-blocked.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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="script-src 'sha1-Au4 uYFbkf7OYd+ACMnKq96FN3qo='">
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
8 alert('PASS (1/1)');
9 </script>
10 <script>
11 alert('FAIL (1/4)');
12 </script>
13 <script>alert('FAIL (2/4)');
14 </script>
15 <script>alert('FAIL (3/4)');</script>
16 <script>alert('FAIL (4/4)');</script>
17 </head>
18 <body>
19 <p>
20 This tests the effect of a valid script-hash value, with one valid
21 script and several invalid ones. It passes if one alert is executed
22 and four console warings are visible.
23 </p>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698