| Index: Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
| diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
| index 4771751dd060588b57c8a95cb9f3b9291980abde..e4679b0fd26b570c0d0672ccd570ff6b3c3a71ab 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, sizeof(cachePolyfillJs)));
|
| +
|
| return context.release();
|
| }
|
|
|
|
|