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

Issue 2099243002: PlzNavigate: properly set the initiator of the navigation (Closed)

Created:
4 years, 5 months ago by clamy
Modified:
4 years ago
CC:
carlosk, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, loading-reviews_chromium.org, mlamouri+watch-content_chromium.org, mmenke, nasko+codewatch_chromium.org, Randy Smith (Not in Mondays)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: properly set the initiator of the navigation This CL ensures that the request initiator is properly set in navigations when PlzNavigate is enabled. This fixes RequestDataResourceDispatcherHostBrowserTest realted to the request initiator. BUG=475027 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/fd58ca0775c71238123c04453aca6b711e8ed6d8 Cr-Commit-Position: refs/heads/master@{#440136}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments #

Total comments: 4

Patch Set 3 : Rebased on 2405483002 #

Patch Set 4 : Rebase #

Total comments: 3

Patch Set 5 : Rebase #

Patch Set 6 : Fixed issue in SW preload #

Total comments: 2

Patch Set 7 : Rebase + addressed horo's comment #

Patch Set 8 : Rebase #

Patch Set 9 : Now setting strict cookies when initiator is empty #

Total comments: 2

Patch Set 10 : Rebase #

Patch Set 11 : Addressed comments #

Total comments: 10

Patch Set 12 : Rebase #

Patch Set 13 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -49 lines) Patch
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_request_info.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_request_info.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_unittest.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +61 lines, -11 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/common/navigation_params.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +10 lines, -1 line 0 comments Download
M content/common/navigation_params.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -1 line 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 82 (46 generated)
clamy
@nkwst, nasko: PTAL @carlosk: FYI (this fixes the tests you're adding to the filter in ...
4 years, 5 months ago (2016-06-27 11:46:08 UTC) #5
Mike West
Moving the data to 'BeginNavigationParams' looks good % comments. Thanks for poking at this! https://codereview.chromium.org/2099243002/diff/1/content/browser/frame_host/navigation_request.cc ...
4 years, 5 months ago (2016-06-27 12:10:08 UTC) #6
clamy
Thanks! https://codereview.chromium.org/2099243002/diff/1/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2099243002/diff/1/content/browser/frame_host/navigation_request.cc#newcode92 content/browser/frame_host/navigation_request.cc:92: : frame_tree_node->frame_tree()->root()->current_origin(); On 2016/06/27 12:10:08, Mike West wrote: ...
4 years, 5 months ago (2016-06-27 12:33:29 UTC) #7
Mike West
Thanks for the clarification. LGTM % pending testing nit and compilation error. :) https://codereview.chromium.org/2099243002/diff/1/content/browser/frame_host/navigation_request.cc File ...
4 years, 5 months ago (2016-06-27 12:55:13 UTC) #8
clamy
Thanks! https://codereview.chromium.org/2099243002/diff/1/content/common/navigation_params.h File content/common/navigation_params.h (right): https://codereview.chromium.org/2099243002/diff/1/content/common/navigation_params.h#newcode167 content/common/navigation_params.h:167: // Indicates the initiator of the request. Normally ...
4 years, 5 months ago (2016-06-27 13:36:15 UTC) #9
carlosk
https://codereview.chromium.org/2099243002/diff/1/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2099243002/diff/1/content/browser/frame_host/navigation_request.cc#newcode92 content/browser/frame_host/navigation_request.cc:92: : frame_tree_node->frame_tree()->root()->current_origin(); On 2016/06/27 12:55:13, Mike West wrote: > ...
4 years, 5 months ago (2016-06-28 12:03:17 UTC) #11
nasko
https://codereview.chromium.org/2099243002/diff/20001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2099243002/diff/20001/content/browser/frame_host/navigation_request.cc#newcode91 content/browser/frame_host/navigation_request.cc:91: ? url::Origin(dest_url) This just feels wrong. Why would the ...
4 years, 5 months ago (2016-06-28 18:32:23 UTC) #12
clamy
https://codereview.chromium.org/2099243002/diff/20001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2099243002/diff/20001/content/browser/frame_host/navigation_request.cc#newcode91 content/browser/frame_host/navigation_request.cc:91: ? url::Origin(dest_url) On 2016/06/28 18:32:22, nasko wrote: > This ...
4 years, 5 months ago (2016-06-29 11:23:20 UTC) #13
nasko
On 2016/06/29 11:23:20, clamy wrote: > https://codereview.chromium.org/2099243002/diff/20001/content/browser/frame_host/navigation_request.cc > File content/browser/frame_host/navigation_request.cc (right): > > https://codereview.chromium.org/2099243002/diff/20001/content/browser/frame_host/navigation_request.cc#newcode91 > ...
4 years, 5 months ago (2016-06-30 22:47:25 UTC) #14
Mike West
On 2016/06/30 at 22:47:25, nasko wrote: > On 2016/06/29 11:23:20, clamy wrote: > > https://codereview.chromium.org/2099243002/diff/20001/content/browser/frame_host/navigation_request.cc ...
4 years, 5 months ago (2016-07-04 08:51:03 UTC) #15
Mike West
On 2016/07/04 at 08:51:03, Mike West wrote: > At a low-level, we're currently doing this ...
4 years, 5 months ago (2016-07-06 12:16:08 UTC) #16
nasko
On 2016/07/06 12:16:08, Mike West wrote: > On 2016/07/04 at 08:51:03, Mike West wrote: > ...
4 years, 5 months ago (2016-07-18 23:39:30 UTC) #17
clamy
@nasko, mkwst: PTAL. This is a rebase on the optional initiator patch. Note that while ...
4 years, 1 month ago (2016-11-14 13:42:04 UTC) #34
Mike West
The high-level change LGTM. If carlosk@/nasko@ are happy with the details, I'm happy with the ...
4 years, 1 month ago (2016-11-17 14:20:41 UTC) #37
nasko
https://codereview.chromium.org/2099243002/diff/60001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2099243002/diff/60001/content/browser/frame_host/navigation_request.cc#newcode156 content/browser/frame_host/navigation_request.cc:156: frame_tree_node->frame_tree()->root()->current_origin()); Why have an initiator origin for browser-initiated navigations? ...
4 years, 1 month ago (2016-11-18 19:49:15 UTC) #38
Mike West
On 2016/11/18 at 19:49:15, nasko wrote: > https://codereview.chromium.org/2099243002/diff/60001/content/browser/frame_host/navigation_request.cc > File content/browser/frame_host/navigation_request.cc (right): > > https://codereview.chromium.org/2099243002/diff/60001/content/browser/frame_host/navigation_request.cc#newcode156 ...
4 years ago (2016-11-23 13:10:12 UTC) #39
nasko
On 2016/11/23 13:10:12, Mike West (slow) wrote: > On 2016/11/18 at 19:49:15, nasko wrote: > ...
4 years ago (2016-11-23 18:22:45 UTC) #40
clamy
On 2016/11/23 18:22:45, nasko wrote: > On 2016/11/23 13:10:12, Mike West (slow) wrote: > > ...
4 years ago (2016-11-24 10:06:58 UTC) #41
clamy
Let me sum up where we're at with this patch so that it can eventually ...
4 years ago (2016-12-06 14:19:50 UTC) #42
nasko
On 2016/12/06 14:19:50, clamy wrote: > Let me sum up where we're at with this ...
4 years ago (2016-12-08 17:00:00 UTC) #43
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/2099243002/80001
4 years ago (2016-12-08 18:08:45 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/82549)
4 years ago (2016-12-08 19:43:26 UTC) #48
clamy
@horo: PTAL at the changes in the SW code.
4 years ago (2016-12-09 17:31:44 UTC) #53
horo
The change in service_worker_fetch_dispatcher.cc LGTM. > - we agree that top-level browser-initiated navigations should not ...
4 years ago (2016-12-12 07:07:58 UTC) #56
clamy
On 2016/12/12 07:07:58, horo (ooo Dec.14 - Jan.4) wrote: > The change in service_worker_fetch_dispatcher.cc LGTM. ...
4 years ago (2016-12-12 16:52:20 UTC) #57
clamy
https://codereview.chromium.org/2099243002/diff/100001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2099243002/diff/100001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode421 content/browser/service_worker/service_worker_fetch_dispatcher.cc:421: request.request_initiator = original_request->initiator().has_value() On 2016/12/12 07:07:57, horo (ooo Dec.14 ...
4 years ago (2016-12-12 16:52:33 UTC) #58
nasko
On 2016/12/12 16:52:20, clamy wrote: > On 2016/12/12 07:07:58, horo (ooo Dec.14 - Jan.4) wrote: ...
4 years ago (2016-12-12 16:56:53 UTC) #59
clamy
I've updated the patch so that we set the cookies similarly if we have no ...
4 years ago (2016-12-14 15:28:25 UTC) #63
mmenke
https://codereview.chromium.org/2099243002/diff/160001/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): https://codereview.chromium.org/2099243002/diff/160001/net/url_request/url_request_http_job.cc#newcode700 net/url_request/url_request_http_job.cc:700: request_->url(), request_->initiator().value().GetURL(), Won't this crash if initiator is nullptr ...
4 years ago (2016-12-14 16:28:57 UTC) #66
clamy
@mmenke: PTAL https://codereview.chromium.org/2099243002/diff/160001/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): https://codereview.chromium.org/2099243002/diff/160001/net/url_request/url_request_http_job.cc#newcode700 net/url_request/url_request_http_job.cc:700: request_->url(), request_->initiator().value().GetURL(), On 2016/12/14 16:28:57, mmenke (Out ...
4 years ago (2016-12-16 17:07:42 UTC) #69
mmenke
net/ LGTM
4 years ago (2016-12-16 17:21:39 UTC) #70
nasko
I don't want to derail this work any more than I have already done. If ...
4 years ago (2016-12-16 20:32:42 UTC) #73
clamy
Thanks! https://codereview.chromium.org/2099243002/diff/200001/content/common/navigation_params.h File content/common/navigation_params.h (right): https://codereview.chromium.org/2099243002/diff/200001/content/common/navigation_params.h#newcode152 content/common/navigation_params.h:152: const base::Optional<url::Origin>& initiator); On 2016/12/16 20:32:42, nasko wrote: ...
4 years ago (2016-12-21 14:54:19 UTC) #74
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/2099243002/240001
4 years ago (2016-12-21 14:54:49 UTC) #77
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years ago (2016-12-21 17:19:06 UTC) #80
commit-bot: I haz the power
4 years ago (2016-12-21 17:23:50 UTC) #82
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/fd58ca0775c71238123c04453aca6b711e8ed6d8
Cr-Commit-Position: refs/heads/master@{#440136}

Powered by Google App Engine
This is Rietveld 408576698