| 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 if (!this._schemeIsCryptographic) | 583 if (!this._schemeIsCryptographic) |
| 584 return; | 584 return; |
| 585 | 585 |
| 586 if (this._mixedContentStatus && (this._mixedContentStatus.ranInsecureCon
tent || this._mixedContentStatus.displayedInsecureContent)) { | 586 if (this._mixedContentStatus && (this._mixedContentStatus.ranInsecureCon
tent || this._mixedContentStatus.displayedInsecureContent)) { |
| 587 if (this._mixedContentStatus.ranInsecureContent) | 587 if (this._mixedContentStatus.ranInsecureContent) |
| 588 this._addMixedContentExplanation(this._mixedContentStatus.ranIns
ecureContentStyle, WebInspector.UIString("Active Mixed Content"), WebInspector.U
IString("You have recently allowed insecure content (such as scripts or iframes)
to run on this site."), WebInspector.NetworkLogView.MixedContentFilterValues.Bl
ockOverridden, showBlockOverriddenMixedContentInNetworkPanel); | 588 this._addMixedContentExplanation(this._mixedContentStatus.ranIns
ecureContentStyle, WebInspector.UIString("Active Mixed Content"), WebInspector.U
IString("You have recently allowed insecure content (such as scripts or iframes)
to run on this site."), WebInspector.NetworkLogView.MixedContentFilterValues.Bl
ockOverridden, showBlockOverriddenMixedContentInNetworkPanel); |
| 589 if (this._mixedContentStatus.displayedInsecureContent) | 589 if (this._mixedContentStatus.displayedInsecureContent) |
| 590 this._addMixedContentExplanation(this._mixedContentStatus.displa
yedInsecureContentStyle, WebInspector.UIString("Mixed Content"), WebInspector.UI
String("The site includes HTTP resources."), WebInspector.NetworkLogView.MixedCo
ntentFilterValues.Displayed, showDisplayedMixedContentInNetworkPanel); | 590 this._addMixedContentExplanation(this._mixedContentStatus.displa
yedInsecureContentStyle, WebInspector.UIString("Mixed Content"), WebInspector.UI
String("The site includes HTTP resources."), WebInspector.NetworkLogView.MixedCo
ntentFilterValues.Displayed, showDisplayedMixedContentInNetworkPanel); |
| 591 } | 591 } |
| 592 | 592 |
| 593 if (this._mixedContentStatus && (!this._mixedContentStatus.displayedInse
cureContent && !this._mixedContentStatus.ranInsecureContent)) { |
| 594 this._addExplanation(/** @type {!SecurityAgent.SecurityStateExpl
anation} */ ({ |
| 595 "securityState": SecurityAgent.SecurityState.Secure, |
| 596 "summary": WebInspector.UIString("Secure Resources"), |
| 597 "description": WebInspector.UIString("All resources on this
page are served securely.") |
| 598 })); |
| 599 } |
| 600 |
| 593 if (this._panel.filterRequestCount(WebInspector.NetworkLogView.MixedCont
entFilterValues.Blocked) > 0) | 601 if (this._panel.filterRequestCount(WebInspector.NetworkLogView.MixedCont
entFilterValues.Blocked) > 0) |
| 594 this._addMixedContentExplanation(SecurityAgent.SecurityState.Info, W
ebInspector.UIString("Blocked mixed content"), WebInspector.UIString("Your page
requested insecure resources that were blocked."), WebInspector.NetworkLogView.M
ixedContentFilterValues.Blocked, showBlockedMixedContentInNetworkPanel); | 602 this._addMixedContentExplanation(SecurityAgent.SecurityState.Info, W
ebInspector.UIString("Blocked mixed content"), WebInspector.UIString("Your page
requested insecure resources that were blocked."), WebInspector.NetworkLogView.M
ixedContentFilterValues.Blocked, showBlockedMixedContentInNetworkPanel); |
| 595 | 603 |
| 596 /** | 604 /** |
| 597 * @param {!Event} e | 605 * @param {!Event} e |
| 598 */ | 606 */ |
| 599 function showDisplayedMixedContentInNetworkPanel(e) | 607 function showDisplayedMixedContentInNetworkPanel(e) |
| 600 { | 608 { |
| 601 e.consume(); | 609 e.consume(); |
| 602 WebInspector.NetworkPanel.revealAndFilter(WebInspector.NetworkLogVie
w.FilterType.MixedContent, WebInspector.NetworkLogView.MixedContentFilterValues.
Displayed); | 610 WebInspector.NetworkPanel.revealAndFilter(WebInspector.NetworkLogVie
w.FilterType.MixedContent, WebInspector.NetworkLogView.MixedContentFilterValues.
Displayed); |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 row.createChild("div").textContent = WebInspector.UIString(key); | 824 row.createChild("div").textContent = WebInspector.UIString(key); |
| 817 | 825 |
| 818 var valueDiv = row.createChild("div"); | 826 var valueDiv = row.createChild("div"); |
| 819 if (value instanceof HTMLDivElement) { | 827 if (value instanceof HTMLDivElement) { |
| 820 valueDiv.appendChild(value); | 828 valueDiv.appendChild(value); |
| 821 } else { | 829 } else { |
| 822 valueDiv.textContent = value; | 830 valueDiv.textContent = value; |
| 823 } | 831 } |
| 824 } | 832 } |
| 825 } | 833 } |
| OLD | NEW |