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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content.html

Issue 2211413005: DevTools security panel: refresh explanations when clearing origins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dgozman comments Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 src="../security-test.js"></script> 4 <script src="../security-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 /** @type {!SecurityAgent.MixedContentStatus} */ 8 /** @type {!SecurityAgent.MixedContentStatus} */
9 var mixedContentStatus = { ranInsecureContent: false, displayedInsecureConte nt: false, ranInsecureContentStyle: SecurityAgent.SecurityState.Insecure, displa yedInsecureContentStyle: SecurityAgent.SecurityState.Neutral }; 9 var mixedContentStatus = { ranInsecureContent: false, displayedInsecureConte nt: false, ranInsecureContentStyle: SecurityAgent.SecurityState.Insecure, displa yedInsecureContentStyle: SecurityAgent.SecurityState.Neutral };
10 InspectorTest.mainTarget.model(WebInspector.SecurityModel).dispatchEventToLi steners(WebInspector.SecurityModel.EventTypes.SecurityStateChanged, new WebInspe ctor.PageSecurityState(SecurityAgent.SecurityState.Secure, [], mixedContentStatu s, true)); 10 InspectorTest.mainTarget.model(WebInspector.SecurityModel).dispatchEventToLi steners(WebInspector.SecurityModel.EventTypes.SecurityStateChanged, new WebInspe ctor.PageSecurityState(SecurityAgent.SecurityState.Secure, [], mixedContentStatu s, true));
11 11
12 var request = new WebInspector.NetworkRequest(InspectorTest.mainTarget, 0, " http://foo.test", "https://foo.test", 0, 0, null); 12 var request = new WebInspector.NetworkRequest(InspectorTest.mainTarget, 0, " http://foo.test", "https://foo.test", 0, 0, null);
13 request.setBlockedReason(NetworkAgent.BlockedReason.MixedContent); 13 request.setBlockedReason(NetworkAgent.BlockedReason.MixedContent);
14 request.mixedContentType = "blockable"; 14 request.mixedContentType = "blockable";
15 InspectorTest.dispatchRequestFinished(request); 15 InspectorTest.dispatchRequestFinished(request);
16 16
17 var explanations = WebInspector.SecurityPanel._instance()._mainView.contentE lement.getElementsByClassName("security-explanation"); 17 var explanations = WebInspector.SecurityPanel._instance()._mainView.contentE lement.getElementsByClassName("security-explanation");
18 for (var i = 0; i < explanations.length; i++) 18 for (var i = 0; i < explanations.length; i++)
19 InspectorTest.dumpDeepInnerHTML(explanations[i]); 19 InspectorTest.dumpDeepInnerHTML(explanations[i]);
20
21 // Test that the explanations are cleared on navigation. Regression test for https://crbug.com/601944.
22 InspectorTest.mainTarget.model(WebInspector.ResourceTreeModel).dispatchEvent ToListeners(WebInspector.ResourceTreeModel.EventTypes.MainFrameNavigated, Inspec torTest.resourceTreeModel.mainFrame);
23 explanations = WebInspector.SecurityPanel._instance()._mainView.contentEleme nt.getElementsByClassName("security-explanation");
24 for (var i = 0; i < explanations.length; i++)
25 InspectorTest.dumpDeepInnerHTML(explanations[i]);
26
20 InspectorTest.completeTest(); 27 InspectorTest.completeTest();
21 } 28 }
22 </script> 29 </script>
23 </head> 30 </head>
24 <body onload="runTest()"> 31 <body onload="runTest()">
25 <p>Tests active mixed content blocking in the security panel.</p> 32 <p>Tests active mixed content blocking in the security panel.</p>
26 </body> 33 </body>
27 </html> 34 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698