| 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 c522068d322638466cb955d30e1da14207199146..c28fcbe3e055dabba994a1fb3bb3e940044ecd19 100644
|
| --- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| +++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| @@ -188,9 +188,10 @@ void ServiceWorkerGlobalScopeProxy::dispatchForeignFetchEvent(
|
| const WebServiceWorkerRequest& webRequest) {
|
| if (!OriginTrials::foreignFetchEnabled(workerGlobalScope())) {
|
| // If origin trial tokens have expired, or are otherwise no longer valid
|
| - // no events should be dispatched.
|
| - // TODO(mek): Ideally the browser wouldn't even start the service worker
|
| - // if its tokens have expired.
|
| + // no events should be dispatched. We can check it in the browser process if
|
| + // the service worker is installed after M56. But if the service worker was
|
| + // installed in old version of Chrome (< M56) we have to check it in the
|
| + // renderer process (here).
|
| ServiceWorkerGlobalScopeClient::from(workerGlobalScope())
|
| ->respondToFetchEvent(responseID, WTF::currentTime());
|
| ServiceWorkerGlobalScopeClient::from(workerGlobalScope())
|
|
|