Closed Bug 2081506 Opened 1 month ago Closed 1 month ago

Record which entry point opened the clear browsing data dialog and whether it deleted data

Categories

(Toolkit :: Data Sanitization, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
160 Branch
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:Sanitize command, 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.interaction counters cover some menu clicks but not the shortcut, and they count opens rather than completed deletions.

Proposal:

  • Pass an entry point through Sanitizer.showUI and 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:Sanitize handler, tell the shortcut apart from the menu items by following the command event's sourceEvent back to the <key> or <menuitem>, as BrowserUsageTelemetry already 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.

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.

Pushed by jleritte@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c4a9eabcb935 https://hg.mozilla.org/integration/autoland/rev/ea51048820f9 Record which entry point opened the clear browsing data dialog and whether it deleted data. r=mraiber https://github.com/mozilla-firefox/firefox/commit/52b5839d30b4 https://hg.mozilla.org/integration/autoland/rev/8ecaa904f4ba Report the address bar, history sidebar and Settings as entry points of the clear browsing data dialog. r=urlbar-reviewers,sidebar-reviewers,settings-reviewers,mkennedy,kcochrane,mak
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: