Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/security/security-all-resources-secure.html

Issue 1383503003: [DevTools] Show a explanation when all resources in the page have been requested securely (no-mixed… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated owners + lint Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/security/security-all-resources-secure.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content.html b/third_party/WebKit/LayoutTests/http/tests/inspector/security/security-all-resources-secure.html
similarity index 74%
copy from third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content.html
copy to third_party/WebKit/LayoutTests/http/tests/inspector/security/security-all-resources-secure.html
index 412fcc2a3f95dc3903b38ac9fd279cda77da37a5..7078bc240da6a768ffdc7681bc77c0cf2007cad7 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/security/security-all-resources-secure.html
@@ -8,14 +8,12 @@ var initialize_SecurityTest = function() {
function test()
{
- /** @type {!SecurityAgent.MixedContentStatus} */
- var mixedContentStatus = { ranInsecureContent: false, displayedInsecureContent: false, ranInsecureContentStyle: SecurityAgent.SecurityState.Insecure, displayedInsecureContentStyle: SecurityAgent.SecurityState.Neutral };
+ var mixedContentStatus = { ranInsecureContent: false, displayedInsecureContent: false};
+
var targets = WebInspector.targetManager.targets();
targets[0].model(WebInspector.SecurityModel).dispatchEventToListeners(WebInspector.SecurityModel.EventTypes.SecurityStateChanged, new WebInspector.PageSecurityState(SecurityAgent.SecurityState.Secure, [], mixedContentStatus, true));
var request = new WebInspector.NetworkRequest(targets[0], 0, "http://foo.test", "https://foo.test", 0, 0, null);
- request.setBlockedReason(NetworkAgent.BlockedReason.MixedContent);
- request.mixedContentType = "blockable";
targets[0].model(WebInspector.NetworkManager).dispatchEventToListeners(WebInspector.NetworkManager.EventTypes.RequestFinished, request);
var explanations = WebInspector.SecurityPanel._instance()._mainView.contentElement.getElementsByClassName("security-explanation");
@@ -26,6 +24,6 @@ function test()
</script>
</head>
<body onload="runTest()">
-<p>Tests active mixed content blocking in the security panel.</p>
+<p>Tests addition of explanation when all page resources are transferred securely (no-mixed-content).</p>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698