Clear Recent History doesn't empty the cache2/doomed folder

RESOLVED INVALID

Status

()

Core
Networking: Cache
RESOLVED INVALID
3 years ago
3 years ago

People

(Reporter: msth67, Unassigned)

Tracking

37 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0
Build ID: 20150103030215

Steps to reproduce:

Tried to clear the recent history (including cache) via History-->Clear Recent History (Time range:everything - Cookies,Cache,Offline Website Data) .


Actual results:

The cache2/doomed folder was not cleared.


Expected results:

Firefox should have immediately cleared the cache2/doomed folder as well.
Please note that the same happens using Preferences-->Advanced-->Offline Web Content and User Data-->Clear Now, but the Empty Cache Button 2.7 addon for instance does indeed clear 2.7 the /doomed subfolder.

Comment 1

3 years ago
[bugday-20150112]
Name: Firefox
Version: 37.0a1
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Multiprocess Windows: 1/1

Status: Unconfirmed -> Confirmed
From: Untriaged -> Core

cache2/doomed folder not having any effect while "clear recent history"-> "Everything"-> checking all 
fields.

Only cache2/entries folder has gotten cleared. Not tested with Empty Cache button.
Component: Untriaged → Bookmarks & History

Updated

3 years ago
Component: Bookmarks & History → Networking: Cache
Product: Firefox → Core
Michal, can you check on this please?
Flags: needinfo?(michal.novotny)
(In reply to msth67 from comment #0)
> 
> The cache2/doomed folder was not cleared.

That's correct and expected behavior. nsICacheStorageService.clear() evicts entries which means that all existing entries in the cache become inaccessible for nsICacheStorage, but it doesn't specify when exactly the file will be physically removed from the disk. What we actually do is:

- doomed entries -> no action
- active entries -> doom
- inactive entries -> move to trash
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Flags: needinfo?(michal.novotny)
Resolution: --- → INVALID
(Reporter)

Comment 4

3 years ago
If they become inaccessible from the browser, while still remaining somewhere on the disk, doesn't that somehow defeat the purpose of clearing the cache (from a security/privacy standpoint) for someone actually wishing to delete those files for good at the time he/she chooses to clear the browser's history using History-->Clear Recent History (Time range:everything - Cookies,Cache,Offline Website Data) ?
You need to log in before you can comment on or make changes to this bug.