commit a0ded69d79fba8f16a406ebc35c7eb2e78123019
parent 11cc2fb5d010f66c02da1badacf25ed745efb9cf
Author: Benjamin VanderSloot <bvandersloot@mozilla.com>
Date: Tue, 30 Dec 2025 15:32:57 +0000
Bug 2001195 - Implement Browsing data card - r=emz,fluent-reviewers,akulyk,bolsson
Using temporary strings
Differential Revision: https://phabricator.services.mozilla.com/D276290
Diffstat:
4 files changed, 87 insertions(+), 2 deletions(-)
diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js
@@ -2936,6 +2936,74 @@ SettingGroupManager.registerGroups({
},
],
},
+ cookiesAndSiteData2: {
+ inProgress: true,
+ l10nId: "sitedata-heading",
+ headingLevel: 2,
+ items: [
+ {
+ id: "siteDataSize",
+ l10nId: "sitedata-total-size-calculating",
+ control: "moz-box-item",
+ supportPage: "sitedata-learn-more",
+ },
+ {
+ id: "manageDataSettingsGroup",
+ control: "moz-box-group",
+ controlAttrs: {
+ type: "default",
+ },
+ items: [
+ {
+ id: "clearSiteDataButton",
+ l10nId: "sitedata-clear2",
+ control: "moz-box-button",
+ iconSrc: "chrome://browser/skin/flame.svg",
+ controlAttrs: {
+ "search-l10n-ids": `
+ clear-site-data-cookies-empty.label,
+ clear-site-data-cache-empty.label
+ `,
+ },
+ },
+ {
+ id: "siteDataSettings",
+ l10nId: "sitedata-settings3",
+ control: "moz-box-button",
+ controlAttrs: {
+ "search-l10n-ids": `
+ site-data-settings-window.title,
+ site-data-column-host.label,
+ site-data-column-cookies.label,
+ site-data-column-storage.label,
+ site-data-settings-description,
+ site-data-remove-all.label,
+ `,
+ },
+ },
+ {
+ id: "cookieExceptions",
+ l10nId: "sitedata-cookies-exceptions3",
+ control: "moz-box-button",
+ controlAttrs: {
+ "search-l10n-ids": `
+ permissions-address,
+ permissions-block.label,
+ permissions-allow.label,
+ permissions-remove.label,
+ permissions-remove-all.label,
+ permissions-exceptions-cookie-desc
+ `,
+ },
+ },
+ ],
+ },
+ {
+ id: "deleteOnClose",
+ l10nId: "sitedata-delete-on-close",
+ },
+ ],
+ },
networkProxy: {
items: [
{
diff --git a/browser/components/preferences/privacy.inc.xhtml b/browser/components/preferences/privacy.inc.xhtml
@@ -405,10 +405,11 @@
</groupbox>
-<groupbox id="siteDataGroup" data-category="panePrivacy" hidden="true" aria-describedby="totalSiteDataSize">
+<groupbox id="siteDataGroup" data-category="panePrivacy" hidden="true" aria-describedby="totalSiteDataSize" data-srd-groupid="cookiesAndSiteData2">
<label><html:h2 data-l10n-id="sitedata-header"/></label>
<html:setting-group groupid="cookiesAndSiteData"/>
</groupbox>
+<html:setting-group groupid="cookiesAndSiteData2" data-category="panePrivacy" hidden="true" />
<!-- Cookie Banner Handling -->
<groupbox id="cookieBannerHandlingGroup" data-category="panePrivacy" data-subcategory="cookiebanner" hidden="true">
diff --git a/browser/components/preferences/privacy.js b/browser/components/preferences/privacy.js
@@ -3779,6 +3779,7 @@ var gPrivacyPane = {
initSettingGroup("httpsOnly");
initSettingGroup("browsingProtection");
initSettingGroup("cookiesAndSiteData");
+ initSettingGroup("cookiesAndSiteData2");
initSettingGroup("certificates");
initSettingGroup("ipprotection");
initSettingGroup("history");
diff --git a/browser/locales-preview/privacyPreferences.ftl b/browser/locales-preview/privacyPreferences.ftl
@@ -327,4 +327,19 @@ do-not-track-removal3 =
.message = We no longer support the “Do Not Track” feature
non-technical-privacy-heading =
- .label = Website Privacy Preferences
+ .label = Website Privacy Preferences
+
+## Site Data
+
+sitedata-heading =
+ .label = Browsing data
+ .description = Manage your cookies, history, cache, website data, and more.
+
+sitedata-settings3 =
+ .label = Clear data for specific sites
+ .accesskey = s
+
+sitedata-cookies-exceptions3 =
+ .label = Manage exceptions
+ .accesskey = x
+ .description = Choose how specific sites handle cookies and site data.