Chromium Code Reviews
DescriptionFix shouldOverrideUrlLoading being called with the wrong is_redirect value with PlzNavigate.
The problem was that with PlzNavigate, when the navigation in the renderer happens we already have the full list of redirects. So the logic to determine if the first url was a redirect was failing. Fix that, and also remove an assert that legitimately happens when the embedder cancels a redirect.
This fixes
AwContentsClientShouldOverrideUrlLoadingTest_testCalledOn302Redirect
AwContentsClientShouldOverrideUrlLoadingTest_testCalledOn302Redirect_with__--webview-sandboxed-renderer_
AwContentsClientShouldOverrideUrlLoadingTest_testNullContentsClientWithServerRedirect
AwContentsClientShouldOverrideUrlLoadingTest_testNullContentsClientWithServerRedirect_with__--webview-sandboxed-renderer_
with PlzNavigate.
BUG=645983
Review-Url: https://codereview.chromium.org/2746733002
Cr-Commit-Position: refs/heads/master@{#456452}
Committed: https://chromium.googlesource.com/chromium/src/+/8a995f1eb09b00382fc071d347d59cc87c2544b2
Patch Set 1 #Patch Set 2 : without PlzNavigate #
Messages
Total messages: 19 (13 generated)
|
||||||||||||||||||||||||||||