Index: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
index 04cf53ead9890d5af5bf1138db68e208d7c6cac1..02446d03530e6aedbe579f1001ad66c56b77fb0f 100644 |
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
@@ -135,7 +135,7 @@ void ServiceWorkerGlobalScopeProxy::dispatchExtendableMessageEvent(int eventID, |
void ServiceWorkerGlobalScopeProxy::dispatchFetchEvent(int eventID, const WebServiceWorkerRequest& webRequest) |
{ |
RespondWithObserver* observer = RespondWithObserver::create(workerGlobalScope(), eventID, webRequest.url(), webRequest.mode(), webRequest.frameType(), webRequest.requestContext()); |
- Request* request = Request::create(workerGlobalScope(), webRequest); |
+ Request* request = Request::create(workerGlobalScope()->scriptController()->getScriptState(), webRequest); |
request->getHeaders()->setGuard(Headers::ImmutableGuard); |
FetchEventInit eventInit; |
eventInit.setCancelable(true); |
@@ -150,7 +150,7 @@ void ServiceWorkerGlobalScopeProxy::dispatchFetchEvent(int eventID, const WebSer |
void ServiceWorkerGlobalScopeProxy::dispatchForeignFetchEvent(int eventID, const WebServiceWorkerRequest& webRequest) |
{ |
ForeignFetchRespondWithObserver* observer = ForeignFetchRespondWithObserver::create(workerGlobalScope(), eventID, webRequest.url(), webRequest.mode(), webRequest.frameType(), webRequest.requestContext()); |
- Request* request = Request::create(workerGlobalScope(), webRequest); |
+ Request* request = Request::create(workerGlobalScope()->scriptController()->getScriptState(), webRequest); |
request->getHeaders()->setGuard(Headers::ImmutableGuard); |
ForeignFetchEventInit eventInit; |
eventInit.setCancelable(true); |