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

Issue 2712123002: Fix bug when a NavigationThrottle blocks a request during a redirect. (Closed)

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

Description

Fix bug when a NavigationThrottle blocks a request during a redirect. When PlzNavigate is **disabled**, when a request is blocked on a redirect and the browser asks the renderer to commit an error page, blink doesn't know about the latest redirect and use the post-redirect URL. This cause a mismatch in TakeNavigationHandleForCommit. This CL doesn't make blink aware of the redirect, but allows the NavigationHandle to be matched with the navigation. BUG=695421 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -1 line) Patch
M content/browser/frame_host/navigation_handle_impl.cc View 2 chunks +4 lines, -1 line 2 comments Download
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 1 chunk +59 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 chunk +15 lines, -0 lines 1 comment Download

Depends on Patchset:

Messages

Total messages: 10 (7 generated)
arthursonzogni
Hi Charlie, Please take a look, Thanks! +CC clamy@
3 years, 10 months ago (2017-02-24 13:47:58 UTC) #7
Charlie Reis
Hmm, I'm concerned about having the renderer commit the wrong URL. (Sounds like this isn't ...
3 years, 10 months ago (2017-02-24 22:19:11 UTC) #8
arthursonzogni
3 years, 9 months ago (2017-03-06 15:19:22 UTC) #10
Thanks Charlie,

This CL will be merged with:
https://codereview.chromium.org/2698623006
I will close this CL.

In the meantime, @clamy makes the CL move forward while I was OOO in:
https://codereview.chromium.org/2729433003/

Powered by Google App Engine
This is Rietveld 408576698