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 dd12697b3f7cca1d783ae820ec3ce7397f3c3927..53cfd751b51b895f13424a62c68711d1197b145f 100644 |
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
@@ -111,6 +111,7 @@ void ServiceWorkerGlobalScopeProxy::dispatchFetchEvent(int eventID, const WebSer |
FetchEventInit eventInit; |
eventInit.setCancelable(true); |
eventInit.setRequest(request); |
+ eventInit.setClientId(webRequest.isMainResourceLoad() ? WebString() : webRequest.clientId()); |
eventInit.setIsReload(webRequest.isReload()); |
RefPtrWillBeRawPtr<FetchEvent> fetchEvent(FetchEvent::create(EventTypeNames::fetch, eventInit, observer)); |
defaultPrevented = !workerGlobalScope()->dispatchEvent(fetchEvent.release()); |