Bug 180546

Summary: CacheStorage Cache should not remove any disk entry when clearing its memory representation
Product: WebKit Reporter: youenn fablet <youennf>
Component: Service WorkersAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, cdumez, cgarcia, commit-queue, ews-watchlist, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description youenn fablet 2017-12-07 13:25:53 PST
CacheStorage Cache should not remove any disk entry when clearing its memory representation.
Comment 1 youenn fablet 2017-12-07 13:26:57 PST
Created attachment 328729 [details]
Patch
Comment 2 youenn fablet 2017-12-07 14:13:42 PST
This patch is tested manually by going to website using service worker:
- load a page
- ensure working in offline mode
- close page and wait for service worker to be terminated
- reload page and web site should work/cache API should have all its data

It will be good to add an API tests once we have a server running for these.
Comment 3 WebKit Commit Bot 2017-12-07 15:17:59 PST
Comment on attachment 328729 [details]
Patch

Clearing flags on attachment: 328729

Committed r225646: <https://trac.webkit.org/changeset/225646>
Comment 4 WebKit Commit Bot 2017-12-07 15:18:01 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2017-12-07 15:18:27 PST
<rdar://problem/35920909>