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

Side by Side Diff: chrome/browser/resources/security_warnings/interstitial_v2.js

Issue 935663004: Add checkbox for reporting invalid TLS/SSL cert chains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: felt's comments Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is the shared code for the new (Chrome 37) security interstitials. It is 5 // This is the shared code for the new (Chrome 37) security interstitials. It is
6 // used for both SSL interstitials and Safe Browsing interstitials. 6 // used for both SSL interstitials and Safe Browsing interstitials.
7 7
8 var expandedDetails = false; 8 var expandedDetails = false;
9 var keyPressState = 0; 9 var keyPressState = 0;
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 loadTimeData.getString('closeDetails'); 152 loadTimeData.getString('closeDetails');
153 if (!expandedDetails) { 153 if (!expandedDetails) {
154 // Record a histogram entry only the first time that details is opened. 154 // Record a histogram entry only the first time that details is opened.
155 sendCommand(ssl ? SSL_CMD_MORE : SB_CMD_EXPANDED_SEE_MORE); 155 sendCommand(ssl ? SSL_CMD_MORE : SB_CMD_EXPANDED_SEE_MORE);
156 expandedDetails = true; 156 expandedDetails = true;
157 } 157 }
158 }); 158 });
159 } 159 }
160 160
161 preventDefaultOnPoundLinkClicks(); 161 preventDefaultOnPoundLinkClicks();
162 setupCheckbox(); 162 setupCheckbox(interstitialType);
163 setupSSLDebuggingInfo(); 163 setupSSLDebuggingInfo();
164 document.addEventListener('keypress', handleKeypress); 164 document.addEventListener('keypress', handleKeypress);
165 } 165 }
166 166
167 document.addEventListener('DOMContentLoaded', setupEvents); 167 document.addEventListener('DOMContentLoaded', setupEvents);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698