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

Issue 2760463005: Fix handling of external protocols with PlzNavigate. (Closed)

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

Description

Fix handling of external protocols with PlzNavigate. This fixes UrlOverridingTest#testNavigationFromXHRCallbackAndLongTimeout ToolbarTest#testNTPNavigatesToErrorPageOnDisconnectedNetwork externalnav.UrlOverridingTest#testNavigationFromTimer Once is_external_protocol was set correctly, the second bug that happened was because with PlzNavigate we were making requests for chrome-native schemes. This caused NavigationHandleImpl::WillStartRequest to be called, which added navigation throttles and that ended up calling the Android navigation interceptor. It's not called without PlzNavigate, which led to these tests failures. BUG=699387 Review-Url: https://codereview.chromium.org/2760463005 Cr-Commit-Position: refs/heads/master@{#459285} Committed: https://chromium.googlesource.com/chromium/src/+/cc2df16e35d1016a66a1b457b4070cc50a54e045

Patch Set 1 : fix #

Patch Set 2 : simpler fix #

Patch Set 3 : fix #

Patch Set 4 : without PlzNavigate #

Patch Set 5 : fix #

Patch Set 6 : clean fix with PlzNavigate #

Patch Set 7 : without PlzNavigate #

Total comments: 6

Patch Set 8 : review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -33 lines) Patch
M chrome/common/chrome_content_client.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_thread_observer.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 2 chunks +8 lines, -5 lines 0 comments Download
M content/common/navigation_params.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -5 lines 0 comments Download
M content/common/url_schemes.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/content_client.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp View 1 2 3 4 5 6 7 3 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebSecurityPolicy.cpp View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/public/web/WebSecurityPolicy.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M url/url_util.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M url/url_util.cc View 1 2 3 4 5 6 7 5 chunks +19 lines, -0 lines 2 comments Download

Messages

Total messages: 69 (59 generated)
jam
Thanks for tracking down the difference in handled protocol logic :) I think I see ...
3 years, 9 months ago (2017-03-23 07:00:26 UTC) #32
jam
On 2017/03/23 07:00:26, jam wrote: > Thanks for tracking down the difference in handled protocol ...
3 years, 9 months ago (2017-03-23 14:57:50 UTC) #33
jam
Nico: WebKit/Source/platform Daniel: rest of WebKit Brett: outside of WebKit
3 years, 9 months ago (2017-03-23 20:26:22 UTC) #49
dcheng
blink lgtm https://codereview.chromium.org/2760463005/diff/190001/content/common/navigation_params.cc File content/common/navigation_params.cc (right): https://codereview.chromium.org/2760463005/diff/190001/content/common/navigation_params.cc#newcode33 content/common/navigation_params.cc:33: break; Nit: maybe slightly shorter to just ...
3 years, 9 months ago (2017-03-23 21:07:15 UTC) #50
jam
https://codereview.chromium.org/2760463005/diff/190001/content/common/navigation_params.cc File content/common/navigation_params.cc (right): https://codereview.chromium.org/2760463005/diff/190001/content/common/navigation_params.cc#newcode33 content/common/navigation_params.cc:33: break; On 2017/03/23 21:07:15, dcheng wrote: > Nit: maybe ...
3 years, 9 months ago (2017-03-23 21:43:21 UTC) #54
brettw
//url LGTM https://codereview.chromium.org/2760463005/diff/210001/url/url_util.cc File url/url_util.cc (right): https://codereview.chromium.org/2760463005/diff/210001/url/url_util.cc#newcode85 url/url_util.cc:85: kAboutScheme, Indenting.
3 years, 9 months ago (2017-03-23 22:02:13 UTC) #56
Ken Russell (switch to Gerrit)
lgtm
3 years, 9 months ago (2017-03-23 22:02:59 UTC) #58
jam
https://codereview.chromium.org/2760463005/diff/210001/url/url_util.cc File url/url_util.cc (right): https://codereview.chromium.org/2760463005/diff/210001/url/url_util.cc#newcode85 url/url_util.cc:85: kAboutScheme, On 2017/03/23 22:02:13, brettw (plz ping after 24h) ...
3 years, 9 months ago (2017-03-23 22:36:04 UTC) #59
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/2760463005/210001
3 years, 9 months ago (2017-03-23 23:46:30 UTC) #64
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 23:55:01 UTC) #68
Message was sent while issue was closed.
Committed patchset #8 (id:210001) as
https://chromium.googlesource.com/chromium/src/+/cc2df16e35d1016a66a1b457b407...

Powered by Google App Engine
This is Rietveld 408576698