Bug 250559 - Local storage item is not removed from the cache in SQLiteStorageArea
Summary: Local storage item is not removed from the cache in SQLiteStorageArea
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-13 03:32 PST by Przemyslaw Gorszkowski
Modified: 2023-01-30 10:53 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.