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

Issue 2296953004: Send certificates to devtools when it's open instead of using certId (Closed)

Created:
4 years, 3 months ago by jam
Modified:
4 years, 3 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, caseq+blink_chromium.org, pfeldman+blink_chromium.org, Randy Smith (Not in Mondays), lushnikov+blink_chromium.org, blink-reviews, dglazkov+blink, darin-cc_chromium.org, devtools-reviews_chromium.org, loading-reviews_chromium.org, apavlov+blink_chromium.org, kinuko+watch, blink-reviews-api_chromium.org, mmenke, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Send certificates to devtools when it's open instead of using serialized SSLStatus and sending certificate IDs. 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 precursor for removing cert_ids which depend on having a renderer process during navigate). Since this patch has gotten large, I'll remove sending sending security_info to the renderer in a followup patch. BUG=598073, 504347 Committed: https://crrev.com/8b3813b7f3ac9e197305cc440b78c81773cd07af Cr-Commit-Position: refs/heads/master@{#416700}

Patch Set 1 #

Patch Set 2 : merge #

Patch Set 3 : take out unneeded code #

Total comments: 9

Patch Set 4 : pfeldman comment #

Total comments: 6

Patch Set 5 : fix linux sandbox #

Patch Set 6 : parse certificates in the renderer without the OS classes #

Total comments: 5

Patch Set 7 : merge #

Patch Set 8 : fix compile #

Patch Set 9 : clear certificates on didstartprovisionalload #

Total comments: 8

Patch Set 10 : update #

Patch Set 11 : merge #

Patch Set 12 : fixes (base64 encoding, using right WC) #

Patch Set 13 : move certificate parsing to net/cert #

Total comments: 21

Patch Set 14 : review comments #

Patch Set 15 : review comments #

Patch Set 16 : self review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+536 lines, -287 lines) Patch
M chrome/browser/devtools/devtools_ui_bindings.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +25 lines, -7 lines 0 comments Download
M content/browser/devtools/protocol/network_handler.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/devtools/protocol/network_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -49 lines 0 comments Download
M content/browser/devtools/protocol/security_handler.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/devtools/protocol/security_handler.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/loader/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 3 chunks +20 lines, -5 lines 0 comments Download
M content/browser/ssl/ssl_policy.h View 1 2 2 chunks +0 lines, -8 lines 0 comments Download
M content/browser/ssl/ssl_policy.cc View 1 2 3 chunks +2 lines, -22 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +47 lines, -22 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/resource_messages.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A content/common/security_style_util.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A content/common/security_style_util.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.h View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M net/cert/x509_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +13 lines, -0 lines 0 comments Download
M net/cert/x509_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +87 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +31 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/NetworkResourcesData.h View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 4 5 6 7 8 9 10 4 chunks +19 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol-1.2.json View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js View 1 2 3 4 5 6 7 8 9 8 chunks +92 lines, -74 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLResponse.cpp View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +13 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.cpp View 1 2 3 4 5 4 chunks +24 lines, -6 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLResponse.h View 1 2 3 4 5 2 chunks +19 lines, -3 lines 0 comments Download

Messages

