Skip to content

Commit

Permalink
Bug 1773701 - Part 1: Add email tracking data collection feature to S…
Browse files Browse the repository at this point in the history
…afeBrowsing.jsm. r=dimi

Differential Revision: https://phabricator.services.mozilla.com/D151521
  • Loading branch information
artines1 committed Jul 19, 2022
1 parent b12089a commit edd54f5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/libpref/init/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3788,6 +3788,8 @@ pref("urlclassifier.features.socialtracking.annotate.blacklistTables", "social-t
pref("urlclassifier.features.socialtracking.annotate.whitelistTables", "mozstd-trackwhite-digest256,google-trackwhite-digest256");
pref("urlclassifier.features.emailtracking.blocklistTables", "base-email-track-digest256");
pref("urlclassifier.features.emailtracking.allowlistTables", "mozstd-trackwhite-digest256");
pref("urlclassifier.features.emailtracking.datacollection.blocklistTables", "base-email-track-digest256,content-email-track-digest256");
pref("urlclassifier.features.emailtracking.datacollection.allowlistTables", "mozstd-trackwhite-digest256");

// These tables will never trigger a gethash call.
pref("urlclassifier.disallow_completions", "goog-downloadwhite-digest256,base-track-digest256,mozstd-trackwhite-digest256,content-track-digest256,mozplugin-block-digest256,mozplugin2-block-digest256,goog-passwordwhite-proto,ads-track-digest256,social-track-digest256,analytics-track-digest256,base-fingerprinting-track-digest256,content-fingerprinting-track-digest256,base-cryptomining-track-digest256,content-cryptomining-track-digest256,fanboyannoyance-ads-digest256,fanboysocial-ads-digest256,easylist-ads-digest256,easyprivacy-ads-digest256,adguard-ads-digest256,social-tracking-protection-digest256,social-tracking-protection-facebook-digest256,social-tracking-protection-linkedin-digest256,social-tracking-protection-twitter-digest256,base-email-track-digest256,content-email-track-digest256");
Expand Down
17 changes: 17 additions & 0 deletions toolkit/components/url-classifier/SafeBrowsing.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,23 @@ const FEATURES = [
);
},
},
{
name: "emailtracking-data-collection",
list: [
"urlclassifier.features.emailtracking.datacollection.blocklistTables",
"urlclassifier.features.emailtracking.datacollection.allowlistTables",
],
enabled() {
// Data collection features are enabled by default.
return true;
},
update() {
return Services.prefs.getBoolPref(
"browser.safebrowsing.features.emailtracking.datacollection.update",
this.enabled()
);
},
},
];

var SafeBrowsing = {
Expand Down

0 comments on commit edd54f5

Please sign in to comment.