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

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

Issue 2215313003: Make sure blink scheduler doesn't wait for the PingLoader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ebca3b3dce6c3cd2e53b494b39b011969e825638..fcffd7105dcf76dfb937166bd79050a39a925d10 100644
--- a/third_party/WebKit/Source/core/loader/PingLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/PingLoader.cpp
@@ -51,6 +51,7 @@
#include "platform/weborigin/SecurityOrigin.h"
#include "platform/weborigin/SecurityPolicy.h"
#include "public/platform/Platform.h"
+#include "public/platform/WebFrameScheduler.h"
#include "public/platform/WebURLLoader.h"
#include "public/platform/WebURLRequest.h"
#include "public/platform/WebURLResponse.h"
@@ -140,6 +141,9 @@ PingLoader::PingLoader(LocalFrame* frame, ResourceRequest& request, const FetchI
frame->loader().client()->didDispatchPingLoader(request.url());
frame->document()->fetcher()->context().willStartLoadingResource(m_identifier, request, Resource::Image);
frame->document()->fetcher()->context().dispatchWillSendRequest(m_identifier, request, ResourceResponse(), initiatorInfo);
+ // Make sure the scheduler doesn't wait for the ping.
+ if (frame->frameScheduler())
+ frame->frameScheduler()->didStopLoading(m_identifier);
m_loader = wrapUnique(Platform::current()->createURLLoader());
ASSERT(m_loader);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698