Commit 744ae4e8 authored by Eric Willigers's avatar Eric Willigers Committed by Commit Bot

desktop-pwas: no SW context use during shutdown

InstallableManager::CheckServiceWorker() now quits
immediately if called after the service worker
context has been destroyed.

Bug: 993666
Change-Id: Idcb336f5532d52e9181c85f71a255579ae0f0cc9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1806159
Commit-Queue: Eric Willigers <ericwilligers@chromium.org>
Commit-Queue: Dominick Ng <dominickn@chromium.org>
Auto-Submit: Eric Willigers <ericwilligers@chromium.org>
Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696703}
parent 48c8f915
......@@ -598,6 +598,9 @@ void InstallableManager::CheckServiceWorker() {
DCHECK(!worker_->fetched);
DCHECK(!manifest().IsEmpty());
if (!service_worker_context_)
return;
// Check to see if there is a service worker for the manifest's scope.
service_worker_context_->CheckHasServiceWorker(
manifest().scope,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment