Bug 259348

Summary: Multiple in-flight CacheStorage.open calls create duplicate responses in CacheStorageCache
Product: WebKit Reporter: Ben Nham <nham>
Component: Website StorageAssignee: Ben Nham <nham>
Status: RESOLVED FIXED    
Severity: Normal CC: nham, sihui_liu, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

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.