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

Unified Diff: Source/devtools/front_end/security/SecurityPanel.js

Issue 1327593003: DevTools: [security] open certificate viewer from devtools security overview (blink) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 5 years, 3 months 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 | Source/devtools/front_end/security/mainView.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/security/SecurityPanel.js
diff --git a/Source/devtools/front_end/security/SecurityPanel.js b/Source/devtools/front_end/security/SecurityPanel.js
index fb901d70bc36c2f600c0f56bfc3c7a7462ea342b..ad82aa90effff7aeba2908ea27b7d0dffe22d650 100644
--- a/Source/devtools/front_end/security/SecurityPanel.js
+++ b/Source/devtools/front_end/security/SecurityPanel.js
@@ -342,6 +342,20 @@ WebInspector.SecurityMainView.prototype = {
var text = explanationSection.createChild("div", "security-section-text");
text.createChild("div", "security-section-title").textContent = explanation.summary;
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));
+ }
},
/**
« no previous file with comments | « no previous file | Source/devtools/front_end/security/mainView.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698