Update EMECleaner to support clearing partitioned storage
Categories
(Toolkit :: Data Sanitization, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox91 | --- | fixed |
People
(Reporter: emz, Assigned: vringar)
References
Details
Attachments
(1 file)
Storage that needs to be cleared: https://bugzilla.mozilla.org/show_bug.cgi?id=1646215#c5
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
Writing down my thoughts for further reference:
- The module has a three step dance when forgetting a site
- The actual matching against the OriginAttributesPattern and the site happens in MatchOrigin
- Since all work seems to happen on the GMPThread it seems unwise to just abuse getStorageDir
My conclusion:
We should perform the same three step dance and define our own MatchBaseDomain filter function that checks for a given base domain if either the site is a subdomain of the base domain or if the originAttributes base domain is the same as our base domain.
| Assignee | ||
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Backed out for causing Gtest failures.
Backout link: https://hg.mozilla.org/integration/autoland/rev/c44b8cb709e120ea64f093647b809cb800df8817
Failure log: https://treeherder.mozilla.org/logviewer?job_id=344493409&repo=autoland&lineNumber=31682
| Assignee | ||
Comment 5•5 years ago
•
|
||
Okay, creating the test directory on the GMP thread failed, because you can't call dirsvc::get on non-main threads.
That's why I moved the TestMatchBaseDomain tests out of the CDMStorageTest and instead have them be free standing functions running on the main thread.
With these modifications they are passing on my machine again and this try run is currently running all GTests to ensure they also pass on other architectures.
Once they have passed the patch is ready to be relanded.
Comment 7•5 years ago
|
||
| bugherder | ||
Updated•5 years ago
|
Description
•