| Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html
|
| index b8264b4112298f074664f2e051580d367f601864..86a21890c27817d50a66103784c0f904c974839f 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html
|
| @@ -2,30 +2,32 @@
|
| <html>
|
| <head>
|
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
| - <meta http-equiv="Content-Security-Policy" content="script-src 'sha1-zv73epHrGLk/k/onuSBPoZAxzaA=' 'sha1-gbGNUiHncUNJ+diPbIoc+x6KrLo='">
|
| + <meta http-equiv="Content-Security-Policy" content="script-src 'sha1-zv73epHrGLk/k/onuSBPoZAxzaA=' 'sha256-6VVrnAGI98OnlK9Y20hAMwfwBE8c8FOtE/jDYM7tPFk='">
|
| <script>
|
| if (window.testRunner)
|
| testRunner.dumpAsText();
|
| </script>
|
| <!-- The following two scripts contain two separate code points (U+00C5
|
| and U+212B, respectively) which, depending on your text editor, might be
|
| - rendered the same. However, their difference is important as they should
|
| - be NFC normalized to the same code point, thus they should hash to the
|
| - same value.-->
|
| - <script>
|
| + rendered the same. However, their difference is important as they would
|
| + be NFC normalized to the same code point, matching the hash. Since NFC
|
| + normalization should not be performed, the second script should not
|
| + match the hash and must not be executed. -->
|
| + <script data-alert="PASS (1/1)">
|
| 'Å';
|
| - alert('PASS');
|
| + alert(document.currentScript.dataset.alert);
|
| </script>
|
| - <script>
|
| + <script data-alert="FAIL">
|
| 'Å';
|
| - alert('PASS');
|
| + alert(document.currentScript.dataset.alert);
|
| </script>
|
| </head>
|
| <body>
|
| <p>
|
| This tests Unicode normalization. While appearing the same, the
|
| - strings in the scripts are different Unicode points, but through
|
| - normalization, should be the same when the hash is taken.
|
| + strings in the scripts are different Unicode points. Unicode NFC
|
| + normalization would make both match the hash, but normalization
|
| + should not be performed, and so the second script should not run.
|
| </p>
|
| </body>
|
| </html>
|
|
|