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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 2620463002: Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: fix crash Created 3 years, 11 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/Source/core/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index 1974f3c60da7c784f159546aa0d78f6b3f7ad546..575b46aec9124d47906006d775bae435d6b3989d 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -412,7 +412,7 @@ void FrameFetchContext::dispatchWillSendRequest(
frame()->loader().progress().willStartLoading(identifier,
request.priority());
}
- InspectorInstrumentation::willSendRequest(frame(), identifier,
+ InspectorInstrumentation::willSendRequest(frame()->document(), identifier,
masterDocumentLoader(), request,
redirectResponse, initiatorInfo);
if (frame()->frameScheduler())
@@ -466,8 +466,8 @@ void FrameFetchContext::dispatchDidFinishLoading(unsigned long identifier,
InspectorResourceFinishEvent::data(identifier, finishTime, false,
encodedDataLength));
frame()->loader().progress().completeProgress(identifier);
- InspectorInstrumentation::didFinishLoading(frame(), identifier, finishTime,
- encodedDataLength);
+ InspectorInstrumentation::didFinishLoading(frame()->document(), identifier,
+ finishTime, encodedDataLength);
if (frame()->frameScheduler())
frame()->frameScheduler()->didStopLoading(identifier);
}
@@ -480,7 +480,8 @@ void FrameFetchContext::dispatchDidFail(unsigned long identifier,
InspectorResourceFinishEvent::data(identifier, 0, true,
encodedDataLength));
frame()->loader().progress().completeProgress(identifier);
- InspectorInstrumentation::didFailLoading(frame(), identifier, error);
+ InspectorInstrumentation::didFailLoading(frame()->document(), identifier,
+ error);
// Notification to FrameConsole should come AFTER InspectorInstrumentation
// call, DevTools front-end relies on this.
if (!isInternalRequest)
@@ -1051,7 +1052,7 @@ void FrameFetchContext::dispatchDidReceiveResponseInternal(
frameLoaderClient()->dispatchDidReceiveResponse(response);
DocumentLoader* documentLoader = masterDocumentLoader();
InspectorInstrumentation::didReceiveResourceResponse(
- frame(), identifier, documentLoader, response, resource);
+ frame()->document(), identifier, documentLoader, response, resource);
// It is essential that inspector gets resource response BEFORE console.
frame()->console().reportResourceResponseReceived(documentLoader, identifier,
response);

Powered by Google App Engine
This is Rietveld 408576698