| Index: content/browser/service_worker/service_worker_dispatcher_host.cc
|
| diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
|
| index 6f1d95f078618c9c207087699ef8b185bcc20c84..872ac5735eab12be49c281e6448c2905f9df5e47 100644
|
| --- a/content/browser/service_worker/service_worker_dispatcher_host.cc
|
| +++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
|
| @@ -570,6 +570,9 @@ void ServiceWorkerDispatcherHost::OnSetHostedVersionId(
|
| ServiceWorkerRegistration* registration =
|
| GetContext()->GetLiveRegistration(version->registration_id());
|
| DCHECK(registration);
|
| + // TODO(ksakamoto): This is a quick fix for crbug.com/459916.
|
| + if (!registration)
|
| + return;
|
|
|
| // Set the document URL to the script url in order to allow
|
| // register/unregister/getRegistration on ServiceWorkerGlobalScope.
|
|
|