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

Issue 1362813002: CSP source *.x.y should not match host x.y (Closed)

Created:
5 years, 3 months ago by jww
Modified:
5 years, 2 months ago
Reviewers:
Mike West
CC:
blink-reviews, mkwst+watchlist-csp_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

CSP source *.x.y should not match host x.y This fixes a minor CSP bug where a source in a source list with a wildcard was matching more liberally than it should have. It was matching a source of the form *.x.y to host x.y when, in fact, it should only be matching subdomains. BUG=534542 R=mkwst@chromium.org

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use counter for old matching behavior #

Patch Set 3 : Test fixes #

Messages

Total messages: 10 (4 generated)
jww
Mike, can you take a look? Thanks!
5 years, 3 months ago (2015-09-22 23:53:24 UTC) #2
Mike West
LGTM % counter. https://codereview.chromium.org/1362813002/diff/1/Source/core/frame/csp/CSPSource.cpp File Source/core/frame/csp/CSPSource.cpp (right): https://codereview.chromium.org/1362813002/diff/1/Source/core/frame/csp/CSPSource.cpp#newcode49 Source/core/frame/csp/CSPSource.cpp:49: return host.endsWith("." + m_host, TextCaseInsensitive); Can ...
5 years, 3 months ago (2015-09-23 04:36:49 UTC) #3
jww
https://codereview.chromium.org/1362813002/diff/1/Source/core/frame/csp/CSPSource.cpp File Source/core/frame/csp/CSPSource.cpp (right): https://codereview.chromium.org/1362813002/diff/1/Source/core/frame/csp/CSPSource.cpp#newcode49 Source/core/frame/csp/CSPSource.cpp:49: return host.endsWith("." + m_host, TextCaseInsensitive); On 2015/09/23 04:36:49, Mike ...
5 years, 3 months ago (2015-09-23 05:33:10 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1362813002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1362813002/20001
5 years, 3 months ago (2015-09-23 05:33:30 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/110990)
5 years, 3 months ago (2015-09-23 06:33:27 UTC) #9
jww
5 years, 2 months ago (2015-09-25 13:49:37 UTC) #10
On 2015/09/23 06:33:27, commit-bot: I haz the power wrote:
> Try jobs failed on following builders:
>   win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED,
>
http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)

This has been superceded by the post-Blink-merge CL
https://codereview.chromium.org/1367933003/. Closing this issue.

Powered by Google App Engine
This is Rietveld 408576698