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-unicode-normalization.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-Type" content="text/html; charset=utf-8">
5 <meta http-equiv="Content-Security-Policy" content="script-src 'sha1-zv7 3epHrGLk/k/onuSBPoZAxzaA=' 'sha1-gbGNUiHncUNJ+diPbIoc+x6KrLo='">
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
9 </script>
10 <!-- The following two scripts contain two separate code points (U+00C5
11 and U+212B, respectively) which, depending on your text editor, might be
12 rendered the same. However, their difference is important as they should
13 be NFC normalized to the same code point, thus they should hash to the
14 same value.-->
15 <script>
16 'Å';
17 alert('PASS');
18 </script>
19 <script>
20 'Å';
21 alert('PASS');
22 </script>
23 </head>
24 <body>
25 <p>
26 This tests Unicode normalization. While appearing the same, the
27 strings in the scripts are different Unicode points, but through
28 normalization, should be the same when the hash is taken.
29 </p>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698