Index: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
index 2d0ab00ee0d2d626c5c37b69d0451d2c17f14e49..4fd7b372c09de6efb93a5a8fa2180edec1860bf4 100644 |
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
@@ -46,6 +46,7 @@ |
#include "core/workers/WorkerInspectorProxy.h" |
#include "core/workers/WorkerLoaderProxy.h" |
#include "core/workers/WorkerScriptLoader.h" |
+#include "core/workers/WorkerSettings.h" |
#include "core/workers/WorkerThreadStartupData.h" |
#include "platform/CrossThreadFunctional.h" |
#include "platform/RuntimeEnabledFeatures.h" |
@@ -335,6 +336,7 @@ void WebSharedWorkerImpl::onScriptLoaderFinished() |
WebSecurityOrigin webSecurityOrigin(m_loadingDocument->getSecurityOrigin()); |
provideContentSettingsClientToWorker(workerClients, wrapUnique(m_client->createWorkerContentSettingsClientProxy(webSecurityOrigin))); |
provideIndexedDBClientToWorker(workerClients, IndexedDBClientImpl::create()); |
+ provideWorkerSettingsToWorker(workerClients, WorkerSettings::create(document->settings())); |
ContentSecurityPolicy* contentSecurityPolicy = m_mainScriptLoader->releaseContentSecurityPolicy(); |
WorkerThreadStartMode startMode = m_workerInspectorProxy->workerStartMode(document); |
std::unique_ptr<WorkerThreadStartupData> startupData = WorkerThreadStartupData::create( |