Revamp logic behind data size parameters for clear history dialog
Categories
(Toolkit :: Data Sanitization, enhancement, P3)
Tracking
()
People
(Reporter: hsohaney, Unassigned)
References
(Blocks 1 open bug)
Details
The logic behind connecting the Sanitizer and Sanitize Dialog to get data sizes can be simplified and made easier to read. The data fetching code is currently inefficient since it has to loop through all sites and count data, instead of doing db fetching through the clearDataService.
https://searchfox.org/mozilla-central/rev/8340afd1fb3e7b2727d2efb47df1bd3112db7213/browser/modules/SiteDataManager.sys.mjs#401
Comment 1•8 months ago
|
||
Harshit, is this bug still applicable? If so, could you please update the description to explain better what needs to be updated?
Reporter | ||
Comment 2•8 months ago
|
||
I think the code is a bit inefficient right now since it has to loop through all the sites to get the values: https://searchfox.org/mozilla-central/rev/8340afd1fb3e7b2727d2efb47df1bd3112db7213/browser/modules/SiteDataManager.sys.mjs#401
We should probably make this better, but it is a backlog item. What are your thoughts?
Comment 3•8 months ago
|
||
How could we make it more efficient? :) Could you please add that to the bug description?
Reporter | ||
Updated•8 months ago
|
Description
•