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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 if (originState.securityDetails) { | 861 if (originState.securityDetails) { |
862 var connectionSection = this.element.createChild("div", "origin-view-sec
tion"); | 862 var connectionSection = this.element.createChild("div", "origin-view-sec
tion"); |
863 connectionSection.createChild("div", "origin-view-section-title").textCo
ntent = WebInspector.UIString("Connection"); | 863 connectionSection.createChild("div", "origin-view-section-title").textCo
ntent = WebInspector.UIString("Connection"); |
864 | 864 |
865 var table = new WebInspector.SecurityDetailsTable(); | 865 var table = new WebInspector.SecurityDetailsTable(); |
866 connectionSection.appendChild(table.element()); | 866 connectionSection.appendChild(table.element()); |
867 table.addRow("Protocol", originState.securityDetails.protocol); | 867 table.addRow("Protocol", originState.securityDetails.protocol); |
868 table.addRow("Key Exchange", originState.securityDetails.keyExchange); | 868 table.addRow("Key Exchange", originState.securityDetails.keyExchange); |
869 if (originState.securityDetails.keyExchangeGroup) | 869 if (originState.securityDetails.keyExchangeGroup) |
870 table.addRow("Key Exchange Group", originState.securityDetails.keyEx
changeGroup); | 870 table.addRow("Key Exchange Group", originState.securityDetails.keyEx
changeGroup); |
871 table.addRow("Cipher Suite", originState.securityDetails.cipher + (origi
nState.securityDetails.mac ? " with " + originState.securityDetails.mac : "")); | 871 table.addRow("Cipher", originState.securityDetails.cipher + (originState
.securityDetails.mac ? " with " + originState.securityDetails.mac : "")); |
872 | 872 |
873 // Create the certificate section outside the callback, so that it appea
rs in the right place. | 873 // Create the certificate section outside the callback, so that it appea
rs in the right place. |
874 var certificateSection = this.element.createChild("div", "origin-view-se
ction"); | 874 var certificateSection = this.element.createChild("div", "origin-view-se
ction"); |
875 certificateSection.createChild("div", "origin-view-section-title").textC
ontent = WebInspector.UIString("Certificate"); | 875 certificateSection.createChild("div", "origin-view-section-title").textC
ontent = WebInspector.UIString("Certificate"); |
876 | 876 |
877 if (originState.securityDetails.signedCertificateTimestampList.length) { | 877 if (originState.securityDetails.signedCertificateTimestampList.length) { |
878 // Create the Certificate Transparency section outside the callback,
so that it appears in the right place. | 878 // Create the Certificate Transparency section outside the callback,
so that it appears in the right place. |
879 var sctSection = this.element.createChild("div", "origin-view-sectio
n"); | 879 var sctSection = this.element.createChild("div", "origin-view-sectio
n"); |
880 sctSection.createChild("div", "origin-view-section-title").textConte
nt = WebInspector.UIString("Certificate Transparency"); | 880 sctSection.createChild("div", "origin-view-section-title").textConte
nt = WebInspector.UIString("Certificate Transparency"); |
881 } | 881 } |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 row.createChild("div").textContent = key; | 1041 row.createChild("div").textContent = key; |
1042 | 1042 |
1043 var valueDiv = row.createChild("div"); | 1043 var valueDiv = row.createChild("div"); |
1044 if (typeof value === "string") { | 1044 if (typeof value === "string") { |
1045 valueDiv.textContent = value; | 1045 valueDiv.textContent = value; |
1046 } else { | 1046 } else { |
1047 valueDiv.appendChild(value); | 1047 valueDiv.appendChild(value); |
1048 } | 1048 } |
1049 } | 1049 } |
1050 } | 1050 } |
OLD | NEW |