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

Unified Diff: third_party/WebKit/Source/core/loader/PingLoader.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/PingLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/PingLoader.cpp b/third_party/WebKit/Source/core/loader/PingLoader.cpp
index bef3da748378139c565f42258f31949b48c8d4f3..180ef4bd5343bfa6a3a4978efb6f89c644dc26c5 100644
--- a/third_party/WebKit/Source/core/loader/PingLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/PingLoader.cpp
@@ -345,7 +345,7 @@ void PingLoaderImpl::didReceiveResponse(const WebURLResponse& response) {
InspectorResourceFinishEvent::data(m_identifier, 0, true, 0));
const ResourceResponse& resourceResponse = response.toResourceResponse();
InspectorInstrumentation::didReceiveResourceResponse(
- frame(), m_identifier, 0, resourceResponse, 0);
+ frame()->document(), m_identifier, 0, resourceResponse, 0);
didFailLoading(frame());
}
dispose();
@@ -396,7 +396,7 @@ void PingLoaderImpl::timeout(TimerBase*) {
void PingLoaderImpl::didFailLoading(LocalFrame* frame) {
InspectorInstrumentation::didFailLoading(
- frame, m_identifier, ResourceError::cancelledError(m_url));
+ frame->document(), m_identifier, ResourceError::cancelledError(m_url));
frame->console().didFailLoading(m_identifier,
ResourceError::cancelledError(m_url));
}

Powered by Google App Engine
This is Rietveld 408576698