| 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 86215ef553cf10f86b96931cda4150819a73fc8b..ed6da37c2d52b08e750bcb7c9e5bcb870158c9a8 100644
|
| --- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
| @@ -263,10 +263,13 @@ void WebEmbeddedWorkerImpl::postMessageToPageInspector(const String& message) {
|
| void WebEmbeddedWorkerImpl::postTaskToLoader(
|
| const WebTraceLocation& location,
|
| std::unique_ptr<ExecutionContextTask> task) {
|
| - // TODO(hiroshige,yuryu): Make this not use ExecutionContextTask and
|
| - // consider using m_mainThreadTaskRunners->get(TaskType::Networking)
|
| - // instead.
|
| - m_mainFrame->frame()->document()->postTask(location, std::move(task));
|
| + m_mainThreadTaskRunners->get(TaskType::Networking)
|
| + ->postTask(
|
| + BLINK_FROM_HERE,
|
| + crossThreadBind(
|
| + &ExecutionContextTask::performTaskIfContextIsValid,
|
| + WTF::passed(std::move(task)),
|
| + wrapCrossThreadWeakPersistent(m_mainFrame->frame()->document())));
|
| }
|
|
|
| void WebEmbeddedWorkerImpl::postTaskToWorkerGlobalScope(
|
|
|