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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization-expected.txt

Issue 1420483005: CSP: Don't perform NFC normalization prior to hashing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nfc-frame
Patch Set: Rework test to ensure tests are identical when normalized Created 5 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
1 ALERT: PASS 1 ALERT: PASS (1/1)
2 ALERT: PASS 2 CONSOLE ERROR: line 20: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'sha1-zv73epHrGLk/k/on uSBPoZAxzaA=' 'sha256-6VVrnAGI98OnlK9Y20hAMwfwBE8c8FOtE/jDYM7tPFk='". Either the 'unsafe-inline' keyword, a hash ('sha256-1YpMZRdgC0WhwwFBK0bksRyUnuhzlCJp0nKmbZ YUi+Q='), or a nonce ('nonce-...') is required to enable inline execution.
3 This tests Unicode normalization. While appearing the same, the strings in the s cripts are different Unicode points, but through normalization, should be the sa me when the hash is taken. 3
4 This tests Unicode normalization. While appearing the same, the strings in the s cripts are different Unicode points. Unicode NFC normalization would make both m atch the hash, but normalization should not be performed, and so the second scri pt should not run.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698