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

Unified Diff: chrome/browser/resources/security_warnings/ssl.js

Issue 584463005: Add debugging information to the SSL blocking page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Brackets for multi-line if Created 6 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
Index: chrome/browser/resources/security_warnings/ssl.js
diff --git a/chrome/browser/resources/security_warnings/ssl.js b/chrome/browser/resources/security_warnings/ssl.js
index 7185366b94d9b45ac4ab7de6bdd16159f012fd45..447eef8e9bbb68f0b6becca9e632ee32a00c555f 100644
--- a/chrome/browser/resources/security_warnings/ssl.js
+++ b/chrome/browser/resources/security_warnings/ssl.js
@@ -9,3 +9,18 @@ var CMD_MORE = 2;
var CMD_RELOAD = 3;
var CMD_HELP = 4;
var CMD_CLOCK = 5;
+
+function setupSSLDebuggingInfo() {
+ if (!loadTimeData.getBoolean('ssl'))
+ return;
+
+ // The titles are not internationalized because this is debugging information
+ // for bug reports, help center posts, etc.
+ appendDebuggingField('Subject', loadTimeData.getString('subject'));
+ appendDebuggingField('Issuer', loadTimeData.getString('issuer'));
+ appendDebuggingField('Expires on', loadTimeData.getString('expirationDate'));
+ appendDebuggingField('Current date', loadTimeData.getString('currentDate'));
+ appendDebuggingField('PEM encoded chain', loadTimeData.getString('pem'));
+
+ $('error-code').addEventListener('click', toggleDebuggingInfo);
+}
« no previous file with comments | « chrome/browser/resources/security_warnings/interstitial_v2.js ('k') | chrome/browser/ssl/ssl_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698