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

Issue 2161073002: Adds RequestContextType information to the NavigationHandle. (Closed)

Created:
4 years, 5 months ago by carlosk
Modified:
4 years, 4 months ago
Reviewers:
clamy, Mike West, nasko
CC:
Mike West, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, loading-reviews_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

Adds RequestContextType information to the NavigationHandle. This is a spin off from the change to partially move mixed content checks to the browser process [1]. With the move the information about the RequestContextType of the navigtation load needs to be available in browser and this change makes that happen. [1] https://codereview.chromium.org/1905033002/ BUG=1905033002 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/489d9e29eea7297eab0bf3b8000f1be0096b4262 Cr-Commit-Position: refs/heads/master@{#407472}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressing reviewer comments. #

Patch Set 3 : Added tests. #

Patch Set 4 : Rebase. #

Total comments: 17

Patch Set 5 : Addressed clamy@'s and nasko@'s comments. #

Total comments: 8

Patch Set 6 : Addressed clamy@'s latest comments. #

Total comments: 4

Patch Set 7 : Comments. Better ones. #

Total comments: 3

Patch Set 8 : Excluded test failing with PlzNavigate enabled #

Patch Set 9 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -14 lines) Patch
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 1 2 3 4 5 6 4 chunks +147 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 1 2 3 4 5 4 chunks +22 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/navigation_resource_throttle.h View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/loader/navigation_resource_throttle.cc View 1 2 3 4 4 chunks +7 lines, -4 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 4 chunks +10 lines, -5 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 52 (30 generated)
carlosk
clamy@: PTAL. nasko@, mkwst@: FYI.
4 years, 5 months ago (2016-07-19 14:14:07 UTC) #5
carlosk
nasko@ PTAL. To keep this moving I'm making nasko@ a reviewer too as clamy@ is ...
4 years, 5 months ago (2016-07-20 09:11:01 UTC) #9
Mike West
https://codereview.chromium.org/2161073002/diff/1/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2161073002/diff/1/content/browser/frame_host/navigation_handle_impl.cc#newcode75 content/browser/frame_host/navigation_handle_impl.cc:75: pending_nav_entry_id_(pending_nav_entry_id) { Can you please initialize `fetch_request_context_type_`, perhaps to ...
4 years, 5 months ago (2016-07-20 09:52:47 UTC) #11
carlosk
Thanks! https://codereview.chromium.org/2161073002/diff/1/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2161073002/diff/1/content/browser/frame_host/navigation_handle_impl.cc#newcode75 content/browser/frame_host/navigation_handle_impl.cc:75: pending_nav_entry_id_(pending_nav_entry_id) { On 2016/07/20 09:52:46, Mike West wrote: ...
4 years, 5 months ago (2016-07-20 10:12:02 UTC) #12
Mike West
https://codereview.chromium.org/2161073002/diff/1/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2161073002/diff/1/content/browser/frame_host/navigation_handle_impl.h#newcode167 content/browser/frame_host/navigation_handle_impl.h:167: return fetch_request_context_type_; On 2016/07/20 at 10:12:02, carlosk wrote: > ...
4 years, 5 months ago (2016-07-20 11:56:36 UTC) #13
carlosk
Thanks. Gosh! It's hard to wrap my head around these browser tests (aka took me ...
4 years, 5 months ago (2016-07-20 16:26:27 UTC) #16
Mike West
LGTM, thanks for taking another pass.
4 years, 5 months ago (2016-07-21 07:38:44 UTC) #19
clamy
Thanks! A few comments. https://codereview.chromium.org/2161073002/diff/60001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2161073002/diff/60001/content/browser/frame_host/navigation_handle_impl.h#newcode166 content/browser/frame_host/navigation_handle_impl.h:166: RequestContextType fetch_request_context_type() const { Add ...
4 years, 5 months ago (2016-07-21 11:30:21 UTC) #20
nasko
https://codereview.chromium.org/2161073002/diff/60001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2161073002/diff/60001/content/browser/frame_host/navigation_handle_impl.h#newcode318 content/browser/frame_host/navigation_handle_impl.h:318: RequestContextType fetch_request_context_type_; I'm a bit puzzled by the "fetch_" ...
4 years, 5 months ago (2016-07-21 22:04:35 UTC) #21
carlosk
Thanks! https://codereview.chromium.org/2161073002/diff/60001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2161073002/diff/60001/content/browser/frame_host/navigation_handle_impl.h#newcode166 content/browser/frame_host/navigation_handle_impl.h:166: RequestContextType fetch_request_context_type() const { On 2016/07/21 11:30:21, clamy ...
4 years, 5 months ago (2016-07-22 12:51:27 UTC) #24
clamy
Thanks! A few more comments, and this should be good. https://codereview.chromium.org/2161073002/diff/60001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2161073002/diff/60001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode684 ...
4 years, 5 months ago (2016-07-22 13:51:31 UTC) #27
carlosk
Thanks. https://codereview.chromium.org/2161073002/diff/60001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2161073002/diff/60001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode684 content/browser/frame_host/navigation_handle_impl_browsertest.cc:684: "a.com", "/cross_site_iframe_factory.html?a(b(c))")); On 2016/07/22 13:51:31, clamy wrote: > ...
4 years, 5 months ago (2016-07-22 16:00:30 UTC) #30
clamy
Thanks! Lgtm. https://codereview.chromium.org/2161073002/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2161073002/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode748 content/browser/frame_host/navigation_handle_impl_browsertest.cc:748: // Executes the main frame navigation. nit: ...
4 years, 5 months ago (2016-07-22 16:09:45 UTC) #31
nasko
There is one thing that needs to change, but can be done as part of ...
4 years, 5 months ago (2016-07-22 23:36:25 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/2161073002/120001
4 years, 5 months ago (2016-07-22 23:37:01 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/267880)
4 years, 5 months ago (2016-07-23 00:55:08 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/2161073002/120001
4 years, 4 months ago (2016-07-25 09:11:09 UTC) #40
carlosk
The failed test is due to an error in PlzNavigate: we are firing navigation observer ...
4 years, 4 months ago (2016-07-25 13:06:10 UTC) #45
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/2161073002/160001
4 years, 4 months ago (2016-07-25 13:26:41 UTC) #48
nasko
https://codereview.chromium.org/2161073002/diff/120001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2161073002/diff/120001/content/browser/frame_host/navigation_handle_impl.h#newcode121 content/browser/frame_host/navigation_handle_impl.h:121: RequestContextType GetRequestContextType() const; On 2016/07/25 13:06:10, carlosk wrote: > ...
4 years, 4 months ago (2016-07-25 13:57:58 UTC) #49
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-07-25 14:25:58 UTC) #50
commit-bot: I haz the power
4 years, 4 months ago (2016-07-25 14:27:13 UTC) #52
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/489d9e29eea7297eab0bf3b8000f1be0096b4262
Cr-Commit-Position: refs/heads/master@{#407472}

Powered by Google App Engine
This is Rietveld 408576698