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

Issue 1420483005: CSP: Don't perform NFC normalization prior to hashing (Closed)

Created:
5 years, 1 month ago by jsbell
Modified:
5 years, 1 month ago
Reviewers:
jww, chrishtr
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, jungshik at Google, Mikhail, mkwst+watchlist-csp_chromium.org, Mike West
Base URL:
https://chromium.googlesource.com/chromium/src.git@nfc-frame
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CSP: Don't perform NFC normalization prior to hashing Normalization is lossy and not called for in the spec. Don't do it. BUG=487510, 545678 R=jww@chromium.org Committed: https://crrev.com/7b52a16c99ecf88701df2992d8e3616490aa997d Cr-Commit-Position: refs/heads/master@{#357132}

Patch Set 1 #

Patch Set 2 : Remove unused import #

Patch Set 3 : Flip normalization test, leave wtf/text alone #

Total comments: 5

Patch Set 4 : Rework test to ensure tests are identical when normalized #

Messages

Total messages: 26 (9 generated)
jsbell
Huzzah, we have a test for this! http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html jww@ - your call on whether or ...
5 years, 1 month ago (2015-10-27 23:22:27 UTC) #4
jww
On 2015/10/27 23:22:27, jsbell wrote: > Huzzah, we have a test for this! > > ...
5 years, 1 month ago (2015-10-28 00:20:57 UTC) #5
jsbell
On 2015/10/28 00:20:57, jww wrote: > Not that I'm aware of. Taking another look, for ...
5 years, 1 month ago (2015-10-28 18:03:57 UTC) #6
jww
On 2015/10/28 18:03:57, jsbell wrote: > On 2015/10/28 00:20:57, jww wrote: > > Not that ...
5 years, 1 month ago (2015-10-28 19:46:49 UTC) #7
jsbell
I'll split this CL so it just deals with CSP and doesn't update wtf/text I'll ...
5 years, 1 month ago (2015-10-29 18:50:39 UTC) #8
jww
Great. I'll postpone my review until then. I'll also separately update the web-platform-test. --Joel On ...
5 years, 1 month ago (2015-10-29 18:52:27 UTC) #9
jww
Great. I'll postpone my review until then. I'll also separately update the web-platform-test. --Joel On ...
5 years, 1 month ago (2015-10-29 18:52:28 UTC) #10
jsbell
Okie dokie - test updated, wtf/text changes backed out. I think I matched the style ...
5 years, 1 month ago (2015-10-29 19:42:35 UTC) #11
jww
lgtm % my comment about the test. Let me know what you want to do ...
5 years, 1 month ago (2015-10-29 21:22:14 UTC) #14
jsbell
D'oh, thanks for catching that. Test reworked - what do you think? https://codereview.chromium.org/1420483005/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html ...
5 years, 1 month ago (2015-10-29 22:01:46 UTC) #15
jww
https://codereview.chromium.org/1420483005/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html (right): https://codereview.chromium.org/1420483005/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html#newcode18 third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-unicode-normalization.html:18: alert('PASS (1/1)'); On 2015/10/29 22:01:46, jsbell wrote: > On ...
5 years, 1 month ago (2015-10-29 22:06:46 UTC) #16
jww
5 years, 1 month ago (2015-10-29 22:06:48 UTC) #17
jsbell
chrishtr@ - can you OWNERS review? (almost done with these, I swear!)
5 years, 1 month ago (2015-10-29 22:08:32 UTC) #19
chrishtr
lgtm
5 years, 1 month ago (2015-10-30 16:39:58 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420483005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420483005/60001
5 years, 1 month ago (2015-10-30 16:40:47 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-10-30 18:27:36 UTC) #25
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 18:30:29 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7b52a16c99ecf88701df2992d8e3616490aa997d
Cr-Commit-Position: refs/heads/master@{#357132}

Powered by Google App Engine
This is Rietveld 408576698