Skip to content

Commit 8164741

Browse files
committed
Fix privacy.js bug with disabled telemetry reporting
1 parent 5579f0b commit 8164741

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

browser/components/preferences/privacy.js

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,17 +1241,8 @@ var gPrivacyPane = {
12411241
this.initOptOutStudyCheckbox();
12421242
}
12431243
this.initAddonRecommendationsCheckbox();
1244+
this.initPrivateAttributionCheckbox();
12441245
}
1245-
dataCollectionCheckboxHandler({
1246-
checkbox: document.getElementById("privateAttribution"),
1247-
pref: PREF_PRIVATE_ATTRIBUTION_ENABLED,
1248-
matchPref() {
1249-
return AppConstants.MOZ_TELEMETRY_REPORTING;
1250-
},
1251-
isDisabled() {
1252-
return !AppConstants.MOZ_TELEMETRY_REPORTING;
1253-
},
1254-
});
12551246

12561247
let signonBundle = document.getElementById("signonBundle");
12571248
let pkiBundle = document.getElementById("pkiBundle");
@@ -3526,6 +3517,19 @@ var gPrivacyPane = {
35263517
});
35273518
},
35283519

3520+
initPrivateAttributionCheckbox() {
3521+
dataCollectionCheckboxHandler({
3522+
checkbox: document.getElementById("privateAttribution"),
3523+
pref: PREF_PRIVATE_ATTRIBUTION_ENABLED,
3524+
matchPref() {
3525+
return AppConstants.MOZ_TELEMETRY_REPORTING;
3526+
},
3527+
isDisabled() {
3528+
return !AppConstants.MOZ_TELEMETRY_REPORTING;
3529+
},
3530+
});
3531+
},
3532+
35293533
observe(aSubject, aTopic) {
35303534
switch (aTopic) {
35313535
case "sitedatamanager:updating-sites":

0 commit comments

Comments
 (0)