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

Issue 2746733002: Fix shouldOverrideUrlLoading being called with the wrong is_redirect value with PlzNavigate. (Closed)

Created:
3 years, 9 months ago by jam
Modified:
3 years, 9 months ago
Reviewers:
sgurun-gerrit only
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -9 lines) Patch
M content/child/web_url_loader_impl.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 2 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
jam
3 years, 9 months ago (2017-03-13 14:35:57 UTC) #9
sgurun-gerrit only
On 2017/03/13 14:35:57, jam wrote: lgtm, I was hunting for the reason for these redirect ...
3 years, 9 months ago (2017-03-13 15:28:25 UTC) #10
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/2746733002/20001
3 years, 9 months ago (2017-03-13 16:01:30 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/382011)
3 years, 9 months ago (2017-03-13 17:20:05 UTC) #14
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/2746733002/20001
3 years, 9 months ago (2017-03-13 17:50:56 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 20:11:26 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/8a995f1eb09b00382fc071d347d5...

Powered by Google App Engine
This is Rietveld 408576698