summaryrefslogtreecommitdiff
path: root/www-client/chromium/files/chromium-88-service-worker-registration-crash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/chromium/files/chromium-88-service-worker-registration-crash.patch')
-rw-r--r--www-client/chromium/files/chromium-88-service-worker-registration-crash.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-88-service-worker-registration-crash.patch b/www-client/chromium/files/chromium-88-service-worker-registration-crash.patch
new file mode 100644
index 0000000..e543fca
--- /dev/null
+++ b/www-client/chromium/files/chromium-88-service-worker-registration-crash.patch
@@ -0,0 +1,14 @@
+diff --git a/content/browser/service_worker/service_worker_container_host.cc b/content/browser/service_worker/service_worker_container_host.cc
+index 5cb7b2da2..fa11602ed 100644
+--- a/content/browser/service_worker/service_worker_container_host.cc
++++ b/content/browser/service_worker/service_worker_container_host.cc
+@@ -626,6 +626,9 @@ void ServiceWorkerContainerHost::RemoveServiceWorkerRegistrationObjectHost(
+ int64_t registration_id) {
+ DCHECK_CURRENTLY_ON(ServiceWorkerContext::GetCoreThreadId());
+ DCHECK(base::Contains(registration_object_hosts_, registration_id));
++ std::unique_ptr<ServiceWorkerRegistrationObjectHost> to_be_deleted =
++ std::move(registration_object_hosts_[registration_id]);
++ DCHECK(to_be_deleted);
+ registration_object_hosts_.erase(registration_id);
+ }
+