Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp |
index bef1adc9711079d21cd39858a993765f97c7ca74..2174e9cb9dc6f4eb7ff2e238e46495005d934013 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp |
@@ -80,6 +80,8 @@ void ServiceWorkerLinkResource::process() { |
scopeURL = document.completeURL(scope); |
scopeURL.removeFragmentIdentifier(); |
+ bool useCache = m_owner->useCache(); |
+ |
String errorMessage; |
ServiceWorkerContainer* container = NavigatorServiceWorker::serviceWorker( |
ScriptState::forMainWorld(m_owner->document().frame()), |
@@ -96,7 +98,7 @@ void ServiceWorkerLinkResource::process() { |
} |
container->registerServiceWorkerImpl( |
- &document, scriptURL, scopeURL, |
+ &document, scriptURL, scopeURL, useCache, |
WTF::makeUnique<RegistrationCallback>(m_owner)); |
} |