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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp

Issue 2540493002: DevTools: pick resource with certificate when retrieving cert data. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
index 02ff9331215d9cbebb3de32c0d78805420a1b8f6..9192c3ed39a713aec69c3f4510e23b41c1e402f8 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
@@ -1399,7 +1399,8 @@ Response InspectorNetworkAgent::getCertificate(
for (auto& resource : m_resourcesData->resources()) {
RefPtr<SecurityOrigin> resourceOrigin =
SecurityOrigin::create(resource->requestedURL());
- if (resourceOrigin->isSameSchemeHostPort(securityOrigin.get())) {
+ if (resourceOrigin->isSameSchemeHostPort(securityOrigin.get()) &&
+ resource->certificate().size()) {
for (auto& cert : resource->certificate())
certificate->get()->addItem(base64Encode(cert.latin1()));
return Response::OK();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698