Commit 6f6690e1 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

BB 44999: Fix the privacy panel.

This commit might be dropped in 153.
For 152, it might need adjustments, or we might be able to cherry-pick
upstream's commit (Bug 2042309).
parent ac6d26b2
Loading
Loading
Loading
Loading
Loading
+7 −11
Original line number Diff line number Diff line
@@ -742,6 +742,13 @@ Preferences.addAll([
  },
  { id: "app.normandy.enabled", type: "bool" },
  { id: "browser.privacySegmentation.preferences.show", type: "bool" },

  // Preference instances for prefs that we need to monitor while the page is open.
  { id: "app.shield.optoutstudies.enabled", type: "bool" },
  { id: "browser.discovery.enabled", type: "bool" },
  { id: "datareporting.healthreport.uploadEnabled", type: "bool" },
  { id: "datareporting.usage.uploadEnabled", type: "bool" },
  { id: "dom.private-attribution.submission.enabled", type: "bool" },
]);

if (SECURITY_PRIVACY_STATUS_CARD_ENABLED) {
@@ -2983,17 +2990,6 @@ Preferences.addSetting({
    !ipProtectionSubscribedToVpn.value,
});

// Study opt out
if (lazy.AppConstants.MOZ_DATA_REPORTING) {
  Preferences.addAll([
    // Preference instances for prefs that we need to monitor while the page is open.
    { id: "app.shield.optoutstudies.enabled", type: "bool" },
    { id: "browser.discovery.enabled", type: "bool" },
    { id: "datareporting.healthreport.uploadEnabled", type: "bool" },
    { id: "datareporting.usage.uploadEnabled", type: "bool" },
    { id: "dom.private-attribution.submission.enabled", type: "bool" },
  ]);
}
// Privacy segmentation section
Preferences.add({
  id: "browser.dataFeatureRecommendations.enabled",