mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
This removes two `raw_ptr<context::StoragePartition>` instances. These pointers were used to build a ServiceWorkerMain* lookup key. The key was built from [version_id, raw_ptr<StoragePartition>]. Unfortunately these keys could be dangling on shutdown. This PR now uses stable, immutable fields for building the key: [version_id, BrowserContext::UniqueId(), context::StoragePartitionConfig]. context::StoragePartitionConfig is a unique lookup key for StoragePartition within a BrowserContext. Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>