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

Issue 2694233002: Content-Security-Policy: Add tests when source scheme is empty. (Closed)

Created:
3 years, 10 months ago by arthursonzogni
Modified:
3 years, 10 months ago
Reviewers:
Mike West
CC:
alexmos, blink-reviews, chromium-reviews, clamy, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Content-Security-Policy: Add tests when source scheme is empty. The current behavior is that when a CSP source expression doesn't have a scheme, the url scheme must be equal to the 'self' scheme. Alternatively when the 'self' scheme is 'http', every scheme in the HTTP familly are allowed. This CL adds tests for documenting this behavior. BUG=None. Review-Url: https://codereview.chromium.org/2694233002 Cr-Commit-Position: refs/heads/master@{#450680} Committed: https://chromium.googlesource.com/chromium/src/+/6e9b7247c80de98888c1d90ed61457538f51931a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add TODO and BUG id. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -0 lines) Patch
M third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp View 1 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
arthursonzogni
Hi Mike, I retrieved a section of a test I took from the browser-side implementation ...
3 years, 10 months ago (2017-02-14 12:54:23 UTC) #2
Mike West
LGTM % bugs and TODOs. https://codereview.chromium.org/2694233002/diff/1/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp File third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp (right): https://codereview.chromium.org/2694233002/diff/1/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp#newcode167 third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp:167: EXPECT_FALSE(source.matches(KURL(base, "https-so://a.com"))); On 2017/02/14 ...
3 years, 10 months ago (2017-02-15 06:46:00 UTC) #3
arthursonzogni
Thanks! https://codereview.chromium.org/2694233002/diff/1/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp File third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp (right): https://codereview.chromium.org/2694233002/diff/1/third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp#newcode167 third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp:167: EXPECT_FALSE(source.matches(KURL(base, "https-so://a.com"))); On 2017/02/15 06:46:00, Mike West (sloooooow) ...
3 years, 10 months ago (2017-02-15 12:00:14 UTC) #6
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/2694233002/20001
3 years, 10 months ago (2017-02-15 12:00:22 UTC) #7
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 13:15:55 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/6e9b7247c80de98888c1d90ed614...

Powered by Google App Engine
This is Rietveld 408576698