Open Bug 1948875 Opened 26 days ago Updated 23 days ago

Unify the API for clearing in-memory cache

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

ASSIGNED

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(5 files)

As suggested in https://phabricator.services.mozilla.com/D238582#inline-1321062 , we could have a unified API for clearing in-memory cache for various resources (stylesheets, scripts, images), filtering by resource types, principals, etc,
replacing the current ChromeUtils.clearStyleSheetCache*, ChromeUtils.clearScriptCache* APIs and possibly some of the imgICache APIs.

In order to clear cache from ChromeUtils.clearResourceCache with variuos
filtering, imgLoader needs a method that are adaptive to the current process,
where in the parent process, clear all processes' cache,
and in the content process, clear the cache in the process.

Refactored the cache methods based on single static method and single IPC
method, this is also necessary to extend the ChromeUtils.clearResourceCache in
bug 1947158.

Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: