Index: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
index 626956c7ecc84603cab1db5d46b7f5b7bff3f99a..520615c4d47675e9d38e14e78debb513bfc08abf 100644 |
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
@@ -34,6 +34,7 @@ |
#include "bindings/core/v8/SourceLocation.h" |
#include "core/dom/Document.h" |
#include "core/dom/SecurityContext.h" |
+#include "core/dom/TaskRunnerHelper.h" |
#include "core/frame/csp/ContentSecurityPolicy.h" |
#include "core/inspector/ConsoleMessage.h" |
#include "core/loader/FrameLoadRequest.h" |
@@ -272,7 +273,8 @@ void WebEmbeddedWorkerImpl::postTaskToWorkerGlobalScope( |
std::unique_ptr<WTF::CrossThreadClosure> task) { |
if (m_askedToTerminate || !m_workerThread) |
return; |
- m_workerThread->postTask(location, std::move(task)); |
+ TaskRunnerHelper::get(TaskType::Networking, m_workerThread.get()) |
+ ->postTask(location, std::move(task)); |
} |
ThreadableLoadingContext* WebEmbeddedWorkerImpl::getThreadableLoadingContext() { |