Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp

Issue 311343003: ServiceWorker polyfill Fetch implementation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix memory error Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/modules.gyp ('k') | Source/modules/serviceworkers/polyfills/cachePolyfill.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
index e4679b0fd26b570c0d0672ccd570ff6b3c3a71ab..ce9d7cfcef6e5a27c13fc0978000f1db1960b23b 100644
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
@@ -31,6 +31,7 @@
#include "ServiceWorkerGlobalScope.h"
#include "CachePolyfill.h"
+#include "FetchPolyfill.h"
#include "core/workers/WorkerClients.h"
#include "core/workers/WorkerThreadStartupData.h"
#include "modules/EventTargetModules.h"
@@ -49,6 +50,7 @@ PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> ServiceWorkerGlobalScope::creat
context->applyContentSecurityPolicyFromString(startupData->m_contentSecurityPolicy, startupData->m_contentSecurityPolicyType);
+ context->script()->evaluate(String(fetchPolyfillJs, sizeof(fetchPolyfillJs)));
context->script()->evaluate(String(cachePolyfillJs, sizeof(cachePolyfillJs)));
return context.release();
« no previous file with comments | « Source/modules/modules.gyp ('k') | Source/modules/serviceworkers/polyfills/cachePolyfill.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698