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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 | 850 |
851 | 851 |
852 if (originState.securityDetails) { | 852 if (originState.securityDetails) { |
853 var connectionSection = this.element.createChild("div", "origin-view-sec
tion"); | 853 var connectionSection = this.element.createChild("div", "origin-view-sec
tion"); |
854 connectionSection.createChild("div", "origin-view-section-title").textCo
ntent = WebInspector.UIString("Connection"); | 854 connectionSection.createChild("div", "origin-view-section-title").textCo
ntent = WebInspector.UIString("Connection"); |
855 | 855 |
856 var table = new WebInspector.SecurityDetailsTable(); | 856 var table = new WebInspector.SecurityDetailsTable(); |
857 connectionSection.appendChild(table.element()); | 857 connectionSection.appendChild(table.element()); |
858 table.addRow("Protocol", originState.securityDetails.protocol); | 858 table.addRow("Protocol", originState.securityDetails.protocol); |
859 table.addRow("Key Exchange", originState.securityDetails.keyExchange); | 859 table.addRow("Key Exchange", originState.securityDetails.keyExchange); |
| 860 if (originState.securityDetails.keyExchangeGroup) |
| 861 table.addRow("Key Exchange Group", originState.securityDetails.keyEx
changeGroup); |
860 table.addRow("Cipher Suite", originState.securityDetails.cipher + (origi
nState.securityDetails.mac ? " with " + originState.securityDetails.mac : "")); | 862 table.addRow("Cipher Suite", originState.securityDetails.cipher + (origi
nState.securityDetails.mac ? " with " + originState.securityDetails.mac : "")); |
861 | 863 |
862 // Create the certificate section outside the callback, so that it appea
rs in the right place. | 864 // Create the certificate section outside the callback, so that it appea
rs in the right place. |
863 var certificateSection = this.element.createChild("div", "origin-view-se
ction"); | 865 var certificateSection = this.element.createChild("div", "origin-view-se
ction"); |
864 certificateSection.createChild("div", "origin-view-section-title").textC
ontent = WebInspector.UIString("Certificate"); | 866 certificateSection.createChild("div", "origin-view-section-title").textC
ontent = WebInspector.UIString("Certificate"); |
865 | 867 |
866 if (originState.securityDetails.signedCertificateTimestampList.length) { | 868 if (originState.securityDetails.signedCertificateTimestampList.length) { |
867 // Create the Certificate Transparency section outside the callback,
so that it appears in the right place. | 869 // Create the Certificate Transparency section outside the callback,
so that it appears in the right place. |
868 var sctSection = this.element.createChild("div", "origin-view-sectio
n"); | 870 var sctSection = this.element.createChild("div", "origin-view-sectio
n"); |
869 sctSection.createChild("div", "origin-view-section-title").textConte
nt = WebInspector.UIString("Certificate Transparency"); | 871 sctSection.createChild("div", "origin-view-section-title").textConte
nt = WebInspector.UIString("Certificate Transparency"); |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 row.createChild("div").textContent = key; | 1032 row.createChild("div").textContent = key; |
1031 | 1033 |
1032 var valueDiv = row.createChild("div"); | 1034 var valueDiv = row.createChild("div"); |
1033 if (typeof value === "string") { | 1035 if (typeof value === "string") { |
1034 valueDiv.textContent = value; | 1036 valueDiv.textContent = value; |
1035 } else { | 1037 } else { |
1036 valueDiv.appendChild(value); | 1038 valueDiv.appendChild(value); |
1037 } | 1039 } |
1038 } | 1040 } |
1039 } | 1041 } |
OLD | NEW |