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

Side by Side Diff: chrome/browser/resources/net_internals/hsts_view.js

Issue 7739031: More strict mode fixes for HSTS debug UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 /** 5 /**
6 * HSTS is HTTPS Strict Transport Security: a way for sites to elect to always 6 * HSTS is HTTPS Strict Transport Security: a way for sites to elect to always
7 * use HTTPS. See http://dev.chromium.org/sts 7 * use HTTPS. See http://dev.chromium.org/sts
8 * 8 *
9 * This UI allows a user to query and update the browser's list of HSTS domains. 9 * This UI allows a user to query and update the browser's list of HSTS domains.
10 */ 10 */
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 onSubmitDelete_: function(event) { 82 onSubmitDelete_: function(event) {
83 g_browser.sendHSTSDelete(this.deleteInput_.value); 83 g_browser.sendHSTSDelete(this.deleteInput_.value);
84 this.deleteInput_.value = ''; 84 this.deleteInput_.value = '';
85 event.preventDefault(); 85 event.preventDefault();
86 }, 86 },
87 87
88 onHSTSQueryResult: function(result) { 88 onHSTSQueryResult: function(result) {
89 if (result.error != undefined) { 89 if (result.error != undefined) {
90 this.queryOutputDiv_.innerHTML = ''; 90 this.queryOutputDiv_.innerHTML = '';
91 s = addNode(this.queryOutputDiv_, 'span'); 91 var s = addNode(this.queryOutputDiv_, 'span');
92 s.textContent = result.error; 92 s.textContent = result.error;
93 s.style.color = 'red'; 93 s.style.color = 'red';
94 yellowFade(this.queryOutputDiv_); 94 yellowFade(this.queryOutputDiv_);
95 return; 95 return;
96 } 96 }
97 97
98 if (result.result == false) { 98 if (result.result == false) {
99 this.queryOutputDiv_.innerHTML = '<b>Not found</b>'; 99 this.queryOutputDiv_.innerHTML = '<b>Not found</b>';
100 yellowFade(this.queryOutputDiv_); 100 yellowFade(this.queryOutputDiv_);
101 return; 101 return;
102 } 102 }
103 103
104 this.queryOutputDiv_.innerHTML = ''; 104 this.queryOutputDiv_.innerHTML = '';
105 105
106 s = addNode(this.queryOutputDiv_, 'span'); 106 var s = addNode(this.queryOutputDiv_, 'span');
107 s.innerHTML = '<b>Found</b>: mode: '; 107 s.innerHTML = '<b>Found</b>: mode: ';
108 108
109 t = addNode(this.queryOutputDiv_, 'tt'); 109 var t = addNode(this.queryOutputDiv_, 'tt');
110 t.textContent = modeToString(result.mode); 110 t.textContent = modeToString(result.mode);
111 111
112 addTextNode(this.queryOutputDiv_, ' include_subdomains:'); 112 addTextNode(this.queryOutputDiv_, ' include_subdomains:');
113 113
114 t = addNode(this.queryOutputDiv_, 'tt'); 114 t = addNode(this.queryOutputDiv_, 'tt');
115 t.textContent = result.subdomains; 115 t.textContent = result.subdomains;
116 116
117 addTextNode(this.queryOutputDiv_, ' domain:'); 117 addTextNode(this.queryOutputDiv_, ' domain:');
118 118
119 t = addNode(this.queryOutputDiv_, 'tt'); 119 t = addNode(this.queryOutputDiv_, 'tt');
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 element.style.webkitTransitionDuration = '0'; 152 element.style.webkitTransitionDuration = '0';
153 element.style.backgroundColor = '#fffccf'; 153 element.style.backgroundColor = '#fffccf';
154 setTimeout(function() { 154 setTimeout(function() {
155 element.style.webkitTransitionDuration = '1000ms'; 155 element.style.webkitTransitionDuration = '1000ms';
156 element.style.backgroundColor = '#fff'; 156 element.style.backgroundColor = '#fff';
157 }, 0); 157 }, 0);
158 } 158 }
159 159
160 return HSTSView; 160 return HSTSView;
161 })(); 161 })();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698