Chromium Code Reviews| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 addTextNode(this.queryOutputDiv_, ' sts_include_subdomains:'); | 124 addTextNode(this.queryOutputDiv_, ' sts_include_subdomains:'); |
| 125 | 125 |
| 126 t = addNode(this.queryOutputDiv_, 'tt'); | 126 t = addNode(this.queryOutputDiv_, 'tt'); |
| 127 t.textContent = result.sts_subdomains; | 127 t.textContent = result.sts_subdomains; |
| 128 | 128 |
| 129 addTextNode(this.queryOutputDiv_, ' pkp_include_subdomains:'); | 129 addTextNode(this.queryOutputDiv_, ' pkp_include_subdomains:'); |
| 130 | 130 |
| 131 t = addNode(this.queryOutputDiv_, 'tt'); | 131 t = addNode(this.queryOutputDiv_, 'tt'); |
| 132 t.textContent = result.pkp_subdomains; | 132 t.textContent = result.pkp_subdomains; |
| 133 | 133 |
| 134 addTextNode(this.queryOutputDiv_, ' sts_observed:'); | |
| 135 | |
| 136 t = addNode(this.queryOutputDiv_, 'tt'); | |
|
eroman
2013/12/18 01:21:58
you can combine this with:
addNodeWithText(this.q
palmer
2013/12/18 18:15:44
I'll add a TODO(palmer) to do it later in a clean-
| |
| 137 t.textContent = result.sts_observed; | |
| 138 | |
| 139 addTextNode(this.queryOutputDiv_, ' pkp_observed:'); | |
| 140 | |
| 141 t = addNode(this.queryOutputDiv_, 'tt'); | |
| 142 t.textContent = result.pkp_observed; | |
| 143 | |
| 134 addTextNode(this.queryOutputDiv_, ' domain:'); | 144 addTextNode(this.queryOutputDiv_, ' domain:'); |
| 135 | 145 |
| 136 t = addNode(this.queryOutputDiv_, 'tt'); | 146 t = addNode(this.queryOutputDiv_, 'tt'); |
| 137 t.textContent = result.domain; | 147 t.textContent = result.domain; |
| 138 | 148 |
| 139 addTextNode(this.queryOutputDiv_, ' pubkey_hashes:'); | 149 addTextNode(this.queryOutputDiv_, ' pubkey_hashes:'); |
| 140 | 150 |
| 141 t = addNode(this.queryOutputDiv_, 'tt'); | 151 t = addNode(this.queryOutputDiv_, 'tt'); |
| 142 | 152 |
| 143 // |public_key_hashes| is an old synonym for what is now | 153 // |public_key_hashes| is an old synonym for what is now |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 185 element.style.webkitTransitionDuration = '0'; | 195 element.style.webkitTransitionDuration = '0'; |
| 186 element.style.backgroundColor = '#fffccf'; | 196 element.style.backgroundColor = '#fffccf'; |
| 187 setTimeout(function() { | 197 setTimeout(function() { |
| 188 element.style.webkitTransitionDuration = '1000ms'; | 198 element.style.webkitTransitionDuration = '1000ms'; |
| 189 element.style.backgroundColor = '#fff'; | 199 element.style.backgroundColor = '#fff'; |
| 190 }, 0); | 200 }, 0); |
| 191 } | 201 } |
| 192 | 202 |
| 193 return HSTSView; | 203 return HSTSView; |
| 194 })(); | 204 })(); |
| OLD | NEW |