| Index: Source/web/WebEmbeddedWorkerImpl.cpp
|
| diff --git a/Source/web/WebEmbeddedWorkerImpl.cpp b/Source/web/WebEmbeddedWorkerImpl.cpp
|
| index 04083c122948b97f2e4385a562341954d9692b9e..57240154be166a04fa69fee47c144109e9d0d0ed 100644
|
| --- a/Source/web/WebEmbeddedWorkerImpl.cpp
|
| +++ b/Source/web/WebEmbeddedWorkerImpl.cpp
|
| @@ -46,12 +46,14 @@
|
| #include "core/workers/WorkerScriptLoader.h"
|
| #include "core/workers/WorkerScriptLoaderClient.h"
|
| #include "core/workers/WorkerThreadStartupData.h"
|
| +#include "modules/serviceworkers/ServiceWorkerContainerClient.h"
|
| #include "modules/serviceworkers/ServiceWorkerThread.h"
|
| #include "platform/SharedBuffer.h"
|
| #include "platform/heap/Handle.h"
|
| #include "platform/network/ContentSecurityPolicyParsers.h"
|
| #include "platform/network/ContentSecurityPolicyResponseHeaders.h"
|
| #include "public/platform/Platform.h"
|
| +#include "public/platform/WebServiceWorkerProvider.h"
|
| #include "public/platform/WebURLRequest.h"
|
| #include "public/web/WebDevToolsAgent.h"
|
| #include "public/web/WebServiceWorkerContextClient.h"
|
| @@ -422,6 +424,7 @@ void WebEmbeddedWorkerImpl::startWorkerThread()
|
| OwnPtrWillBeRawPtr<WorkerClients> workerClients = WorkerClients::create();
|
| providePermissionClientToWorker(workerClients.get(), m_permissionClient.release());
|
| provideServiceWorkerGlobalScopeClientToWorker(workerClients.get(), ServiceWorkerGlobalScopeClientImpl::create(*m_workerContextClient));
|
| + provideServiceWorkerContainerClientToWorker(workerClients.get(), adoptPtr(m_workerContextClient->createServiceWorkerProvider()));
|
|
|
| // We need to set the CSP to both the shadow page's document and the ServiceWorkerGlobalScope.
|
| document->initContentSecurityPolicy(m_mainScriptLoader->releaseContentSecurityPolicy());
|
|
|