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

Issue 2869423002: PlzNavigate: Do not disclose urls between cross-origin renderers. (Closed)

Created:
3 years, 7 months ago by arthursonzogni
Modified:
3 years, 7 months ago
Reviewers:
Mike West, alexmos
CC:
blink-reviews, chromium-reviews, creis+watch_chromium.org, Charlie Reis, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, nasko, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Do not disclose urls between cross-origin renderers. The browser transmits Urls between potentially separate, cross-origin renderers in RenderFrameHostImpl::ReportContentSecurityPolicyViolation. It is bad from a security point of view when one of the renderer is compromised. This CL prevent the browser to send the full path of the urls when they are cross-origin. It regresses the quality of some console messages. BUG=718942 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_browser_side_navigation_rel;master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2869423002 Cr-Commit-Position: refs/heads/master@{#472433} Committed: https://chromium.googlesource.com/chromium/src/+/74a80d7c654a53bbb1ad714d8d86c60af1646573

Patch Set 1 #

Total comments: 23

Patch Set 2 : alexmos@ suggestions. #

Total comments: 15

Patch Set 3 : Applying suggestions. #

Total comments: 16

Patch Set 4 : Addressed comments #

Patch Set 5 : Add [ Failure ] for virtual/off-main-thread-fetch/[...]/onload-detach-during-csp-frame-src-none.html #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -12 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 2 chunks +36 lines, -0 lines 0 comments Download
M content/common/content_security_policy/content_security_policy.cc View 1 2 3 3 chunks +12 lines, -3 lines 0 comments Download
M content/common/content_security_policy/csp_context.h View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M content/common/content_security_policy/csp_context.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M content/common/content_security_policy/csp_context_unittest.cc View 1 2 3 3 chunks +70 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 4 1 chunk +22 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (29 generated)
alexmos
Hey Arthur, Nasko asked me to preemptively start reviewing this CL to decrease some of ...
3 years, 7 months ago (2017-05-10 22:33:09 UTC) #8
arthursonzogni
Thanks alexmos@! Bot failure were just flake except of 1 more test that has regressed. ...
3 years, 7 months ago (2017-05-11 13:06:24 UTC) #13
alexmos
https://codereview.chromium.org/2869423002/diff/1/content/common/content_security_policy/content_security_policy.cc File content/common/content_security_policy/content_security_policy.cc (right): https://codereview.chromium.org/2869423002/diff/1/content/common/content_security_policy/content_security_policy.cc#newcode47 content/common/content_security_policy/content_security_policy.cc:47: GURL safe_url = context->IsOriginSafeToUseInCspViolation(url::Origin(url)) On 2017/05/11 13:06:23, arthursonzogni wrote: ...
3 years, 7 months ago (2017-05-12 01:37:20 UTC) #16
Mike West
On 2017/05/12 at 01:37:20, alexmos wrote: > I'll leave this up to Mike. I agree ...
3 years, 7 months ago (2017-05-12 14:16:44 UTC) #17
arthursonzogni
Thanks for the reviews! I made some changes taking your comments into account. On 2017/05/12 ...
3 years, 7 months ago (2017-05-15 12:20:47 UTC) #20
alexmos
Thanks! I'm happy with content/ -- just a few more minor things below. On 2017/05/15 ...
3 years, 7 months ago (2017-05-16 05:56:49 UTC) #23
Mike West
On 2017/05/16 at 05:56:49, alexmos wrote: > Thanks! I'm happy with content/ -- just a ...
3 years, 7 months ago (2017-05-16 09:22:47 UTC) #24
arthursonzogni
Here is a new patch that fixes the nits. https://codereview.chromium.org/2869423002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2869423002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode986 content/browser/frame_host/render_frame_host_impl.cc:986: ...
3 years, 7 months ago (2017-05-16 12:48:44 UTC) #27
alexmos
Thanks, LGTM. There are some failures on the PlzNav Linux bot, but hopefully those are ...
3 years, 7 months ago (2017-05-16 16:01:16 UTC) #30
Mike West
LGTM
3 years, 7 months ago (2017-05-17 07:02:42 UTC) #31
arthursonzogni
Thanks for the review alexmos@ and mkwst@! On 2017/05/16 16:01:16, alexmos wrote: > Thanks, LGTM. ...
3 years, 7 months ago (2017-05-17 12:41:56 UTC) #36
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/2869423002/80001
3 years, 7 months ago (2017-05-17 12:42:14 UTC) #39
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 12:48:02 UTC) #42
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/74a80d7c654a53bbb1ad714d8d86...

Powered by Google App Engine
This is Rietveld 408576698