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

Issue 2239273002: Don't use SSLStatus from FrameHostMsg_DidCommitProvisionalLoad and instead cache it on the browser … (Closed)

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

Description

Don't use SSLStatus from FrameHostMsg_DidCommitProvisionalLoad and instead cache it on the browser side. This is along the earlier patchsets of stopping to send SSLStatus to the renderer. This will help network service (since currently it's what sends this data, and it shouldn't know about UI state) and PlzNavigate (since this is a cursor for removing cert_ids which depend on having a renderer process during navigate). After this change, there's only one use left in the renderer that (devtools). BUG=598073, 504347 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/b981f48da6fd829f0deb5dc8563b5296f8f478cb Cr-Commit-Position: refs/heads/master@{#415186}

Patch Set 1 #

Patch Set 2 : fix SitePerProcessIgnoreCertErrorsBrowserTest.CrossSiteRedirectCertificateStore #

Patch Set 3 : Fix SSLUITest tests #

Patch Set 4 : slight cleanup #

Total comments: 9

Patch Set 5 : merge and comments #

Total comments: 6

Patch Set 6 : merge #

Patch Set 7 : always store on NavigationEntry #

Patch Set 8 : update LoadCommittedDetails #

Patch Set 9 : fix site isolation layouttests #

Patch Set 10 : Store SSLStatus in NavigationHandle #

Total comments: 13

Patch Set 11 : add url check for transfer case #

Total comments: 7

Patch Set 12 : review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -115 lines) Patch
M content/browser/bad_message.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -9 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -42 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/loader/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/navigation_resource_handler.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_resource_handler.cc View 1 2 3 4 5 6 7 8 9 4 chunks +14 lines, -3 lines 0 comments Download
M content/browser/loader/navigation_resource_throttle.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -1 line 0 comments Download
M content/browser/loader/navigation_resource_throttle.cc View 1 2 3 4 5 6 7 8 9 6 chunks +14 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_delegate.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_impl_core.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl_core.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +39 lines, -7 lines 1 comment Download
M content/browser/loader/resource_loader.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -16 lines 0 comments Download
M content/browser/ssl/ssl_manager.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -9 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/browser/navigation_details.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -8 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M content/test/test_navigation_url_loader.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M content/test/test_navigation_url_loader_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_navigation_url_loader_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 90 (68 generated)
jam
This is along the earlier patchsets of stopping to send SSLStatus to the renderer. This ...
4 years, 4 months ago (2016-08-13 21:14:48 UTC) #17
estark
Cool, it will be awesome if this works. I left a few questions inline. I ...
4 years, 4 months ago (2016-08-15 08:14:08 UTC) #20
jam
https://codereview.chromium.org/2239273002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2239273002/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode1130 content/browser/frame_host/navigation_controller_impl.cc:1130: if (params.url != new_entry->GetURL()) { On 2016/08/15 08:14:08, estark ...
4 years, 4 months ago (2016-08-15 19:23:59 UTC) #28
nasko
Overall it will be great to have a bit more strong binding between the status ...
4 years, 4 months ago (2016-08-15 22:18:22 UTC) #31
mmenke
Driveby response to a comment, don't plan to review the code, just want to make ...
4 years, 4 months ago (2016-08-15 22:48:32 UTC) #33
jam
https://codereview.chromium.org/2239273002/diff/100001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2239273002/diff/100001/content/browser/frame_host/render_frame_host_impl.cc#newcode2653 content/browser/frame_host/render_frame_host_impl.cc:2653: pending_navigate_ssl_status_url_ = GURL(); On 2016/08/15 22:18:22, nasko (slow) wrote: ...
4 years, 4 months ago (2016-08-15 22:57:38 UTC) #34
jam
ptal, now the SSLStatus is always stored on the pending NavigationEntry, instead of sometimes on ...
4 years, 4 months ago (2016-08-22 22:01:30 UTC) #50
jam
ptal, the SSLStatus is now stored on the NavigationHandle per your suggestion
4 years, 3 months ago (2016-08-25 03:35:17 UTC) #63
nasko
Overall it looks good and I think it is the better approach. Thanks for doing ...
4 years, 3 months ago (2016-08-25 18:09:48 UTC) #64
nasko
Also adding clamy@, as she knows the NavigationHandle code better than I do.
4 years, 3 months ago (2016-08-25 18:10:18 UTC) #66
jam
https://codereview.chromium.org/2239273002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2239273002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode439 content/browser/loader/resource_dispatcher_host_impl.cc:439: navigation_handle->UpdateSSLCertId(new_cert_id); On 2016/08/25 18:09:48, nasko (out until 08-30) wrote: ...
4 years, 3 months ago (2016-08-25 21:56:46 UTC) #68
clamy
https://codereview.chromium.org/2239273002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2239273002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode439 content/browser/loader/resource_dispatcher_host_impl.cc:439: navigation_handle->UpdateSSLCertId(new_cert_id); On 2016/08/25 21:56:46, jam wrote: > On 2016/08/25 ...
4 years, 3 months ago (2016-08-25 23:25:15 UTC) #70
Avi (use Gerrit)
Random drive-by https://codereview.chromium.org/2239273002/diff/240001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2239273002/diff/240001/content/browser/frame_host/navigation_handle_impl.cc#newcode442 content/browser/frame_host/navigation_handle_impl.cc:442: extra blank line
4 years, 3 months ago (2016-08-25 23:36:00 UTC) #71
clamy
Thanks! The code passing the SSLStatus to the NavigationHandle looks good. A few questions below. ...
4 years, 3 months ago (2016-08-26 00:06:57 UTC) #74
clamy
Ah and i realized I made a mistake and my comments are spilled over two ...
4 years, 3 months ago (2016-08-26 00:08:26 UTC) #75
nasko
Thanks John for changing this CL a few times! LGTM https://codereview.chromium.org/2239273002/diff/240001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2239273002/diff/240001/content/browser/frame_host/navigation_handle_impl.h#newcode226 ...
4 years, 3 months ago (2016-08-26 01:10:57 UTC) #76
jam
https://codereview.chromium.org/2239273002/diff/220001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (left): https://codereview.chromium.org/2239273002/diff/220001/content/browser/frame_host/navigation_controller_impl.cc#oldcode929 content/browser/frame_host/navigation_controller_impl.cc:929: if (!DeserializeSecurityInfo(params.security_info, &details->ssl_status)) { On 2016/08/26 00:06:57, clamy wrote: ...
4 years, 3 months ago (2016-08-26 03:36:43 UTC) #77
clamy
Thanks! Lgtm with one nit. https://codereview.chromium.org/2239273002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2239273002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode439 content/browser/loader/resource_dispatcher_host_impl.cc:439: navigation_handle->UpdateSSLCertId(new_cert_id); On 2016/08/26 03:36:43, ...
4 years, 3 months ago (2016-08-26 18:14:30 UTC) #82
estark
lgtm. One step closer to killing CertStore, yay!!!
4 years, 3 months ago (2016-08-29 21:49:35 UTC) #83
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/2239273002/260001
4 years, 3 months ago (2016-08-30 03:45:27 UTC) #86
commit-bot: I haz the power
Committed patchset #12 (id:260001)
4 years, 3 months ago (2016-08-30 05:55:20 UTC) #88
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 05:56:53 UTC) #90
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/b981f48da6fd829f0deb5dc8563b5296f8f478cb
Cr-Commit-Position: refs/heads/master@{#415186}

Powered by Google App Engine
This is Rietveld 408576698