| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.PanelWithSidebar} | 7 * @extends {WebInspector.PanelWithSidebar} |
| 8 * @implements {WebInspector.TargetManager.Observer} | 8 * @implements {WebInspector.TargetManager.Observer} |
| 9 */ | 9 */ |
| 10 WebInspector.SecurityPanel = function() | 10 WebInspector.SecurityPanel = function() |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 | 821 |
| 822 | 822 |
| 823 if (originState.securityDetails) { | 823 if (originState.securityDetails) { |
| 824 var connectionSection = this.element.createChild("div", "origin-view-sec
tion"); | 824 var connectionSection = this.element.createChild("div", "origin-view-sec
tion"); |
| 825 connectionSection.createChild("div", "origin-view-section-title").textCo
ntent = WebInspector.UIString("Connection"); | 825 connectionSection.createChild("div", "origin-view-section-title").textCo
ntent = WebInspector.UIString("Connection"); |
| 826 | 826 |
| 827 var table = new WebInspector.SecurityDetailsTable(); | 827 var table = new WebInspector.SecurityDetailsTable(); |
| 828 connectionSection.appendChild(table.element()); | 828 connectionSection.appendChild(table.element()); |
| 829 table.addRow("Protocol", originState.securityDetails.protocol); | 829 table.addRow("Protocol", originState.securityDetails.protocol); |
| 830 table.addRow("Key Exchange", originState.securityDetails.keyExchange); | 830 table.addRow("Key Exchange", originState.securityDetails.keyExchange); |
| 831 if (originState.securityDetails.keyExchangeGroup) |
| 832 table.addRow("Key Exchange Group", originState.securityDetails.keyEx
changeGroup); |
| 831 table.addRow("Cipher Suite", originState.securityDetails.cipher + (origi
nState.securityDetails.mac ? " with " + originState.securityDetails.mac : "")); | 833 table.addRow("Cipher Suite", originState.securityDetails.cipher + (origi
nState.securityDetails.mac ? " with " + originState.securityDetails.mac : "")); |
| 832 | 834 |
| 833 // Create the certificate section outside the callback, so that it appea
rs in the right place. | 835 // Create the certificate section outside the callback, so that it appea
rs in the right place. |
| 834 var certificateSection = this.element.createChild("div", "origin-view-se
ction"); | 836 var certificateSection = this.element.createChild("div", "origin-view-se
ction"); |
| 835 certificateSection.createChild("div", "origin-view-section-title").textC
ontent = WebInspector.UIString("Certificate"); | 837 certificateSection.createChild("div", "origin-view-section-title").textC
ontent = WebInspector.UIString("Certificate"); |
| 836 | 838 |
| 837 if (originState.securityDetails.signedCertificateTimestampList.length) { | 839 if (originState.securityDetails.signedCertificateTimestampList.length) { |
| 838 // Create the Certificate Transparency section outside the callback,
so that it appears in the right place. | 840 // Create the Certificate Transparency section outside the callback,
so that it appears in the right place. |
| 839 var sctSection = this.element.createChild("div", "origin-view-sectio
n"); | 841 var sctSection = this.element.createChild("div", "origin-view-sectio
n"); |
| 840 sctSection.createChild("div", "origin-view-section-title").textConte
nt = WebInspector.UIString("Certificate Transparency"); | 842 sctSection.createChild("div", "origin-view-section-title").textConte
nt = WebInspector.UIString("Certificate Transparency"); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 row.createChild("div").textContent = key; | 1018 row.createChild("div").textContent = key; |
| 1017 | 1019 |
| 1018 var valueDiv = row.createChild("div"); | 1020 var valueDiv = row.createChild("div"); |
| 1019 if (typeof value === "string") { | 1021 if (typeof value === "string") { |
| 1020 valueDiv.textContent = value; | 1022 valueDiv.textContent = value; |
| 1021 } else { | 1023 } else { |
| 1022 valueDiv.appendChild(value); | 1024 valueDiv.appendChild(value); |
| 1023 } | 1025 } |
| 1024 } | 1026 } |
| 1025 } | 1027 } |
| OLD | NEW |