Bug 259348 - Multiple in-flight CacheStorage.open calls create duplicate responses in CacheStorageCache
Summary: Multiple in-flight CacheStorage.open calls create duplicate responses in Cach...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Website Storage (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ben Nham
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-19 15:14 PDT by Ben Nham
Modified: 2023-07-19 21:15 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Nham 2023-07-19 15:14:06 PDT
Webpages that call CacheStorage.open multiple times in quick succession can trigger a bug in CacheStorageCache::open which cause multiple responses to be stored per URL in the m_records hash map. This can lead NetworkProcess to use large amounts of memory unnecessarily.
Comment 1 Ben Nham 2023-07-19 15:14:32 PDT
rdar://112483324
Comment 2 Ben Nham 2023-07-19 15:22:56 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15938
Comment 3 EWS 2023-07-19 21:15:10 PDT
Committed 266174@main (392584f2a30c): <https://commits.webkit.org/266174@main>

Reviewed commits have been landed. Closing PR #15938 and removing active labels.