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

Unified 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, 8 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/failed-request.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/security/failed-request.html b/third_party/WebKit/LayoutTests/http/tests/inspector/security/failed-request.html
index 4f856cc27f480daf47b92f2f0fe2af02d39db09d..19e40e455d9580f86c93a222ac868895e4e378e2 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/security/failed-request.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/security/failed-request.html
@@ -5,11 +5,11 @@
<script>
function test()
{
- var request1 = new SDK.NetworkRequest(InspectorTest.mainTarget, 0, "https://foo.test/foo.jpg", "https://foo.test", 0, 0, null);
+ var request1 = new SDK.NetworkRequest(InspectorTest.networkManager, InspectorTest.NetworkAgent, 0, "https://foo.test/foo.jpg", "https://foo.test", 0, 0, null);
request1.setSecurityState(Protocol.Security.SecurityState.Secure);
InspectorTest.dispatchRequestFinished(request1);
- var request2 = new SDK.NetworkRequest(InspectorTest.mainTarget, 0, "https://does-not-resolve.test", "https://does-not-resolve.test", 0, 0, null);
+ var request2 = new SDK.NetworkRequest(InspectorTest.networkManager, InspectorTest.NetworkAgent, 0, "https://does-not-resolve.test", "https://does-not-resolve.test", 0, 0, null);
// Leave the security state unknown.
InspectorTest.dispatchRequestFinished(request2);

Powered by Google App Engine
This is Rietveld 408576698