Bug 250559

Summary: Local storage item is not removed from the cache in SQLiteStorageArea
Product: WebKit Reporter: Przemyslaw Gorszkowski <pgorszkowski>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Przemyslaw Gorszkowski 2023-01-13 03:32:22 PST
It seems that removing local storage item by Storage.removeItem()(https://developer.mozilla.org/en-US/docs/Web/API/Storage/removeItem) removes item from the database but it does not remove the item from the cache of SQLiteStorageArea. It can lead to increase memory usage on Network process. 

I found this issue when I was working on fix for https://bugs.webkit.org/show_bug.cgi?id=250470
Comment 1 Przemyslaw Gorszkowski 2023-01-13 03:38:16 PST
Pull request: https://github.com/WebKit/WebKit/pull/8614
Comment 2 Radar WebKit Bug Importer 2023-01-20 03:33:17 PST
<rdar://problem/104470610>
Comment 3 EWS 2023-01-30 10:53:01 PST
Committed 259570@main (b69cf1887dfb): <https://commits.webkit.org/259570@main>

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