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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/security/failed-request.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 var request1 = new SDK.NetworkRequest(InspectorTest.mainTarget, 0, "https:// foo.test/foo.jpg", "https://foo.test", 0, 0, null); 8 var request1 = new SDK.NetworkRequest(InspectorTest.networkManager, Inspecto rTest.NetworkAgent, 0, "https://foo.test/foo.jpg", "https://foo.test", 0, 0, nul l);
9 request1.setSecurityState(Protocol.Security.SecurityState.Secure); 9 request1.setSecurityState(Protocol.Security.SecurityState.Secure);
10 InspectorTest.dispatchRequestFinished(request1); 10 InspectorTest.dispatchRequestFinished(request1);
11 11
12 var request2 = new SDK.NetworkRequest(InspectorTest.mainTarget, 0, "https:// does-not-resolve.test", "https://does-not-resolve.test", 0, 0, null); 12 var request2 = new SDK.NetworkRequest(InspectorTest.networkManager, Inspecto rTest.NetworkAgent, 0, "https://does-not-resolve.test", "https://does-not-resolv e.test", 0, 0, null);
13 // Leave the security state unknown. 13 // Leave the security state unknown.
14 InspectorTest.dispatchRequestFinished(request2); 14 InspectorTest.dispatchRequestFinished(request2);
15 15
16 InspectorTest.dumpSecurityPanelSidebarOrigins(); 16 InspectorTest.dumpSecurityPanelSidebarOrigins();
17 17
18 InspectorTest.completeTest(); 18 InspectorTest.completeTest();
19 } 19 }
20 </script> 20 </script>
21 </head> 21 </head>
22 <body onload="runTest()"> 22 <body onload="runTest()">
23 <p>Tests that origins with failed requests are shown correctly in the security p anel origins list.</p> 23 <p>Tests that origins with failed requests are shown correctly in the security p anel origins list.</p>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698