From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Dylan Cutler Date: Tue, 2 May 2023 13:12:27 -0400 Subject: [PATCH] Use StorageKey for NetworkIsolationKey in ServiceWorkerHost Bug:1147281 Change-Id: I1a47f2ca4927bfd39bc8d0c159c6b5b0a6114d3b --- content/browser/service_worker/service_worker_host.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/content/browser/service_worker/service_worker_host.cc b/content/browser/service_worker/service_worker_host.cc index f1192469d5305..5b368d0d99499 100644 --- a/content/browser/service_worker/service_worker_host.cc +++ b/content/browser/service_worker/service_worker_host.cc @@ -145,11 +145,7 @@ void ServiceWorkerHost::BindUsbService( } net::NetworkIsolationKey ServiceWorkerHost::GetNetworkIsolationKey() const { - // TODO(https://crbug.com/1147281): This is the NetworkIsolationKey of a - // top-level browsing context, which shouldn't be use for ServiceWorkers used - // in iframes. - return net::NetworkIsolationKey::ToDoUseTopFrameOriginAsWell( - version_->key().origin()); + return version_->key().ToPartialNetIsolationInfo().network_isolation_key(); } net::NetworkAnonymizationKey ServiceWorkerHost::GetNetworkAnonymizationKey()