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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script> 4 <script>
5 var initialize_SecurityTest = function() { 5 var initialize_SecurityTest = function() {
6 InspectorTest.preloadPanel("security"); 6 InspectorTest.preloadPanel("security");
7 } 7 }
8 8
9 function test() 9 function test()
10 { 10 {
11 /** @type {!SecurityAgent.MixedContentStatus} */ 11 var mixedContentStatus = { ranInsecureContent: false, displayedInsecureConte nt: false};
12 var mixedContentStatus = { ranInsecureContent: false, displayedInsecureConte nt: false, ranInsecureContentStyle: SecurityAgent.SecurityState.Insecure, displa yedInsecureContentStyle: SecurityAgent.SecurityState.Neutral }; 12
13 var targets = WebInspector.targetManager.targets(); 13 var targets = WebInspector.targetManager.targets();
14 targets[0].model(WebInspector.SecurityModel).dispatchEventToListeners(WebIns pector.SecurityModel.EventTypes.SecurityStateChanged, new WebInspector.PageSecur ityState(SecurityAgent.SecurityState.Secure, [], mixedContentStatus, true)); 14 targets[0].model(WebInspector.SecurityModel).dispatchEventToListeners(WebIns pector.SecurityModel.EventTypes.SecurityStateChanged, new WebInspector.PageSecur ityState(SecurityAgent.SecurityState.Secure, [], mixedContentStatus, true));
15 15
16 var request = new WebInspector.NetworkRequest(targets[0], 0, "http://foo.tes t", "https://foo.test", 0, 0, null); 16 var request = new WebInspector.NetworkRequest(targets[0], 0, "http://foo.tes t", "https://foo.test", 0, 0, null);
17 request.setBlockedReason(NetworkAgent.BlockedReason.MixedContent);
18 request.mixedContentType = "blockable";
19 targets[0].model(WebInspector.NetworkManager).dispatchEventToListeners(WebIn spector.NetworkManager.EventTypes.RequestFinished, request); 17 targets[0].model(WebInspector.NetworkManager).dispatchEventToListeners(WebIn spector.NetworkManager.EventTypes.RequestFinished, request);
20 18
21 var explanations = WebInspector.SecurityPanel._instance()._mainView.contentE lement.getElementsByClassName("security-explanation"); 19 var explanations = WebInspector.SecurityPanel._instance()._mainView.contentE lement.getElementsByClassName("security-explanation");
22 for (var i = 0; i < explanations.length; i++) 20 for (var i = 0; i < explanations.length; i++)
23 InspectorTest.dumpDeepInnerHTML(explanations[i]); 21 InspectorTest.dumpDeepInnerHTML(explanations[i]);
24 InspectorTest.completeTest(); 22 InspectorTest.completeTest();
25 } 23 }
26 </script> 24 </script>
27 </head> 25 </head>
28 <body onload="runTest()"> 26 <body onload="runTest()">
29 <p>Tests active mixed content blocking in the security panel.</p> 27 <p>Tests addition of explanation when all page resources are transferred securel y (no-mixed-content).</p>
30 </body> 28 </body>
31 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698