Add an option to clear all data stored by a website
Categories
(DevTools :: Storage Inspector, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: u614622, Assigned: sebo)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-needed, Whiteboard: user-suggestion)
Attachments
(3 files, 1 obsolete file)
Updated•8 years ago
|
Updated•8 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
I guess, the easiest approach to this is to use the SiteDataManager module for this like it's done in https://searchfox.org/mozilla-central/rev/b2433a832c250c55255e0ee37d05192d04f20427/browser/base/content/pageinfo/security.js#6-8,222.
Sebastian
| Assignee | ||
Comment 4•5 years ago
|
||
The toolbar button calls the same logic that is used in Page Info > Security > Clear Cookies and Site Data.
That means it first fetches all hosts related to the current website's host and then opens the dialog Removing Cookies and Site Data to confirm the removal of the data.
Once the user confirms the removal, the data storages are cleared and the current view updated to reflect that the data got removed.
Updated•5 years ago
|
| Assignee | ||
Comment 5•5 years ago
|
||
Note that the patch I've created doesn't include a test, unfortunately, as I don't know how to control the Removing Cookies and Site Data dialog.
Also, please let me know whether the chosen UI is ok. I've chosen to add a toolbar with the clear button above the storages because it is consistent with the other panels. And I chose to display the dialog for removal because it shows that also subdomains are affected by the deletion.
Sebastian
| Assignee | ||
Comment 6•5 years ago
|
||
And to show how the UI looks like with the patch applied, I've attached a screenshot.
Sebastian
Updated•5 years ago
|
| Assignee | ||
Comment 7•5 years ago
|
||
As discussed with Belén, this feature has to wait until the Fission work is done and probably also the rework of the code behind the Storage Inspector. So I unassign myself for now.
Sebastian
Updated•3 years ago
|
Comment 8•2 years ago
|
||
Also requested here:
https://connect.mozilla.org/t5/ideas/single-button-to-clear-all-site-data-in-devtools/idi-p/53788
Adding also to our weekly triage queue.
Comment 9•2 years ago
|
||
We already support clearing each "category" individually, so we could have a button in the UI to clear everything at once
Comment 10•1 year ago
|
||
Any updates? It's really sad to see a simple feature from 7 years ago with no progress 🥲
| Assignee | ||
Comment 11•1 year ago
|
||
The button added resembles the functionality offered via the "Clear cookies and site data..." option available in the address bar.
Updated•1 year ago
|
| Assignee | ||
Comment 12•1 year ago
|
||
Since the Fission work is done, I rebased and updated my previous patch. It basically works the same as before, with the difference that clearing the data is now restricted to the current domain. So it basically does what the "Clear cookies and site data..." option in the address bar does.
As the Storage Inspector is still based on XUL, I didn't have to change the patch much. Though see also the discussion in https://phabricator.services.mozilla.com/D105122.
The patch still doesn't have a test case, unfortunately.
Sebastian
Description
•