| 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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 var sctTableWrapper = sctSection.createChild("div", "sct-details"); | 829 var sctTableWrapper = sctSection.createChild("div", "sct-details"); |
| 830 sctTableWrapper.classList.add("hidden"); | 830 sctTableWrapper.classList.add("hidden"); |
| 831 for (var i = 0; i < originState.securityDetails.signedCertificateTim
estampList.length; i++) | 831 for (var i = 0; i < originState.securityDetails.signedCertificateTim
estampList.length; i++) |
| 832 { | 832 { |
| 833 var sctTable = new WebInspector.SecurityDetailsTable(); | 833 var sctTable = new WebInspector.SecurityDetailsTable(); |
| 834 sctTableWrapper.appendChild(sctTable.element()); | 834 sctTableWrapper.appendChild(sctTable.element()); |
| 835 var sct = originState.securityDetails.signedCertificateTimestamp
List[i]; | 835 var sct = originState.securityDetails.signedCertificateTimestamp
List[i]; |
| 836 sctTable.addRow(WebInspector.UIString("Log Name"), sct.logDescri
ption); | 836 sctTable.addRow(WebInspector.UIString("Log Name"), sct.logDescri
ption); |
| 837 sctTable.addRow(WebInspector.UIString("Log ID"), sct.logId.repla
ce(/(.{2})/g,"$1 ")); | 837 sctTable.addRow(WebInspector.UIString("Log ID"), sct.logId.repla
ce(/(.{2})/g,"$1 ")); |
| 838 sctTable.addRow(WebInspector.UIString("Validation Status"), sct.
status); | 838 sctTable.addRow(WebInspector.UIString("Validation Status"), sct.
status); |
| 839 sctTable.addRow(WebInspector.UIString("Origin"), sct.origin); | 839 sctTable.addRow(WebInspector.UIString("Source"), sct.origin); |
| 840 sctTable.addRow(WebInspector.UIString("Issued At"), new Date(sct
.timestamp).toUTCString()); | 840 sctTable.addRow(WebInspector.UIString("Issued At"), new Date(sct
.timestamp).toUTCString()); |
| 841 sctTable.addRow(WebInspector.UIString("Hash Algorithm"), sct.has
hAlgorithm); | 841 sctTable.addRow(WebInspector.UIString("Hash Algorithm"), sct.has
hAlgorithm); |
| 842 sctTable.addRow(WebInspector.UIString("Signature Algorithm"), sc
t.signatureAlgorithm); | 842 sctTable.addRow(WebInspector.UIString("Signature Algorithm"), sc
t.signatureAlgorithm); |
| 843 sctTable.addRow(WebInspector.UIString("Signature Data"), sct.sig
natureData.replace(/(.{2})/g,"$1 ")); | 843 sctTable.addRow(WebInspector.UIString("Signature Data"), sct.sig
natureData.replace(/(.{2})/g,"$1 ")); |
| 844 } | 844 } |
| 845 | 845 |
| 846 // Add link to toggle between displaying of the summary of the SCT(s
) and the detailed SCT(s). | 846 // Add link to toggle between displaying of the summary of the SCT(s
) and the detailed SCT(s). |
| 847 var toggleSctsDetailsLink = sctSection.createChild("div", "link"); | 847 var toggleSctsDetailsLink = sctSection.createChild("div", "link"); |
| 848 toggleSctsDetailsLink.classList.add("sct-toggle"); | 848 toggleSctsDetailsLink.classList.add("sct-toggle"); |
| 849 toggleSctsDetailsLink.textContent = WebInspector.UIString("Show full
details"); | 849 toggleSctsDetailsLink.textContent = WebInspector.UIString("Show full
details"); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 row.createChild("div").textContent = key; | 989 row.createChild("div").textContent = key; |
| 990 | 990 |
| 991 var valueDiv = row.createChild("div"); | 991 var valueDiv = row.createChild("div"); |
| 992 if (typeof value === "string") { | 992 if (typeof value === "string") { |
| 993 valueDiv.textContent = value; | 993 valueDiv.textContent = value; |
| 994 } else { | 994 } else { |
| 995 valueDiv.appendChild(value); | 995 valueDiv.appendChild(value); |
| 996 } | 996 } |
| 997 } | 997 } |
| 998 } | 998 } |
| OLD | NEW |