Closed
Bug 1435914
Opened 8 years ago
Closed 7 years ago
Missing functionality: Get browser cache stats and empty cache
Categories
(WebExtensions :: Untriaged, enhancement)
WebExtensions
Untriaged
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: jason, Unassigned)
References
Details
(Whiteboard: [design-decision-denied])
Looking to upgrade my add-on Cache Status[1] and I'm not seeing WebExtension API support for querying RAM and Disk cache usage. Also not sure if there's a way to empty the cache.
My old code looked something like this:
var cache_service = Components.classes["@mozilla.org/network/cache-service;1"].getService(Components.interfaces.nsICacheService);
Thanks!
[1]: https://addons.mozilla.org/en-US/firefox/addon/cache-status/
Updated•8 years ago
|
Whiteboard: design-decision-needed
Updated•7 years ago
|
Product: Toolkit → WebExtensions
Updated•7 years ago
|
Flags: needinfo?(mconca)
Comment 2•7 years ago
|
||
The design of the WebExtensions API is meant to insulate and abstract the ways extensions interact with the browser. So while this was available in the old extension architecture, exposing the Firefox cache to WebExtensions runs a bit counter to its design goals.
Severity: normal → enhancement
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(mconca)
Resolution: --- → WONTFIX
Whiteboard: design-decision-needed → [design-decision-denied]
You need to log in
before you can comment on or make changes to this bug.
Description
•