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

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

Issue 407693003: Always show SSL error code at bottom of interstitial (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | chrome/browser/ssl/ssl_blocking_page.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ssl/interstitial_v2.js
diff --git a/chrome/browser/resources/ssl/interstitial_v2.js b/chrome/browser/resources/ssl/interstitial_v2.js
index f05771c1410ac469c2cbacbeedf2932392780f82..31ea103fe684ac62fdbeb9fa68472b415232b061 100644
--- a/chrome/browser/resources/ssl/interstitial_v2.js
+++ b/chrome/browser/resources/ssl/interstitial_v2.js
@@ -14,6 +14,8 @@ function setupEvents() {
if (ssl) {
$('body').classList.add('ssl');
setupSSLFinchTrial(); /* From ssl_errors_common.js. */
+ $('error-code').textContent = loadTimeData.getString('errorCode');
+ $('error-code').classList.remove('hidden');
} else {
$('body').classList.add('safe-browsing');
setupMalwareFinchExperiment(); /* From safe_browsing_v3.js. */
@@ -50,11 +52,6 @@ function setupEvents() {
});
}
- if (ssl && !overridable) {
- $('error-code').textContent = loadTimeData.getString('errorCode');
- $('error-code').classList.remove('hidden');
- }
-
if (ssl && $('clock-link')) {
$('clock-link').addEventListener('click', function(event) {
sendCommand(CMD_CLOCK);
« no previous file with comments | « no previous file | chrome/browser/ssl/ssl_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698