Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions browser/components/preferences/privacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2562,6 +2562,18 @@ var gPrivacyPane = {
},

clearSiteData() {
// Ask for confirmation first
let confirmed = Services.prompt.confirmEx(
window,
"Confirm Data Deletion",
"Are you sure you want to delete cookies and site data? This may sign you out of websites.",
Services.prompt.STD_YES_NO_BUTTONS,
null, null, null, null, {}
);

if (confirmed !== 0) {
return;
}
// We have to use the full path name to avoid getting errors in
// browser/base/content/test/static/browser_all_files_referenced.js
let dialogFile = useOldClearHistoryDialog
Expand Down