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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/security/active-subresource-with-cert-errors.html

Issue 2851913002: [DevTools] Do not expose agents on Target
Patch Set: storage and tests.js Created 3 years, 7 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 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 {!Protocol.Security.InsecureContentStatus} */ 8 /** @type {!Protocol.Security.InsecureContentStatus} */
9 var insecureContentStatus = { ranMixedContent: false, displayedMixedContent: false, ranContentWithCertErrors: true, displayedContentWithCertErrors: false, r anInsecureContentStyle: Protocol.Security.SecurityState.Insecure, displayedInsec ureContentStyle: Protocol.Security.SecurityState.Neutral }; 9 var insecureContentStatus = { ranMixedContent: false, displayedMixedContent: false, ranContentWithCertErrors: true, displayedContentWithCertErrors: false, r anInsecureContentStyle: Protocol.Security.SecurityState.Insecure, displayedInsec ureContentStyle: Protocol.Security.SecurityState.Neutral };
10 10
11 InspectorTest.mainTarget.model(Security.SecurityModel).dispatchEventToListen ers(Security.SecurityModel.Events.SecurityStateChanged, new Security.PageSecurit yState(Protocol.Security.SecurityState.Insecure, true, [], insecureContentStatus , null)); 11 InspectorTest.mainTarget.model(Security.SecurityModel).dispatchEventToListen ers(Security.SecurityModel.Events.SecurityStateChanged, new Security.PageSecurit yState(Protocol.Security.SecurityState.Insecure, true, [], insecureContentStatus , null));
12 12
13 var request = new SDK.NetworkRequest(InspectorTest.mainTarget, 0, "http://fo o.test", "https://foo.test", 0, 0, null); 13 var request = new SDK.NetworkRequest(InspectorTest.networkManager, Inspector Test.NetworkAgent, 0, "http://foo.test", "https://foo.test", 0, 0, null);
14 InspectorTest.dispatchRequestFinished(request); 14 InspectorTest.dispatchRequestFinished(request);
15 15
16 var explanations = Security.SecurityPanel._instance()._mainView.contentEleme nt.getElementsByClassName("security-explanation"); 16 var explanations = Security.SecurityPanel._instance()._mainView.contentEleme nt.getElementsByClassName("security-explanation");
17 for (var i = 0; i < explanations.length; i++) 17 for (var i = 0; i < explanations.length; i++)
18 InspectorTest.dumpDeepInnerHTML(explanations[i]); 18 InspectorTest.dumpDeepInnerHTML(explanations[i]);
19 InspectorTest.completeTest(); 19 InspectorTest.completeTest();
20 } 20 }
21 </script> 21 </script>
22 </head> 22 </head>
23 <body onload="runTest()"> 23 <body onload="runTest()">
24 <p>Tests addition of explanation when an active subresource was loaded with cert ificate errors.</p> 24 <p>Tests addition of explanation when an active subresource was loaded with cert ificate errors.</p>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698