Bug 111383

Summary: Clear associated cache partitions when deleting origins' cache
Product: WebKit Reporter: Vicki Pfau <jeffrey+webkit>
Component: Page LoadingAssignee: Vicki Pfau <jeffrey+webkit>
Status: RESOLVED FIXED    
Severity: Normal CC: japhet, mjs, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mjs: review+

Description Vicki Pfau 2013-03-04 16:49:37 PST
When an origin is cleared from the cache, it should also clear out all the cache items that are in the partitions associated with the origins being cleared.

<rdar://problem/13008298>
Comment 1 Vicki Pfau 2013-03-04 17:00:00 PST
Created attachment 191356 [details]
Patch
Comment 2 Vicki Pfau 2013-03-04 17:02:13 PST
I don't really think there's a good way to write an automated test for this functionality; it'd require either exposing mechanisms for fiddling with the cache to WKTR or, in different ways, to TestWebKitAPI. It's rather easy to test manually in Safari, however.
Comment 3 Maciej Stachowiak 2013-03-04 22:58:40 PST
Comment on attachment 191356 [details]
Patch

r=me
Comment 4 Vicki Pfau 2013-03-05 14:32:31 PST
Committed r144819: <http://trac.webkit.org/changeset/144819>