| 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 02446d03530e6aedbe579f1001ad66c56b77fb0f..04cf53ead9890d5af5bf1138db68e208d7c6cac1 100644
|
| --- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| +++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| @@ -135,7 +135,7 @@
|
| 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()->scriptController()->getScriptState(), webRequest);
|
| + Request* request = Request::create(workerGlobalScope(), webRequest);
|
| request->getHeaders()->setGuard(Headers::ImmutableGuard);
|
| FetchEventInit eventInit;
|
| eventInit.setCancelable(true);
|
| @@ -150,7 +150,7 @@
|
| 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()->scriptController()->getScriptState(), webRequest);
|
| + Request* request = Request::create(workerGlobalScope(), webRequest);
|
| request->getHeaders()->setGuard(Headers::ImmutableGuard);
|
| ForeignFetchEventInit eventInit;
|
| eventInit.setCancelable(true);
|
|
|