Record which entry point opened the clear browsing data dialog and whether it deleted data
Categories
(Toolkit :: Data Sanitization, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: jleritte, Assigned: jleritte)
References
Details
Attachments
(2 external files)
The fire button experiment (bug 2076799, shipping with Firefox 161) needs to measure whether the fire button displaces the existing ways of clearing browsing data. Today there is no way to tell how the clear browsing data dialog (sanitize_v2.xhtml) was opened, or whether it went on to delete anything:
- The History menu item, the app menu History item, the keyboard shortcut (Ctrl+Shift+Del, Cmd+Shift+Delete on macOS) and the address bar quick action all go through the
Tools:Sanitizecommand, so they are indistinguishable once the dialog opens. The shortcut is the case that matters most here, since those users already have a one-gesture path. - The
browser.ui.interactioncounters cover some menu clicks but not the shortcut, and they count opens rather than completed deletions.
Proposal:
- Pass an entry point through
Sanitizer.showUIand the dialog arguments from every caller: shortcut, History menu, app menu, address bar quick action, address bar suggestion, history sidebar, Settings, fire button. - In the
Tools:Sanitizehandler, tell the shortcut apart from the menu items by following the command event'ssourceEventback to the<key>or<menuitem>, asBrowserUsageTelemetryalready does. - Record Glean events when the dialog opens and when it closes, with the entry point, and on close whether data was deleted or the dialog was cancelled.
This is interaction data (category 2).
Timing: to be useful for the experiment this has to ship in Firefox 161, so it needs to land before the 161 merge to Beta on 2026-11-05.
| Assignee | ||
Comment 1•1 month ago
|
||
The fire button experiment needs to tell whether the fire button replaces the
existing ways of clearing data, the keyboard shortcut in particular, which
shares its command with the menu items.
| Assignee | ||
Comment 2•1 month ago
|
||
Comment 4•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/ea51048820f9
https://hg.mozilla.org/mozilla-central/rev/8ecaa904f4ba
Updated•29 days ago
|
Description
•