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

Issue 2729433003: PlzNavigate: add support for BLOCK_REQUEST during redirects (Closed)

Created:
3 years, 9 months ago by clamy
Modified:
3 years, 9 months ago
Reviewers:
Charlie Reis, nasko
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: add support for BLOCK_REQUEST during redirects This CL adds support for blocking requests in NavigationRequest during redirects. It also fixes an issue in NavigationHandle, without PlzNavigate activated, where the NavigationHandle would not be properly recognized at error page commit if the navigation was blocked by a NavigationThrottle during a redirect. This is based on arthursonzogni@ CLs https://codereview.chromium.org/2712123002/ and https://codereview.chromium.org/2698623006 that I'm trying to land while he's OOO. BUG=685074, 695421 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -13 lines) Patch
M content/browser/frame_host/navigation_handle_impl.cc View 1 5 chunks +31 lines, -6 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 1 7 chunks +86 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/browser/navigation_throttle.h View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (6 generated)
clamy
@nasko, creis: PTAL. This is a merge of two of Arthur CLs that are needed ...
3 years, 9 months ago (2017-03-01 17:52:52 UTC) #3
nasko
Just a couple of nits. I'll leave the approval to creis@, as he had concerns ...
3 years, 9 months ago (2017-03-01 18:12:43 UTC) #4
clamy
3 years, 9 months ago (2017-03-02 12:43:17 UTC) #6
Thanks!

https://codereview.chromium.org/2729433003/diff/1/content/browser/frame_host/...
File content/browser/frame_host/navigation_handle_impl.cc (right):

https://codereview.chromium.org/2729433003/diff/1/content/browser/frame_host/...
content/browser/frame_host/navigation_handle_impl.cc:580: if
(!IsSelfReferentialURL()) {
On 2017/03/01 18:12:43, nasko (slow) wrote:
> nit: It is easier to read the positive statement, so I'd suggest switching it
> around if there is a follow up patchset.

Done.

https://codereview.chromium.org/2729433003/diff/1/content/browser/frame_host/...
File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right):

https://codereview.chromium.org/2729433003/diff/1/content/browser/frame_host/...
content/browser/frame_host/navigation_handle_impl_browsertest.cc:1093: const
std::vector<GURL>& GetStartedNavigationURLS() {
On 2017/03/01 18:12:43, nasko (slow) wrote:
> nit: hacker_case

Done.

Powered by Google App Engine
This is Rietveld 408576698