Commit efab2365 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: [security] allow opening certificate viewer from devtools (blink)

BUG=506468

Review URL: https://codereview.chromium.org/1308173008

git-svn-id: svn://svn.chromium.org/blink/trunk@201753 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 6c4799dd
...@@ -155,6 +155,14 @@ WebInspector.NetworkManager.prototype = { ...@@ -155,6 +155,14 @@ WebInspector.NetworkManager.prototype = {
this._updateNetworkConditions(/** @type {!WebInspector.NetworkManager.Conditions} */ (event.data)); this._updateNetworkConditions(/** @type {!WebInspector.NetworkManager.Conditions} */ (event.data));
}, },
/**
* @param {!NetworkAgent.CertificateId} certificateId
*/
showCertificateViewer: function(certificateId)
{
this._networkAgent.showCertificateViewer(certificateId);
},
__proto__: WebInspector.SDKModel.prototype __proto__: WebInspector.SDKModel.prototype
} }
......
...@@ -1085,7 +1085,8 @@ ...@@ -1085,7 +1085,8 @@
"properties": [ "properties": [
{ "name": "securityState", "$ref": "SecurityState", "description": "Security state representing the severity of the factor being explained." }, { "name": "securityState", "$ref": "SecurityState", "description": "Security state representing the severity of the factor being explained." },
{ "name": "summary", "type": "string", "description": "Short phrase describing the type of factor." }, { "name": "summary", "type": "string", "description": "Short phrase describing the type of factor." },
{ "name": "description", "type": "string", "description": "Full text explanation of the factor." } { "name": "description", "type": "string", "description": "Full text explanation of the factor." },
{ "name": "certificateId", "$ref": "Network.CertificateId", "optional": true, "description": "Associated certificate id." }
], ],
"description": "An explanation of an factor contributing to the security state." "description": "An explanation of an factor contributing to the security state."
}, },
...@@ -1496,6 +1497,14 @@ ...@@ -1496,6 +1497,14 @@
{ "name": "result", "$ref": "CertificateDetails", "description": "Certificate details." } { "name": "result", "$ref": "CertificateDetails", "description": "Certificate details." }
], ],
"handlers": ["browser"] "handlers": ["browser"]
},
{
"name": "showCertificateViewer",
"description": "Displays native dialog with the certificate details.",
"parameters": [
{ "name": "certificateId", "$ref": "CertificateId", "description": "Certificate id." }
],
"handlers": ["browser"]
} }
], ],
"events": [ "events": [
......
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