Removing Cookies and Site Data clears more disk cache than it should
Categories
(Toolkit :: Data Sanitization, defect, P1)
Tracking
()
People
(Reporter: remtanmajitenshi, Assigned: johannh)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details |
STR:
- Create clean profile on nightly
- Open mozilla.org or twitter.com or reddit.com
- Open https://commons.wikimedia.org/
- On wikimedia open "Random file" link many times to collect cache (e.g. 20 mb), or open few large images like https://upload.wikimedia.org/wikipedia/commons/0/05/Citizen_of_Castelo_de_Monsanto.jpg
- Open about:preferences#privacy and delete cookies for domain(s) from step 2.
AR:
About half of the cache or more purges. Sometimes you can see in about:cache that you lose https://upload.wikimedia.org/wikipedia/commons/0/05/Citizen_of_Castelo_de_Monsanto.jpg after clearing cookies for unrelated domains (like twitter/reddit). If you have 1 GB cache, you lose almost all of it.
ER:
Cache loses only related data.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Comment 3•5 years ago
|
||
bugherder |
Comment 4•5 years ago
|
||
Please nominate this for Beta approval when you get a chance.
Assignee | ||
Comment 5•5 years ago
|
||
Comment on attachment 9120914 [details]
Bug 1591362 - Fix incorrect origin comparison in CacheFileContextEvictor::EvictEntries(). r=baku!,mayhemer!
Beta/Release Uplift Approval Request
- User impact if declined: Clearing cache for a specific origin through various means, under certain conditions, clears all cache except that belonging to the origin. Fun.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See comment 0
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): One-liner that flips a quite obviously wrong condition. This code should only be run when clearing the cache.
- String changes made/needed: None
Assignee | ||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Comment on attachment 9120914 [details]
Bug 1591362 - Fix incorrect origin comparison in CacheFileContextEvictor::EvictEntries(). r=baku!,mayhemer!
Fixes a logical error to avoid incorrectly evicting cache items. Approved for 73.0b9.
Comment 7•5 years ago
|
||
bugherder uplift |
Updated•5 years ago
|
Comment 8•5 years ago
|
||
Reproduced the initial issue using an old Beta build.
Verified - Fixed in latest Nightly build 74.0a1 (Build id: 20200122215748) and Beta 73.0b9 (Build id: 20200123022532) using Windows 10.
No. This is NOT fixed in FF-75. Regression testing will fail.
Replictate:
.Visit Site. (facebook in my case)
.Have issues.
.Click Padlock on the main bar
.Click "Clear Cookies and Site Data.."
Only the current site is shown.
.Confirm by clicking "REMOVE"
Bam. All site data and cache and cookies gone.
Expected result.
Have to re login in to that specific site. NOT EVERY SITE
comment:
It's small but when two factor auth is on various sites, it gets real tiresome.
Comment 10•5 years ago
|
||
(In reply to Rob N from comment #9)
No. This is NOT fixed in FF-75. Regression testing will fail.
Replictate:
.Visit Site. (facebook in my case)
.Have issues.
.Click Padlock on the main bar
.Click "Clear Cookies and Site Data.."
Only the current site is shown.
.Confirm by clicking "REMOVE"Bam. All site data and cache and cookies gone.
Expected result:
Have to re login in to that specific site.
NOT EVERY SITE.comment:
It's small but when two factor auth is on various sites, it gets real tiresome.
Comment 11•5 years ago
|
||
[Tracking Requested - why for this release]:
Comment 12•5 years ago
|
||
Quick update: It seems that "delete cookies and history and site data" option was checked.
It may have been my mis-click as i am constantly (as an intense youtube video consumer) having to clear the 1gb cache.
via: (: Options > Privacy and Security > Clear Data. ULTRA CAREFUL to UNcheck 'Cookies and Site Data', leaving only 'Cached Web Content' Checked. Click 'Clear' (we really need a quick button to clear the cache and not touch the cookies on the menu bar!!)
I'll repeat in a new sesstion after computer restart (windows 7 ult) and report my results back.
Assignee | ||
Comment 13•5 years ago
|
||
Ah, yes, we have a bug for this, let me dig it up...
Assignee | ||
Comment 14•5 years ago
|
||
Ah, it's bug 1463114. See also this comment:
[...] I would highly recommend to use an add-on like https://addons.mozilla.org/en-US/firefox/addon/clearcache/ instead.
Updated•3 years ago
|
Description
•