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

Side by Side Diff: chrome/browser/resources/ssl/overridable_v2.js

Issue 294343004: New SSL interstitial (behind Finch flag) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed spurious OVERRIDE Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 var expandedDetails = false;
6
7 function setupEvents() {
8 $('safety-button').addEventListener('click', function() {
9 sendCommand(CMD_DONT_PROCEED);
10 });
11
12 $('proceed-link').addEventListener('click', function(event) {
13 sendCommand(CMD_PROCEED);
14 event.preventDefault(); // Don't let the fragment navigate.
15 });
16
17 $('details-button').addEventListener('click', function(event) {
18 var hiddenDetails = $('details').classList.toggle('hidden');
19 $('details-button').innerText = hiddenDetails ?
20 loadTimeData.getString('openDetails') :
21 loadTimeData.getString('closeDetails');
22 if (!expandedDetails) {
23 // Record a histogram entry only the first time that details is opened.
24 sendCommand(CMD_MORE);
25 expandedDetails = true;
26 }
27 event.preventDefault(); // Don't let the fragment navigate.
28 });
29 }
30
31 document.addEventListener('DOMContentLoaded', setupEvents);
OLDNEW
« no previous file with comments | « chrome/browser/resources/ssl/overridable_v2.html ('k') | chrome/browser/ssl/ssl_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698