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

Issue 2785463002: CSP: Don't override the location set in reportViolationWithLocation. (Closed)

Created:
3 years, 8 months ago by arthursonzogni
Modified:
3 years, 8 months ago
Reviewers:
Mike West
CC:
blink-reviews, blink-reviews-frames_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

CSP: Don't override the location set in reportViolationWithLocation. When a CSP violation is reported through reportViolationWithLocation, the |contextLine| provided was always replaced in gatherSecurityPolicyViolationEventData by the current context's line number. What does this CL? * Transmit the full source location in ReportViolation instead of only the line number. * When a source location is provided, it is always used, never replaced. Review-Url: https://codereview.chromium.org/2785463002 Cr-Commit-Position: refs/heads/master@{#460334} Committed: https://chromium.googlesource.com/chromium/src/+/a9b00b963270f09b359251568257001734442383

Patch Set 1 : CSP: Don't override the location set in reportViolationWithLocation. #

Patch Set 2 : Do not use a default value because of forward declaration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -39 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/report-uri-effective-directive-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/nonces/style-enforce-blocked.php View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/nonces/style-multiple-blocked.php View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/nonces/style-reportonly-allowed.php View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-only-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-only-from-header-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-child-frame-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp View 1 5 chunks +20 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h View 1 4 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp View 1 6 chunks +15 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (20 generated)
arthursonzogni
Hi Mike, Please take a look! I did this CL to add the |sourceLocation| parameter ...
3 years, 8 months ago (2017-03-28 15:32:38 UTC) #16
Mike West
LGTM, thanks!
3 years, 8 months ago (2017-03-29 08:35:46 UTC) #19
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/2785463002/60001
3 years, 8 months ago (2017-03-29 09:31:11 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 09:38:12 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/a9b00b963270f09b359251568257...

Powered by Google App Engine
This is Rietveld 408576698