Open Bug 1081069 Opened 10 years ago Updated 2 years ago

Make nsICacheStorage visit and clear methods optionally work outside the context scope

Categories

(Core :: Networking: Cache, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: mayhemer, Unassigned)

Details

(Whiteboard: [necko-would-take])

When you want to clear a disk cache now, you need to do it over all combinations for anonymous/private/inbrowser etc separately. See e.g. CacheStorageEvictHelper::Run. It's not convenient at all. Hence, asyncEvictStorage and asyncVisitStorage methods on nsICacheStorage should be added an optional flag argument expressing what parameters of nsILoadContextInfo the storage you are calling it on should be treated like 'any'. The flags then will be: - DISHONOR_PRIVATE - DISHONOR_ANONYMOUS - DISHONOR_APPID - DISHONOR_INBROWSER and for convenience: - DISHONOR_ALL_BUT_APPID etc.. and could be combined.
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
Note: better might be to think of using NeckoOriginAttributes and NeckoOriginAttributesPattern (needs to be introduced) instead of nsILoadContextInfo.
Assignee: honzab.moz → nobody
Status: ASSIGNED → NEW
Whiteboard: [necko-would-take]
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.