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

Issue 2944373002: CSP: Remove wrong DCHECK in CSPSourceList (Closed)

Created:
3 years, 6 months ago by arthursonzogni
Modified:
3 years, 6 months ago
Reviewers:
Mike West
CC:
battre, chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

CSP: Remove wrong DCHECK in CSPSourceList Removing DCHECK : ``` // When the '*' source is used, it must be the only one. DCHECK(!allow_star || (!allow_self && sources.empty())); ``` This is obviously wrong. That is the 'none' source that cannot be present with other sources. This was introduced by mistake in https://crrev.com/2937503002/ BUG=735049 Review-Url: https://codereview.chromium.org/2944373002 Cr-Commit-Position: refs/heads/master@{#481138} Committed: https://chromium.googlesource.com/chromium/src/+/5174a7f227b37a6f0bc93f56da97c49e22a88f7a

Patch Set 1 #

Patch Set 2 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -4 lines) Patch
M content/common/content_security_policy/csp_source_list.cc View 1 chunk +1 line, -4 lines 0 comments Download
M content/common/content_security_policy/csp_source_list_unittest.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
arthursonzogni
Hi Mike, Could you please review this. That's a DCHECK I introduced by mistake. In ...
3 years, 6 months ago (2017-06-20 14:54:59 UTC) #4
Mike West
Removing the DCHECK looks reasonable. Can you add a test to verify that we handle ...
3 years, 6 months ago (2017-06-20 16:04:42 UTC) #6
arthursonzogni
On 2017/06/20 16:04:42, Mike West (OOO until 19th) wrote: > Removing the DCHECK looks reasonable. ...
3 years, 6 months ago (2017-06-20 17:04:11 UTC) #9
Mike West
On 2017/06/20 at 17:04:11, arthursonzogni wrote: > On 2017/06/20 16:04:42, Mike West (OOO until 19th) ...
3 years, 6 months ago (2017-06-20 17:24:34 UTC) #10
arthursonzogni
On 2017/06/20 17:24:34, Mike West (OOO until 19th) wrote: > On 2017/06/20 at 17:04:11, arthursonzogni ...
3 years, 6 months ago (2017-06-20 17:39:08 UTC) #11
arthursonzogni
I added the test. I was not able to test a request allowed by 'self' ...
3 years, 6 months ago (2017-06-20 18:00:59 UTC) #12
Mike West
LGTM, thanks!
3 years, 6 months ago (2017-06-20 19:23:33 UTC) #15
arthursonzogni
On 2017/06/20 19:23:33, Mike West (OOO until 19th) wrote: > LGTM, thanks! Thanks!
3 years, 6 months ago (2017-06-21 07:35:40 UTC) #18
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/2944373002/20001
3 years, 6 months ago (2017-06-21 07:36:56 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 08:04:50 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5174a7f227b37a6f0bc93f56da97...

Powered by Google App Engine
This is Rietveld 408576698