| Index: Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
| diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
| index 4771751dd060588b57c8a95cb9f3b9291980abde..71269d241233fc180ca4b91cf59cc79c3fa423fa 100644
|
| --- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
| @@ -30,6 +30,7 @@
|
| #include "config.h"
|
| #include "ServiceWorkerGlobalScope.h"
|
|
|
| +#include "CachePolyfill.h"
|
| #include "core/workers/WorkerClients.h"
|
| #include "core/workers/WorkerThreadStartupData.h"
|
| #include "modules/EventTargetModules.h"
|
| @@ -47,6 +48,9 @@ PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> ServiceWorkerGlobalScope::creat
|
| RefPtrWillBeRawPtr<ServiceWorkerGlobalScope> context = adoptRefWillBeRefCountedGarbageCollected(new ServiceWorkerGlobalScope(startupData->m_scriptURL, startupData->m_userAgent, thread, monotonicallyIncreasingTime(), startupData->m_workerClients.release()));
|
|
|
| context->applyContentSecurityPolicyFromString(startupData->m_contentSecurityPolicy, startupData->m_contentSecurityPolicyType);
|
| +
|
| + context->script()->evaluate(String(cachePolyfillJs));
|
| +
|
| return context.release();
|
| }
|
|
|
|
|