Commit 922fbf55 authored by pfeldman's avatar pfeldman Committed by Commit bot

DevTools: pick resource with certificate when retrieving cert data.

BUG=668072
NOTRY=true

Review-Url: https://codereview.chromium.org/2540493002
Cr-Commit-Position: refs/heads/master@{#434792}
parent 2ce4d1d5
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment