Commit 2949903d authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: [security] open certificate viewer from devtools security overview (blink)

BUG=506468

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201676

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

git-svn-id: svn://svn.chromium.org/blink/trunk@201763 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 02e45dd9
...@@ -342,6 +342,20 @@ WebInspector.SecurityMainView.prototype = { ...@@ -342,6 +342,20 @@ WebInspector.SecurityMainView.prototype = {
var text = explanationSection.createChild("div", "security-section-text"); var text = explanationSection.createChild("div", "security-section-text");
text.createChild("div", "security-section-title").textContent = explanation.summary; text.createChild("div", "security-section-title").textContent = explanation.summary;
text.createChild("div", "security-explanation").textContent = explanation.description; text.createChild("div", "security-explanation").textContent = explanation.description;
if ("certificateId" in explanation) {
var certificateAnchor = text.createChild("div", "security-certificate-id link");
certificateAnchor.textContent = WebInspector.UIString("View certificate");
certificateAnchor.href = "";
certificateAnchor.addEventListener("click", showCertificateViewer, false);
}
/**
* @param {!Event} e
*/
function showCertificateViewer(e)
{
e.consume();
WebInspector.targetManager.mainTarget().networkManager.showCertificateViewer(/** @type {number} */ (explanation.certificateId));
}
}, },
/** /**
......
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
white-space: normal; white-space: normal;
} }
.security-certificate-id {
margin-top: 8px;
}
.security-main-view .security-summary-section-title { .security-main-view .security-summary-section-title {
font-size: 14px; font-size: 14px;
margin-bottom: 2px; margin-bottom: 2px;
......
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