Total messages: 127 (96 generated)
jam
4 years, 3 months ago (2016-08-31 22:04:05 UTC) #19
jam
https://codereview.chromium.org/2296953004/diff/80001/content/browser/devtools/protocol/security_handler.cc File content/browser/devtools/protocol/security_handler.cc (right): https://codereview.chromium.org/2296953004/diff/80001/content/browser/devtools/protocol/security_handler.cc#newcode150 content/browser/devtools/protocol/security_handler.cc:150: Response SecurityHandler::ShowCertificateViewer(int certificate_id) { this is temporary since it's ...
4 years, 3 months ago (2016-08-31 22:13:28 UTC) #20
pfeldman
https://codereview.chromium.org/2296953004/diff/80001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2296953004/diff/80001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode453 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:453: .setCertificateId(0) // Keep this in protocol for compatability. I'll ...
4 years, 3 months ago (2016-08-31 23:08:45 UTC) #21
jam
https://codereview.chromium.org/2296953004/diff/80001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h (right): https://codereview.chromium.org/2296953004/diff/80001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h#newcode202 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h:202: CertificateHashMap m_certificateHashMap; On 2016/08/31 23:08:45, pfeldman wrote: > We ...
4 years, 3 months ago (2016-08-31 23:15:09 UTC) #22
estark
Looks reasonable to me! Since I'm leaving on vacation tomorrow I don't think you should ...
4 years, 3 months ago (2016-09-01 00:20:03 UTC) #25
jam
https://codereview.chromium.org/2296953004/diff/100001/content/browser/devtools/protocol/network_handler.h File content/browser/devtools/protocol/network_handler.h (left): https://codereview.chromium.org/2296953004/diff/100001/content/browser/devtools/protocol/network_handler.h#oldcode58 content/browser/devtools/protocol/network_handler.h:58: Response ShowCertificateViewer(int certificate_id); On 2016/09/01 00:20:03, estark (OOO through ...
4 years, 3 months ago (2016-09-01 01:14:03 UTC) #28
jam
+nasko for security review of IPC (and feel free to look at anything else) I ...
4 years, 3 months ago (2016-09-02 01:10:47 UTC) #36
pfeldman
https://codereview.chromium.org/2296953004/diff/140001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2296953004/diff/140001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode955 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:955: m_certificates.clear(); We should clean up on didCommitLoad or reuse ...
4 years, 3 months ago (2016-09-02 01:18:59 UTC) #39
jam
https://codereview.chromium.org/2296953004/diff/140001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2296953004/diff/140001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode955 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:955: m_certificates.clear(); On 2016/09/02 01:18:59, pfeldman wrote: > We should ...
4 years, 3 months ago (2016-09-02 01:30:40 UTC) #42
jam
nasko->creis since nasko is ooo
4 years, 3 months ago (2016-09-02 01:33:48 UTC) #44
jam
https://codereview.chromium.org/2296953004/diff/140001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2296953004/diff/140001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode955 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:955: m_certificates.clear(); ok I think I understand your point better ...
4 years, 3 months ago (2016-09-02 16:40:47 UTC) #63
pfeldman
There is one more thing (see below). Let me help you with it real quick. ...
4 years, 3 months ago (2016-09-02 17:15:01 UTC) #65
Charlie Reis
On 2016/09/02 01:33:48, jam wrote: > nasko->creis since nasko is ooo Was this for IPC ...
4 years, 3 months ago (2016-09-02 17:27:59 UTC) #67
pfeldman
With this: https://codereview.chromium.org/2302873005 we don't need that IPS and devtools plumbing.
4 years, 3 months ago (2016-09-02 18:03:51 UTC) #68
jam
+Tom for IPC review. Notes on new fields sent to the renderer: -cert_status and ssl_connection_status ...
4 years, 3 months ago (2016-09-03 00:00:24 UTC) #75
Ryan Sleevi
https://codereview.chromium.org/2296953004/diff/260001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/2296953004/diff/260001/content/child/web_url_loader_impl.cc#newcode316 content/child/web_url_loader_impl.cc:316: DCHECK(rv); DESIGN: You've removed the code that sanity checked ...
4 years, 3 months ago (2016-09-03 00:02:51 UTC) #77
jam
https://codereview.chromium.org/2296953004/diff/260001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/2296953004/diff/260001/content/child/web_url_loader_impl.cc#newcode316 content/child/web_url_loader_impl.cc:316: DCHECK(rv); On 2016/09/03 00:02:51, Ryan Sleevi (slow) wrote: > ...
4 years, 3 months ago (2016-09-03 01:42:39 UTC) #80
Ryan Sleevi
On 2016/09/03 01:42:39, jam wrote: > Yes definitely that would be preferable. I originally used ...
4 years, 3 months ago (2016-09-03 02:15:54 UTC) #81
Ryan Sleevi
On 2016/09/03 02:15:54, Ryan Sleevi (slow) wrote: > WDYT? Ah, I should have clarified, I ...
4 years, 3 months ago (2016-09-03 02:25:35 UTC) #82
jam
On 2016/09/03 02:15:54, Ryan Sleevi (slow) wrote: > On 2016/09/03 01:42:39, jam wrote: > > ...
4 years, 3 months ago (2016-09-03 03:05:29 UTC) #83
jam
On 2016/09/03 03:05:29, jam wrote: > On 2016/09/03 02:15:54, Ryan Sleevi (slow) wrote: > > ...
4 years, 3 months ago (2016-09-03 03:06:49 UTC) #84
jam
+davidben for net/ changes David: Ryan asked for the certificate parsing code which uses net/cert/internal ...
4 years, 3 months ago (2016-09-06 15:04:33 UTC) #106
davidben
net lgtm modulo small comments. https://codereview.chromium.org/2296953004/diff/380001/net/cert/x509_util.cc File net/cert/x509_util.cc (right): https://codereview.chromium.org/2296953004/diff/380001/net/cert/x509_util.cc#newcode23 net/cert/x509_util.cc:23: bool GetCommonName(const net::der::Input& tlv, ...
4 years, 3 months ago (2016-09-06 17:21:46 UTC) #109
jam
https://codereview.chromium.org/2296953004/diff/380001/net/cert/x509_util.cc File net/cert/x509_util.cc (right): https://codereview.chromium.org/2296953004/diff/380001/net/cert/x509_util.cc#newcode23 net/cert/x509_util.cc:23: bool GetCommonName(const net::der::Input& tlv, std::string* common_name) { On 2016/09/06 ...
4 years, 3 months ago (2016-09-06 17:43:24 UTC) #112
pfeldman
lgtm https://codereview.chromium.org/2296953004/diff/380001/content/browser/devtools/protocol/network_handler.cc File content/browser/devtools/protocol/network_handler.cc (left): https://codereview.chromium.org/2296953004/diff/380001/content/browser/devtools/protocol/network_handler.cc#oldcode25 content/browser/devtools/protocol/network_handler.cc:25: #include "net/cert/x509_cert_types.h" I guess those are no longer ...
4 years, 3 months ago (2016-09-06 17:50:11 UTC) #115
Tom Sepez
messages LGTM
4 years, 3 months ago (2016-09-06 17:56:11 UTC) #116
jam
https://codereview.chromium.org/2296953004/diff/380001/content/browser/devtools/protocol/network_handler.cc File content/browser/devtools/protocol/network_handler.cc (left): https://codereview.chromium.org/2296953004/diff/380001/content/browser/devtools/protocol/network_handler.cc#oldcode25 content/browser/devtools/protocol/network_handler.cc:25: #include "net/cert/x509_cert_types.h" On 2016/09/06 17:50:11, pfeldman wrote: > I ...
4 years, 3 months ago (2016-09-06 18:00:34 UTC) #117
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/2296953004/420001
4 years, 3 months ago (2016-09-06 18:02:58 UTC) #120
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/2296953004/440001
4 years, 3 months ago (2016-09-06 18:18:10 UTC) #123
commit-bot: I haz the power
Committed patchset #16 (id:440001)
4 years, 3 months ago (2016-09-06 20:26:06 UTC) #125
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 20:29:08 UTC) #127
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/8b3813b7f3ac9e197305cc440b78c81773cd07af
Cr-Commit-Position: refs/heads/master@{#416700}

Powered by Google App Engine
This is Rietveld 408576698