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

Issue 2761153003: PlzNavigate & CSP. Use the SourceLocation in violation reports. (Closed)

Created:
3 years, 9 months ago by arthursonzogni
Modified:
3 years, 8 months ago
Reviewers:
clamy, Mike West, alexmos
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, kinuko+watch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate & CSP. Use the SourceLocation in violation reports. The SourceLocation struct is available during a navigation thanks to this CL: https://codereview.chromium.org/2720763002 This patch makes use of it for CSP. It fixes several test where the line number in console messages was missing. BUG=690946, 705098 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation;master.tryserver.chromium.linux:linux_chromium_browser_side_navigation_rel Review-Url: https://codereview.chromium.org/2761153003 Cr-Commit-Position: refs/heads/master@{#460727} Committed: https://chromium.googlesource.com/chromium/src/+/8bec3f2a2edf7217f83d10fe929816e698c64a35

Patch Set 1 #

Patch Set 2 : Nit. #

Total comments: 3

Patch Set 3 : rebase #

Patch Set 4 : EnforceCsp => IsAllowedByCsp #

Patch Set 5 : Rebase from https://codereview.chromium.org/2785463002/ #

Patch Set 6 : Transmit the source_location instead of the line number. #

Total comments: 8

Patch Set 7 : Rebase. #

Patch Set 8 : Addressed comment @alexmos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -93 lines) Patch
M content/browser/frame_host/ancestor_throttle.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M content/browser/frame_host/form_submission_throttle.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M content/common/content_security_policy/content_security_policy.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/common/content_security_policy/content_security_policy.cc View 1 2 3 4 4 chunks +12 lines, -9 lines 0 comments Download
M content/common/content_security_policy/content_security_policy_unittest.cc View 1 2 3 4 9 chunks +18 lines, -10 lines 0 comments Download
M content/common/content_security_policy/csp_context.h View 1 2 3 4 5 6 7 4 chunks +17 lines, -7 lines 0 comments Download
M content/common/content_security_policy/csp_context.cc View 1 2 3 4 chunks +8 lines, -9 lines 0 comments Download
M content/common/content_security_policy/csp_context_unittest.cc View 1 2 3 4 5 chunks +17 lines, -13 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/content_security_policy_util.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 4 1 chunk +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 2 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
A + third_party/WebKit/public/platform/WebSourceLocation.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebConsoleMessage.h View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebDataSource.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
D third_party/WebKit/public/web/WebSourceLocation.h View 1 chunk +0 lines, -23 lines 0 comments Download

Messages

Total messages: 49 (41 generated)
arthursonzogni
Hi Camille and Mike, Please can you take a look? Thanks! Camille: * content/ Mike: ...
3 years, 9 months ago (2017-03-21 16:20:38 UTC) #15
Mike West
LGTM % the rename, which I think needs a little more discussion. https://codereview.chromium.org/2761153003/diff/60001/content/browser/frame_host/ancestor_throttle.cc File content/browser/frame_host/ancestor_throttle.cc ...
3 years, 9 months ago (2017-03-22 08:57:38 UTC) #18
arthursonzogni
I applied your suggestion. Thanks for the review! https://codereview.chromium.org/2761153003/diff/60001/content/browser/frame_host/ancestor_throttle.cc File content/browser/frame_host/ancestor_throttle.cc (right): https://codereview.chromium.org/2761153003/diff/60001/content/browser/frame_host/ancestor_throttle.cc#newcode192 content/browser/frame_host/ancestor_throttle.cc:192: if ...
3 years, 9 months ago (2017-03-22 09:38:35 UTC) #19
arthursonzogni
Hi Alex, Please can you take a this CL? (as an OWNER of content) Thanks!
3 years, 8 months ago (2017-03-29 09:32:55 UTC) #37
alexmos
content/ LGTM, and a couple of minor clarification questions about test expectations. https://codereview.chromium.org/2761153003/diff/200001/content/common/content_security_policy/csp_context.h File content/common/content_security_policy/csp_context.h ...
3 years, 8 months ago (2017-03-29 23:27:32 UTC) #38
arthursonzogni
Thanks for the review! https://codereview.chromium.org/2761153003/diff/200001/content/common/content_security_policy/csp_context.h File content/common/content_security_policy/csp_context.h (right): https://codereview.chromium.org/2761153003/diff/200001/content/common/content_security_policy/csp_context.h#newcode23 content/common/content_security_policy/csp_context.h:23: // and what is the ...
3 years, 8 months ago (2017-03-30 11:36:27 UTC) #43
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/2761153003/240001
3 years, 8 months ago (2017-03-30 11:51:50 UTC) #46
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 11:56:51 UTC) #49
Message was sent while issue was closed.
Committed patchset #8 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/8bec3f2a2edf7217f83d10fe9298...

Powered by Google App Engine
This is Rietveld 408576698