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

NEW
Unassigned

Status

()

Core
Networking: Cache
P5
enhancement
4 years ago
7 months ago

People

(Reporter: mayhemer, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [necko-would-take])

(Reporter)

Description

4 years ago
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.
(Reporter)

Updated

3 years ago
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
(Reporter)

Comment 1

2 years ago
Note: better might be to think of using NeckoOriginAttributes and NeckoOriginAttributesPattern (needs to be introduced) instead of nsILoadContextInfo.
(Reporter)

Updated

2 years ago
Assignee: honzab.moz → nobody
Status: ASSIGNED → NEW
Whiteboard: [necko-would-take]
You need to log in before you can comment on or make changes to this bug.