OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 * It also allows users to query and update the browser's list of public key | 10 * It also allows users to query and update the browser's list of public key |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 yellowFade(this.queryOutputDiv_); | 112 yellowFade(this.queryOutputDiv_); |
113 return; | 113 return; |
114 } | 114 } |
115 | 115 |
116 this.queryOutputDiv_.innerHTML = ''; | 116 this.queryOutputDiv_.innerHTML = ''; |
117 | 117 |
118 var s = addNode(this.queryOutputDiv_, 'span'); | 118 var s = addNode(this.queryOutputDiv_, 'span'); |
119 s.innerHTML = '<b>Found:</b><br/>'; | 119 s.innerHTML = '<b>Found:</b><br/>'; |
120 | 120 |
121 var keys = [ | 121 var keys = [ |
122 'domain', 'static_upgrade_mode', 'static_sts_include_subdomains', | 122 'static_sts_domain', 'static_upgrade_mode', |
123 'static_pkp_include_subdomains', 'static_sts_observed', | 123 'static_sts_include_subdomains', 'static_sts_observed', |
124 'static_pkp_observed', 'static_spki_hashes', 'dynamic_upgrade_mode', | 124 'static_pkp_domain', 'static_pkp_include_subdomains', |
125 'dynamic_sts_include_subdomains', 'dynamic_pkp_include_subdomains', | 125 'static_pkp_observed', 'static_spki_hashes', 'dynamic_sts_domain', |
126 'dynamic_sts_observed', 'dynamic_pkp_observed', 'dynamic_spki_hashes' | 126 'dynamic_upgrade_mode', 'dynamic_sts_include_subdomains', |
| 127 'dynamic_sts_observed', 'dynamic_pkp_domain', |
| 128 'dynamic_pkp_include_subdomains', 'dynamic_pkp_observed', |
| 129 'dynamic_spki_hashes', |
127 ]; | 130 ]; |
128 | 131 |
129 var kStaticHashKeys = [ | 132 var kStaticHashKeys = [ |
130 'public_key_hashes', 'preloaded_spki_hashes', 'static_spki_hashes' | 133 'public_key_hashes', 'preloaded_spki_hashes', 'static_spki_hashes' |
131 ]; | 134 ]; |
132 | 135 |
133 var staticHashes = []; | 136 var staticHashes = []; |
134 for (var i = 0; i < kStaticHashKeys.length; ++i) { | 137 for (var i = 0; i < kStaticHashKeys.length; ++i) { |
135 var staticHashValue = result[kStaticHashKeys[i]]; | 138 var staticHashValue = result[kStaticHashKeys[i]]; |
136 if (staticHashValue != undefined && staticHashValue != '') | 139 if (staticHashValue != undefined && staticHashValue != '') |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 element.style.webkitTransitionDuration = '0'; | 184 element.style.webkitTransitionDuration = '0'; |
182 element.style.backgroundColor = '#fffccf'; | 185 element.style.backgroundColor = '#fffccf'; |
183 setTimeout(function() { | 186 setTimeout(function() { |
184 element.style.webkitTransitionDuration = '1000ms'; | 187 element.style.webkitTransitionDuration = '1000ms'; |
185 element.style.backgroundColor = '#fff'; | 188 element.style.backgroundColor = '#fff'; |
186 }, 0); | 189 }, 0); |
187 } | 190 } |
188 | 191 |
189 return HSTSView; | 192 return HSTSView; |
190 })(); | 193 })(); |
OLD | NEW |