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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 updateSecurityState: function(newSecurityState, explanations, mixedContentSt
atus, schemeIsCryptographic) | 601 updateSecurityState: function(newSecurityState, explanations, mixedContentSt
atus, schemeIsCryptographic) |
602 { | 602 { |
603 // Remove old state. | 603 // Remove old state. |
604 // It's safe to call this even when this._securityState is undefined. | 604 // It's safe to call this even when this._securityState is undefined. |
605 this._summarySection.classList.remove("security-summary-" + this._securi
tyState); | 605 this._summarySection.classList.remove("security-summary-" + this._securi
tyState); |
606 | 606 |
607 // Add new state. | 607 // Add new state. |
608 this._securityState = newSecurityState; | 608 this._securityState = newSecurityState; |
609 this._summarySection.classList.add("security-summary-" + this._securityS
tate); | 609 this._summarySection.classList.add("security-summary-" + this._securityS
tate); |
610 var summaryExplanationStrings = { | 610 var summaryExplanationStrings = { |
611 "unknown": WebInspector.UIString("This security of this page is unk
nown."), | 611 "unknown": WebInspector.UIString("The security of this page is unkn
own."), |
612 "insecure": WebInspector.UIString("This page is insecure (broken HTT
PS)."), | 612 "insecure": WebInspector.UIString("This page is insecure (broken HTT
PS)."), |
613 "neutral": WebInspector.UIString("This page is not secure."), | 613 "neutral": WebInspector.UIString("This page is not secure."), |
614 "secure": WebInspector.UIString("This page is secure (valid HTTPS)
.") | 614 "secure": WebInspector.UIString("This page is secure (valid HTTPS)
.") |
615 } | 615 } |
616 this._summaryText.textContent = summaryExplanationStrings[this._security
State]; | 616 this._summaryText.textContent = summaryExplanationStrings[this._security
State]; |
617 | 617 |
618 this._explanations = explanations, | 618 this._explanations = explanations, |
619 this._mixedContentStatus = mixedContentStatus; | 619 this._mixedContentStatus = mixedContentStatus; |
620 this._schemeIsCryptographic = schemeIsCryptographic; | 620 this._schemeIsCryptographic = schemeIsCryptographic; |
621 | 621 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 row.createChild("div").textContent = key; | 936 row.createChild("div").textContent = key; |
937 | 937 |
938 var valueDiv = row.createChild("div"); | 938 var valueDiv = row.createChild("div"); |
939 if (typeof value === "string") { | 939 if (typeof value === "string") { |
940 valueDiv.textContent = value; | 940 valueDiv.textContent = value; |
941 } else { | 941 } else { |
942 valueDiv.appendChild(value); | 942 valueDiv.appendChild(value); |
943 } | 943 } |
944 } | 944 } |
945 } | 945 } |
OLD | NEW |