Bug 1883673 - Remove majorRelease2022 Nimbus feature r=aminomancer,omc-reviewers,win-reviewers,gstoll,pbz,firefox-desktop-core-reviewers

This feature is no longer intended for experimentation and some of the things
it controls are no longer in product.

Differential Revision: https://phabricator.services.mozilla.com/D204514
This commit is contained in:
Barret Rennie
2024-04-22 17:57:31 +00:00
parent ee17fec8c8
commit b288396795
14 changed files with 22 additions and 183 deletions

View File

@@ -3227,8 +3227,8 @@ var gPrivacyPane = {
initDataCollection() {
if (
!AppConstants.MOZ_DATA_REPORTING &&
!NimbusFeatures.majorRelease2022.getVariable(
"feltPrivacyShowPreferencesSection"
!Services.prefs.getBoolPref(
"browser.privacySegmentation.preferences.show"
)
) {
// Nothing to control in the data collection section, remove it.
@@ -3255,16 +3255,19 @@ var gPrivacyPane = {
// Section visibility
let section = document.getElementById("privacySegmentationSection");
let updatePrivacySegmentationSectionVisibilityState = () => {
section.hidden = !NimbusFeatures.majorRelease2022.getVariable(
"feltPrivacyShowPreferencesSection"
section.hidden = !Services.prefs.getBoolPref(
"browser.privacySegmentation.preferences.show"
);
};
NimbusFeatures.majorRelease2022.onUpdate(
Services.prefs.addObserver(
"browser.privacySegmentation.preferences.show",
updatePrivacySegmentationSectionVisibilityState
);
window.addEventListener("unload", () => {
NimbusFeatures.majorRelease2022.offUpdate(
Services.prefs.removeObserver(
"browser.privacySegmentation.preferences.show",
updatePrivacySegmentationSectionVisibilityState
);
});