| 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 e8ebbf64e98c0bba264578cddefc87697f5e48ec..79b822f4e29fb229c9745645a5531b891c4f67b5 100644
|
| --- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
| @@ -30,6 +30,7 @@
|
|
|
| #include "web/WebEmbeddedWorkerImpl.h"
|
|
|
| +#include <memory>
|
| #include "bindings/core/v8/SourceLocation.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ExecutionContextTask.h"
|
| @@ -38,6 +39,7 @@
|
| #include "core/inspector/ConsoleMessage.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/loader/FrameLoadRequest.h"
|
| +#include "core/loader/LoadingContext.h"
|
| #include "core/workers/ParentFrameTaskRunners.h"
|
| #include "core/workers/WorkerClients.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| @@ -73,7 +75,6 @@
|
| #include "web/WorkerContentSettingsClient.h"
|
| #include "wtf/Functional.h"
|
| #include "wtf/PtrUtil.h"
|
| -#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -275,8 +276,12 @@ void WebEmbeddedWorkerImpl::postTaskToWorkerGlobalScope(
|
| m_workerThread->postTask(location, std::move(task));
|
| }
|
|
|
| -ExecutionContext* WebEmbeddedWorkerImpl::getLoaderExecutionContext() {
|
| - return m_mainFrame->frame()->document();
|
| +LoadingContext* WebEmbeddedWorkerImpl::getLoadingContext() {
|
| + if (!m_loadingContext) {
|
| + m_loadingContext =
|
| + LoadingContext::create(*m_mainFrame->frame()->document());
|
| + }
|
| + return m_loadingContext;
|
| }
|
|
|
| void WebEmbeddedWorkerImpl::prepareShadowPageForLoader() {
|
|
|