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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 | 793 |
794 | 794 |
795 if (originState.securityDetails) { | 795 if (originState.securityDetails) { |
796 var connectionSection = this.element.createChild("div", "origin-view-sec
tion"); | 796 var connectionSection = this.element.createChild("div", "origin-view-sec
tion"); |
797 connectionSection.createChild("div", "origin-view-section-title").textCo
ntent = WebInspector.UIString("Connection"); | 797 connectionSection.createChild("div", "origin-view-section-title").textCo
ntent = WebInspector.UIString("Connection"); |
798 | 798 |
799 var table = new WebInspector.SecurityDetailsTable(); | 799 var table = new WebInspector.SecurityDetailsTable(); |
800 connectionSection.appendChild(table.element()); | 800 connectionSection.appendChild(table.element()); |
801 table.addRow("Protocol", originState.securityDetails.protocol); | 801 table.addRow("Protocol", originState.securityDetails.protocol); |
802 table.addRow("Key Exchange", originState.securityDetails.keyExchange); | 802 table.addRow("Key Exchange", originState.securityDetails.keyExchange); |
| 803 if (originState.securityDetails.keyExchangeGroup) |
| 804 table.addRow("Key Exchange Group", originState.securityDetails.keyEx
changeGroup); |
803 table.addRow("Cipher Suite", originState.securityDetails.cipher + (origi
nState.securityDetails.mac ? " with " + originState.securityDetails.mac : "")); | 805 table.addRow("Cipher Suite", originState.securityDetails.cipher + (origi
nState.securityDetails.mac ? " with " + originState.securityDetails.mac : "")); |
804 | 806 |
805 // Create the certificate section outside the callback, so that it appea
rs in the right place. | 807 // Create the certificate section outside the callback, so that it appea
rs in the right place. |
806 var certificateSection = this.element.createChild("div", "origin-view-se
ction"); | 808 var certificateSection = this.element.createChild("div", "origin-view-se
ction"); |
807 certificateSection.createChild("div", "origin-view-section-title").textC
ontent = WebInspector.UIString("Certificate"); | 809 certificateSection.createChild("div", "origin-view-section-title").textC
ontent = WebInspector.UIString("Certificate"); |
808 | 810 |
809 if (originState.securityDetails.signedCertificateTimestampList.length) { | 811 if (originState.securityDetails.signedCertificateTimestampList.length) { |
810 // Create the Certificate Transparency section outside the callback,
so that it appears in the right place. | 812 // Create the Certificate Transparency section outside the callback,
so that it appears in the right place. |
811 var sctSection = this.element.createChild("div", "origin-view-sectio
n"); | 813 var sctSection = this.element.createChild("div", "origin-view-sectio
n"); |
812 sctSection.createChild("div", "origin-view-section-title").textConte
nt = WebInspector.UIString("Certificate Transparency"); | 814 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... |
988 row.createChild("div").textContent = key; | 990 row.createChild("div").textContent = key; |
989 | 991 |
990 var valueDiv = row.createChild("div"); | 992 var valueDiv = row.createChild("div"); |
991 if (typeof value === "string") { | 993 if (typeof value === "string") { |
992 valueDiv.textContent = value; | 994 valueDiv.textContent = value; |
993 } else { | 995 } else { |
994 valueDiv.appendChild(value); | 996 valueDiv.appendChild(value); |
995 } | 997 } |
996 } | 998 } |
997 } | 999 } |
OLD | NEW |