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

Issue 2589273003: CSP: fix bugs in parseHost (+ add unit test) (Closed)

Created:
4 years ago by arthursonzogni
Modified:
4 years ago
Reviewers:
sof, Mike West
CC:
Mike West, blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CSP: fix bugs in parseHost (+ add unit test) The problem was that host like : "*." or "sub.host." were validated by SourceListDirective::parseHost, while they aren't valid. BUG=676260 Committed: https://crrev.com/4bd219e45f7ba50880725bc55e94aa13359c3cd9 Cr-Commit-Position: refs/heads/master@{#440378}

Patch Set 1 #

Patch Set 2 : Refactor Parsehost. #

Total comments: 3

Patch Set 3 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -11 lines) Patch
M third_party/WebKit/Source/core/frame/csp/SourceListDirective.h View 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp View 1 2 chunks +13 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp View 1 2 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
arthursonzogni
Hi @sigbjornf, Please. Do you think you can review this CL? Thanks! @mkwst: FYI.
4 years ago (2016-12-21 13:31:17 UTC) #6
sof
lgtm mkwst@ would be the better person to handle it, but he appears out. The ...
4 years ago (2016-12-21 21:43:35 UTC) #7
Mike West
I am OOO, but I accidentally saw this anyway. LGTM. :) https://codereview.chromium.org/2589273003/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp (right): ...
4 years ago (2016-12-22 07:27:43 UTC) #9
arthursonzogni
Thanks! https://codereview.chromium.org/2589273003/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp (right): https://codereview.chromium.org/2589273003/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp#newcode1345 third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp:1345: {"*", TRUE}, On 2016/12/22 07:27:42, Mike West (OOO ...
4 years ago (2016-12-22 09:13:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2589273003/40001
4 years ago (2016-12-22 09:15:03 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-22 10:45:03 UTC) #16
commit-bot: I haz the power
4 years ago (2016-12-22 10:47:56 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4bd219e45f7ba50880725bc55e94aa13359c3cd9
Cr-Commit-Position: refs/heads/master@{#440378}

Powered by Google App Engine
This is Rietveld 408576698