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

Issue 2485783002: PlzNavigate: send searchable form data to the browser side on form submission. (Closed)

Created:
4 years, 1 month ago by yzshen1
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, clamy, sky, yhirano
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, tyoshino+watch_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, loading-reviews_chromium.org, dglazkov+blink, darin-cc_chromium.org, gavinp+loader_chromium.org, blink-reviews, kinuko+watch, Nate Chapin, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[draft] PlzNavigate: send searchable form data to the browser side on form submission. In the non-PlzNavigate case, searchable form data is stored in the provisional document loader by RenderFrameImpl::willSubmitForm, and later sent to the browser in the DidCommitProvisionalLoad message. In the PlzNavigate case, however, there isn't a provisional document loader when RenderFrameImpl::willSubmitForm is called. Therefore, this CL sends the information to the browser side in the BeginNavigation message, and store it in NavigationHandleImpl. This fixes TemplateURLScraperTest.ScrapeWithOnSubmit for PlzNavigate. BUG=504347 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/15ceb3909b88d7d858a47547c9fc03f1eee20776 Cr-Commit-Position: refs/heads/master@{#431915}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 8

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 7

Patch Set 6 : . #

Patch Set 7 : rebase&resolve #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -44 lines) Patch
M chrome/browser/ui/search_engines/search_engine_tab_helper.h View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/search_engines/search_engine_tab_helper.cc View 1 2 3 5 chunks +12 lines, -11 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 6 3 chunks +10 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 5 6 2 chunks +12 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 2 chunks +23 lines, -3 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M content/common/navigation_params.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/frame_navigate_params.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 1 chunk +17 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 3 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 48 (30 generated)
yzshen1
Hi, Camille. Would you please take a look and see whether this approach makes sense? ...
4 years, 1 month ago (2016-11-08 00:53:16 UTC) #7
clamy
Thanks! The approach looks good globally, a dew comments below. https://codereview.chromium.org/2485783002/diff/40001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2485783002/diff/40001/content/browser/frame_host/navigation_request.cc#newcode310 ...
4 years, 1 month ago (2016-11-09 16:33:29 UTC) #10
yzshen1
Thanks Camille! +more owners: Scott: please do an OWNER review for chrome/browser/ui and WebKit. Tom: ...
4 years, 1 month ago (2016-11-09 19:41:27 UTC) #14
Tom Sepez
LGTM, this is just moving around information that is already sent.
4 years, 1 month ago (2016-11-09 21:03:45 UTC) #17
sky
chrome LGTM, but please find another owner for webkit.
4 years, 1 month ago (2016-11-09 23:14:41 UTC) #20
yzshen1
On 2016/11/09 23:14:41, sky wrote: > chrome LGTM, but please find another owner for webkit. ...
4 years, 1 month ago (2016-11-09 23:17:57 UTC) #23
yhirano
On 2016/11/09 23:17:57, yzshen1 wrote: > On 2016/11/09 23:14:41, sky wrote: > > chrome LGTM, ...
4 years, 1 month ago (2016-11-10 15:52:55 UTC) #24
clamy
Thanks! content/ looks mostly good, a few comments below. https://codereview.chromium.org/2485783002/diff/80001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2485783002/diff/80001/content/browser/frame_host/navigation_handle_impl.cc#newcode768 content/browser/frame_host/navigation_handle_impl.cc:768: ...
4 years, 1 month ago (2016-11-10 17:29:33 UTC) #25
yzshen1
Thanks! https://codereview.chromium.org/2485783002/diff/80001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2485783002/diff/80001/content/browser/frame_host/navigation_handle_impl.cc#newcode768 content/browser/frame_host/navigation_handle_impl.cc:768: const GURL& NavigationHandleImpl::GetSearchableFormURL() { On 2016/11/10 17:29:33, clamy ...
4 years, 1 month ago (2016-11-10 18:59:50 UTC) #27
yzshen1
On 2016/11/10 18:59:50, yzshen1 wrote: > Thanks! > > https://codereview.chromium.org/2485783002/diff/80001/content/browser/frame_host/navigation_handle_impl.cc > File content/browser/frame_host/navigation_handle_impl.cc (right): > ...
4 years, 1 month ago (2016-11-11 23:06:15 UTC) #31
clamy
Thanks! Lgtm. Sorry for the late answer, Friday was a public holiday in France. https://codereview.chromium.org/2485783002/diff/80001/content/browser/frame_host/navigation_handle_impl.cc ...
4 years, 1 month ago (2016-11-14 12:30:23 UTC) #32
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/2485783002/100001
4 years, 1 month ago (2016-11-14 16:56:03 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/334630)
4 years, 1 month ago (2016-11-14 16:59:09 UTC) #37
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/2485783002/120001
4 years, 1 month ago (2016-11-14 17:24:47 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/316558)
4 years, 1 month ago (2016-11-14 18:52:32 UTC) #42
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/2485783002/120001
4 years, 1 month ago (2016-11-14 19:24:07 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-14 21:05:56 UTC) #46
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 21:11:57 UTC) #48
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/15ceb3909b88d7d858a47547c9fc03f1eee20776
Cr-Commit-Position: refs/heads/master@{#431915}

Powered by Google App Engine
This is Rietveld 408576698