commit 6e99361f5898a7cf1212bf90c88ba408f1439f34
parent f9615d62849db7283f345d65ceb4f171284ac00d
Author: Sandor Molnar <smolnar@mozilla.com>
Date: Tue, 23 Dec 2025 17:58:44 +0200
Revert "Bug 2001194 - Implement "Additional Protections" card - r=emz,fluent-reviewers,credential-management-reviewers,akulyk,bolsson,mtigley" for causing bc failures @ browser_privacypane_2_srd.js
This reverts commit 00f9154f75671ece5f06f76b16e4fc9790dfae63.
Diffstat:
7 files changed, 8 insertions(+), 103 deletions(-)
diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js
@@ -2703,35 +2703,6 @@ SettingGroupManager.registerGroups({
},
],
},
- nonTechnicalPrivacy2: {
- inProgress: true,
- l10nId: "non-technical-privacy-heading",
- headingLevel: 2,
- items: [
- {
- id: "gpcEnabled",
- l10nId: "global-privacy-control-description",
- supportPage: "global-privacy-control",
- controlAttrs: {
- "search-l10n-ids": "global-privacy-control-search",
- },
- },
- {
- id: "relayIntegration",
- l10nId: "preferences-privacy-relay-available",
- supportPage: "firefox-relay-integration",
- },
- {
- id: "dntRemoval",
- l10nId: "do-not-track-removal3",
- control: "moz-message-bar",
- supportPage: "how-do-i-turn-do-not-track-feature",
- controlAttrs: {
- dismissable: true,
- },
- },
- ],
- },
securityPrivacyStatus: {
items: [
{
diff --git a/browser/components/preferences/privacy.inc.xhtml b/browser/components/preferences/privacy.inc.xhtml
@@ -391,11 +391,10 @@
</vbox>
</vbox>
</groupbox>
-<groupbox id="nonTechnicalPrivacyGroup" data-category="panePrivacy" hidden="true" data-srd-groupid="nonTechnicalPrivacy2">
+<groupbox id="nonTechnicalPrivacyGroup" data-category="panePrivacy" hidden="true">
<label id="nonTechnicalPrivacyHeader"><html:h2 data-l10n-id="non-technical-privacy-header" class="section-heading"/></label>
- <html:setting-group groupid="nonTechnicalPrivacy" />
+ <html:setting-group groupid="nonTechnicalPrivacy"/>
</groupbox>
-<html:setting-group groupid="nonTechnicalPrivacy2" data-category="panePrivacy" hidden="true"/>
<!-- Firefox VPN - IP Protection -->
<groupbox id="dataIPProtectionGroup" data-category="panePrivacy" hidden="true">
diff --git a/browser/components/preferences/privacy.js b/browser/components/preferences/privacy.js
@@ -195,11 +195,9 @@ Preferences.addAll([
// Do not track and Global Privacy Control
{ id: "privacy.donottrackheader.enabled", type: "bool" },
{ id: "privacy.globalprivacycontrol.functionality.enabled", type: "bool" },
+
+ // Global Privacy Control
{ id: "privacy.globalprivacycontrol.enabled", type: "bool" },
- {
- id: "browser.preferences.config_warning.donottrackheader.dismissed",
- type: "bool",
- },
// Firefox VPN
{ id: "browser.ipProtection.enabled", type: "bool" },
@@ -1526,56 +1524,14 @@ Preferences.addSetting({
},
});
Preferences.addSetting({
- id: "relayFeature",
- pref: "signon.firefoxRelay.feature",
-});
-Preferences.addSetting({
- id: "relayIntegration",
- deps: ["savePasswords", "relayFeature"],
- visible: () => {
- return FirefoxRelay.isAvailable;
- },
- disabled: ({ savePasswords, relayFeature }) => {
- return !savePasswords.value || relayFeature.pref.locked;
- },
- get() {
- return FirefoxRelay.isAvailable && !FirefoxRelay.isDisabled;
- },
- set(checked) {
- if (checked) {
- FirefoxRelay.markAsAvailable();
- } else {
- FirefoxRelay.markAsDisabled();
- }
- },
- onUserChange(checked) {
- if (checked) {
- Glean.relayIntegration.enabledPrefChange.record();
- } else {
- Glean.relayIntegration.disabledPrefChange.record();
- }
- },
-});
-Preferences.addSetting({
id: "dntHeaderEnabled",
pref: "privacy.donottrackheader.enabled",
});
Preferences.addSetting({
id: "dntRemoval",
- pref: "browser.preferences.config_warning.donottrackheader.dismissed",
deps: ["dntHeaderEnabled"],
- visible: ({ dntHeaderEnabled }, setting) => {
- return dntHeaderEnabled.value && !setting.value;
- },
- onUserClick: (event, _deps, setting) => {
- let dismissButton = event.target?.shadowRoot?.querySelector(".close");
- if (
- dismissButton?.shadowRoot &&
- event.originalTarget &&
- dismissButton.shadowRoot.contains(event.originalTarget)
- ) {
- setting.value = true;
- }
+ visible: ({ dntHeaderEnabled }) => {
+ return dntHeaderEnabled.value;
},
});
@@ -3767,7 +3723,6 @@ var gPrivacyPane = {
*/
init() {
initSettingGroup("nonTechnicalPrivacy");
- initSettingGroup("nonTechnicalPrivacy2");
if (Services.prefs.getBoolPref("privacy.ui.status_card", false)) {
initSettingGroup("securityPrivacyStatus");
}
diff --git a/browser/components/preferences/tests/browser_privacy_gpc.js b/browser/components/preferences/tests/browser_privacy_gpc.js
@@ -8,7 +8,6 @@
const FEATURE_PREF = "privacy.globalprivacycontrol.functionality.enabled";
const MODE_PREF = "privacy.globalprivacycontrol.enabled";
const DNT_PREF = "privacy.donottrackheader.enabled";
-const RELAY_PREF = "signon.firefoxRelay.feature";
const SECTION_ID = "nonTechnicalPrivacyGroup";
const GPC_CHECKBOX_ID = "gpcEnabled";
@@ -29,7 +28,6 @@ add_task(async function test_section_hidden_when_feature_flag_disabled() {
set: [
[FEATURE_PREF, false],
[MODE_PREF, false],
- [RELAY_PREF, undefined],
],
});
diff --git a/browser/components/preferences/widgets/setting-group/setting-group.mjs b/browser/components/preferences/widgets/setting-group/setting-group.mjs
@@ -29,7 +29,6 @@ const CLICK_HANDLERS = new Set([
"moz-box-link",
"moz-button",
"moz-box-group",
- "moz-message-bar",
]);
/**
diff --git a/browser/locales-preview/privacyPreferences.ftl b/browser/locales-preview/privacyPreferences.ftl
@@ -309,17 +309,3 @@ preferences-etp-custom-suspect-fingerprinting-protection-enabled =
preferences-etp-custom-suspect-fingerprinting-protection-enabled-context =
.aria-label = { preferences-etp-custom-suspect-fingerprinting-protection-enabled.label }
-
-## Relay integration
-
-preferences-privacy-relay-available =
- .label = Suggest { -relay-brand-name } email masks
- .description = Hides your real email address to protect your inbox from spam.
-
-## Additional protections
-
-do-not-track-removal3 =
- .message = We no longer support the “Do Not Track” feature
-
-non-technical-privacy-heading =
- .label = Website Privacy Preferences
diff --git a/toolkit/components/passwordmgr/test/browser/browser_relay_signup_flow_showToAllBrowsers.js b/toolkit/components/passwordmgr/test/browser/browser_relay_signup_flow_showToAllBrowsers.js
@@ -17,10 +17,7 @@ registerCleanupFunction(() => {
add_setup(async () => {
await SpecialPowers.pushPrefEnv({
- set: [
- ["signon.firefoxRelay.showToAllBrowsers", true],
- ["browser.settings-redesign.nonTechnicalPrivacy2.enabled", true],
- ],
+ set: [["signon.firefoxRelay.showToAllBrowsers", true]],
});
});
@@ -344,7 +341,7 @@ add_task(
},
async _browser => {
const relayIntegrationCheckbox = content.document.querySelector(
- "moz-checkbox#relayIntegration"
+ "checkbox#relayIntegration"
);
relayIntegrationCheckbox.click();
}