| Index: content/browser/service_worker/foreign_fetch_request_handler.cc
|
| diff --git a/content/browser/service_worker/foreign_fetch_request_handler.cc b/content/browser/service_worker/foreign_fetch_request_handler.cc
|
| index ab2d134554e4e818f0ddf3edda12dfdea52706f4..889730446f5ab5cda4baddf521987c99cf50f0aa 100644
|
| --- a/content/browser/service_worker/foreign_fetch_request_handler.cc
|
| +++ b/content/browser/service_worker/foreign_fetch_request_handler.cc
|
| @@ -82,8 +82,10 @@ void ForeignFetchRequestHandler::InitializeHandler(
|
| if (!IsForeignFetchEnabled())
|
| return;
|
|
|
| - if (!context_wrapper)
|
| + if (!context_wrapper || !context_wrapper->context() ||
|
| + provider_id == kInvalidServiceWorkerProviderId) {
|
| return;
|
| + }
|
|
|
| if (skip_service_worker == SkipServiceWorker::ALL)
|
| return;
|
|
|