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

Issue 2909513002: Move PlzNavigate frame-src CSP check to NavigationRequest (Closed)

Created:
3 years, 7 months ago by estark
Modified:
3 years, 6 months ago
Reviewers:
clamy, Mike West, nasko
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, arthursonzogni
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move PlzNavigate frame-src CSP check to NavigationRequest This is in the process of moving upgrade-insecure-requests to the browser process for frame-src checks for PlzNavigate. By doing the frame-src CSP check in NavigationRequest instead of a NavigationThrottle, we will be able to modify the request URL if required by upgrade-insecure-requests. This CL just moves the existing CSP check from AncestorThrottle to NavigationRequest but does not yet implement upgrade-insecure-requests or reporting for upgrade-insecure-requests (that will be in a follow-up CL). BUG=713388 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2909513002 Cr-Commit-Position: refs/heads/master@{#477388} Committed: https://chromium.googlesource.com/chromium/src/+/1cfb38a9685f1e8561435982acbe797912cdb9e1

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : move csp before navigation throttles #

Patch Set 4 : remove redundant check #

Patch Set 5 : allow null SourceLocation #

Patch Set 6 : create navigation handle before checking csp #

Patch Set 7 : fix ordering again #

Patch Set 8 : rebase #

Patch Set 9 : comment tweaks #

Total comments: 19

Patch Set 10 : nasko comments #

Patch Set 11 : use same comment in OnRequestRedirected #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -44 lines) Patch
M content/browser/frame_host/ancestor_throttle.h View 2 chunks +0 lines, -5 lines 0 comments Download
M content/browser/frame_host/ancestor_throttle.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +58 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 47 (35 generated)
estark
mkwst: could you please take a look at this and its follow-up https://codereview.chromium.org/2910573002/ before I ...
3 years, 6 months ago (2017-05-29 20:50:18 UTC) #29
Mike West
This CL LGTM % a tiny nit. https://codereview.chromium.org/2909513002/diff/160001/content/browser/frame_host/navigation_request.h File content/browser/frame_host/navigation_request.h (right): https://codereview.chromium.org/2909513002/diff/160001/content/browser/frame_host/navigation_request.h#newcode229 content/browser/frame_host/navigation_request.h:229: bool is_redirect); ...
3 years, 6 months ago (2017-05-30 07:27:51 UTC) #30
estark
Nasko: I'm sending this CL and a follow-up your way but I know you're OOO ...
3 years, 6 months ago (2017-06-01 04:12:51 UTC) #32
nasko
Adding clamy@, as in a previous discussion about this, she mentioned that we might not ...
3 years, 6 months ago (2017-06-01 05:25:48 UTC) #34
clamy
On 2017/06/01 05:25:48, nasko (out until 6-1) wrote: > Adding clamy@, as in a previous ...
3 years, 6 months ago (2017-06-01 14:58:31 UTC) #35
estark
On 2017/06/01 14:58:31, clamy (slow) wrote: > On 2017/06/01 05:25:48, nasko (out until 6-1) wrote: ...
3 years, 6 months ago (2017-06-01 15:22:40 UTC) #36
nasko
Mostly nits and just one question. https://codereview.chromium.org/2909513002/diff/160001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2909513002/diff/160001/content/browser/frame_host/navigation_request.cc#newcode391 content/browser/frame_host/navigation_request.cc:391: // navigation throttles ...
3 years, 6 months ago (2017-06-05 20:46:30 UTC) #37
estark
Thanks, Nasko. https://codereview.chromium.org/2909513002/diff/160001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2909513002/diff/160001/content/browser/frame_host/navigation_request.cc#newcode391 content/browser/frame_host/navigation_request.cc:391: // navigation throttles allow, but would block ...
3 years, 6 months ago (2017-06-06 00:38:03 UTC) #38
nasko
LGTM https://codereview.chromium.org/2909513002/diff/160001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2909513002/diff/160001/content/browser/frame_host/navigation_request.cc#newcode391 content/browser/frame_host/navigation_request.cc:391: // navigation throttles allow, but would block it ...
3 years, 6 months ago (2017-06-06 01:03:44 UTC) #39
estark
https://codereview.chromium.org/2909513002/diff/160001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2909513002/diff/160001/content/browser/frame_host/navigation_request.cc#newcode391 content/browser/frame_host/navigation_request.cc:391: // navigation throttles allow, but would block it otherwise. ...
3 years, 6 months ago (2017-06-06 19:22:16 UTC) #40
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/2909513002/240001
3 years, 6 months ago (2017-06-06 19:23:47 UTC) #44
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 20:27:05 UTC) #47
Message was sent while issue was closed.
Committed patchset #12 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/1cfb38a9685f1e8561435982acbe...

Powered by Google App Engine
This is Rietveld 408576698