Commit Graph

96 Commits

Author SHA1 Message Date
Butkovits Atila
d779b4bd81 Backed out 12 changesets (bug 1915419) for causing failures at test_bouncetracking_purge.js. CLOSED TREE
Backed out changeset e5c32a502e0f (bug 1915419)
Backed out changeset 8cbcbb25fc99 (bug 1915419)
Backed out changeset 947379a2f167 (bug 1915419)
Backed out changeset 4cfe3a954ade (bug 1915419)
Backed out changeset 94fba1a2786b (bug 1915419)
Backed out changeset 477b4f7c2760 (bug 1915419)
Backed out changeset ed6c8d9d39d4 (bug 1915419)
Backed out changeset e534c390101c (bug 1915419)
Backed out changeset bc3fe74a8b03 (bug 1915419)
Backed out changeset afefdce605f9 (bug 1915419)
Backed out changeset e58887b90d39 (bug 1915419)
Backed out changeset 114298b7b855 (bug 1915419)
2024-09-18 17:49:45 +03:00
Paul Zuehlcke
58d3ffcc3f Bug 1915419 - BounceTrackingProtectionCleaner support for OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220612
2024-09-18 12:50:43 +00:00
Paul Zuehlcke
295ae95b7c Bug 1915419 - Extend deleteDataFromSite to support OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220606
2024-09-18 12:50:37 +00:00
Paul Zuehlcke
50221d0ada Bug 1915419 - Refactor deleteDataFromBaseDomain to deleteDataFromSite. r=anti-tracking-reviewers,geckoview-reviewers,owlish,timhuang
- Renames deleteDataFromBaseDomain to deleteDataFromSite.
 - Cleans up terminology for (schemeless site) to better align with standards.
 - deleteDataFromSite requires a schemeless site to be passed in. We will no longer
   implicitly convert the host to a site.
 - Removes the host fallback for SiteDataManager and ForgetAboutSite. The new schemeless site
   helper Services.eTLD.getSchemelessSiteFromHost accounts for this.

Differential Revision: https://phabricator.services.mozilla.com/D220605
2024-09-18 12:50:36 +00:00
Norisz Fay
d2360aaab4 Backed out 12 changesets (bug 1915419) for causing clearDataFromBaseDomain related gv-junit failures CLOSED TREE
Backed out changeset 6baf34e653ef (bug 1915419)
Backed out changeset 3015863afd5d (bug 1915419)
Backed out changeset 90558f317a75 (bug 1915419)
Backed out changeset 5f07cb9268dd (bug 1915419)
Backed out changeset aedba16d4af7 (bug 1915419)
Backed out changeset d9a2d5c2ba53 (bug 1915419)
Backed out changeset 4a250c451004 (bug 1915419)
Backed out changeset c6da2e632da6 (bug 1915419)
Backed out changeset 9256540ed21a (bug 1915419)
Backed out changeset 7621d766d6a4 (bug 1915419)
Backed out changeset 16d6589ba330 (bug 1915419)
Backed out changeset b3eebd764439 (bug 1915419)
2024-09-16 18:29:55 +03:00
Paul Zuehlcke
d6afbefb66 Bug 1915419 - BounceTrackingProtectionCleaner support for OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220612
2024-09-16 13:25:30 +00:00
Paul Zuehlcke
05355e1604 Bug 1915419 - Extend deleteDataFromSite to support OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220606
2024-09-16 13:25:28 +00:00
Paul Zuehlcke
b5ef9be728 Bug 1915419 - Refactor deleteDataFromBaseDomain to deleteDataFromSite. r=anti-tracking-reviewers,geckoview-reviewers,owlish,timhuang
- Renames deleteDataFromBaseDomain to deleteDataFromSite.
 - Cleans up terminology for (schemeless site) to better align with standards.
 - deleteDataFromSite requires a schemeless site to be passed in. We will no longer
   implicitly convert the host to a site.
 - Removes the host fallback for SiteDataManager and ForgetAboutSite. The new schemeless site
   helper Services.eTLD.getSchemelessSiteFromHost accounts for this.

Differential Revision: https://phabricator.services.mozilla.com/D220605
2024-09-16 13:25:27 +00:00
Paul Zuehlcke
cfeb9307af Bug 1844558 - Log a message to the web console if a site is classified as a potential bounce tracker. r=anti-tracking-reviewers,fluent-reviewers,bolsson,bvandersloot
Differential Revision: https://phabricator.services.mozilla.com/D218311
2024-08-13 12:38:27 +00:00
Paul Zuehlcke
c4730631a9 Bug 1894040 - Extend BTP tests to cover new mode pref. r=anti-tracking-reviewers,bvandersloot
Differential Revision: https://phabricator.services.mozilla.com/D217968
2024-08-13 12:38:26 +00:00
Paul Zuehlcke
6d4789b415 Bug 1894040 - Support for enabling or disabling BounceTrackingProtection during runtime. r=anti-tracking-reviewers,bvandersloot
This patch switches the main logic from a boolean pref to an integer with different feature modes.
See nsIBounceTrackingProtection for the new modes supported. Dry-run mode has been merged into the mode
pref.

A new state is introduced MODE_ENABLED_STANDBY in which BTP still collects user activation signals, but
does not classify or purge bounce trackers. This new mode should be used when it's expected that the
feature may be toggled on/off after rollout. Collecting user activation even in the "disabled" state
ensures that when the feature gets re-enabled the user activation map is already warmed up and sites
important to the user are not classified + purged.

The BounceTrackingProtection singleton listens for changes on the mode pref and inits / tears down accordingly.
However it never shuts down fully. To fully disable the feature a restart is required.

Differential Revision: https://phabricator.services.mozilla.com/D217848
2024-08-13 12:38:26 +00:00
tannal
c6f1328ee9 Bug 1900643 Remove unused variable purgedSiteHosts in BounceTrackingProtection.cpp r=manuel,anti-tracking-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D219027
2024-08-11 14:47:39 +00:00
Narcis Beleuzu
14b319c8a2 Backed out 3 changesets (bug 1844558, bug 1894040) for causing build bustages on BounceTrackingProtection.cpp . CLOSED TREE
Backed out changeset 00cce862553d (bug 1844558)
Backed out changeset 3fcb5ea142fd (bug 1894040)
Backed out changeset aa731ff97ebd (bug 1894040)
2024-08-09 17:03:12 +03:00
Paul Zuehlcke
bc8d4b51d1 Bug 1844558 - Log a message to the web console if a site is classified as a potential bounce tracker. r=anti-tracking-reviewers,fluent-reviewers,bolsson,bvandersloot
Differential Revision: https://phabricator.services.mozilla.com/D218311
2024-08-09 10:46:23 +00:00
Paul Zuehlcke
5566846645 Bug 1894040 - Extend BTP tests to cover new mode pref. r=anti-tracking-reviewers,bvandersloot
Differential Revision: https://phabricator.services.mozilla.com/D217968
2024-08-09 10:46:22 +00:00
Paul Zuehlcke
d6022d4c23 Bug 1894040 - Support for enabling or disabling BounceTrackingProtection during runtime. r=anti-tracking-reviewers,bvandersloot
This patch switches the main logic from a boolean pref to an integer with different feature modes.
See nsIBounceTrackingProtection for the new modes supported. Dry-run mode has been merged into the mode
pref.

A new state is introduced MODE_ENABLED_STANDBY in which BTP still collects user activation signals, but
does not classify or purge bounce trackers. This new mode should be used when it's expected that the
feature may be toggled on/off after rollout. Collecting user activation even in the "disabled" state
ensures that when the feature gets re-enabled the user activation map is already warmed up and sites
important to the user are not classified + purged.

The BounceTrackingProtection singleton listens for changes on the mode pref and inits / tears down accordingly.
However it never shuts down fully. To fully disable the feature a restart is required.

Differential Revision: https://phabricator.services.mozilla.com/D217848
2024-08-09 10:46:21 +00:00
Paul Zuehlcke
8d57cc6963 Bug 1909178 - Check OriginAttributes in HasBounceTrackingStateForSite. r=anti-tracking-reviewers,bvandersloot
Differential Revision: https://phabricator.services.mozilla.com/D217234
2024-07-31 14:44:21 +00:00
Paul Zuehlcke
05cda4b24f Bug 1908634 - Lazily initialize BTPRemoteExceptionList. r=anti-tracking-reviewers,bvandersloot
Differential Revision: https://phabricator.services.mozilla.com/D217485
2024-07-26 11:09:45 +00:00
Paul Zuehlcke
0a3a3e26e9 Bug 1844563 - Add null checks for BTP shutdown cleanup. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D216261
2024-07-11 17:08:07 +00:00
Paul Zuehlcke
b02d151908 Bug 1844563 - Add a Remote Settings BounceTrackingProtection allow-list. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D215948
2024-07-11 17:08:06 +00:00
Cristian Tuns
c5d6dd08a8 Backed out 3 changesets (bug 1844563, bug 1906826) for crashes a=backout
Backed out changeset 52e546f18388 (bug 1906826)
Backed out changeset ac3cf00dcfe6 (bug 1844563)
Backed out changeset e6e6e968d411 (bug 1844563)
2024-07-11 05:23:57 -04:00
Paul Zuehlcke
97484ba75f Bug 1844563 - Add a Remote Settings BounceTrackingProtection allow-list. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D215948
2024-07-10 09:17:14 +00:00
Paul Zuehlcke
5403bfa4a6 Bug 1902024 - Enable bounce.tracking.protection.purge_action event for release. r=anti-tracking-reviewers,data-stewards,manuel,TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D215213
2024-07-01 18:24:30 +00:00
Paul Zuehlcke
01af2372d9 Bug 1902319 - Separate BTP user interaction tracking from ContentBlockingUserInteraction and record user interaction for iframes. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D214622
2024-06-30 12:39:58 +00:00
Norisz Fay
92f25aed32 Backed out 2 changesets (bug 1902319) for causing bustages on BounceTrackingProtection.h CLOSED TREE
Backed out changeset b2f40abb0309 (bug 1902319)
Backed out changeset 530b43559b31 (bug 1902319)
2024-06-28 16:18:01 +03:00
Paul Zuehlcke
55770b3b49 Bug 1902319 - Separate BTP user interaction tracking from ContentBlockingUserInteraction and record user interaction for iframes. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D214622
2024-06-28 12:43:52 +00:00
Paul Zuehlcke
cb1cf5661b Bug 1903825 - Remove unused imports for BTP. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D214412
2024-06-24 16:56:32 +00:00
Manuel Bucher
3d607fb9ef Bug 1899809 - Count how many bounce trackers are purged per scheduled purge r=anti-tracking-reviewers,pbz
Differential Revision: https://phabricator.services.mozilla.com/D214270
2024-06-24 11:24:27 +00:00
Iulian Moraru
1e76de53e2 Backed out 2 changesets (bug 1903713, bug 1903825) for causing non unified build bustages on BounceTrackingProtection.h. CLOSED TREE
Backed out changeset 2807d2cfa4dc (bug 1903713)
Backed out changeset 8c49d9d9251d (bug 1903825)
2024-06-22 03:03:21 +03:00
Paul Zuehlcke
f9a68fa822 Bug 1903825 - Remove unused imports for BTP. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D214412
2024-06-21 17:57:35 +00:00
Paul Zuehlcke
dbeeac8fe6 Bug 1889444 - Submit BTP custom ping on idle-daily. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D212356
2024-06-20 10:26:17 +00:00
Paul Zuehlcke
50e1adeb8b Bug 1889444 - Add BTP purge Glean event. r=anti-tracking-reviewers,manuel,data-stewards
Differential Revision: https://phabricator.services.mozilla.com/D212355
2024-06-20 10:26:16 +00:00
pstanciu
7422c4eea9 Backed out 3 changesets (bug 1889444) for causing xpcshell failures on test_JOG.js CLOSED TREE
Backed out changeset 40bffb571031 (bug 1889444)
Backed out changeset 3b1dc8369d98 (bug 1889444)
Backed out changeset 794e7b951f29 (bug 1889444)
2024-06-18 22:53:49 +03:00
Paul Zuehlcke
5d83dbd46e Bug 1889444 - Submit BTP custom ping on idle-daily. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D212356
2024-06-18 17:10:55 +00:00
Paul Zuehlcke
2e6de73571 Bug 1889444 - Add BTP purge Glean event. r=anti-tracking-reviewers,manuel,data-stewards
Differential Revision: https://phabricator.services.mozilla.com/D212355
2024-06-18 17:10:54 +00:00
Stanca Serban
88e54822a5 Backed out 3 changesets (bug 1889444) for causing build bustages in ClearDataCallback.h.
Backed out changeset 8a7a6ad6efe0 (bug 1889444)
Backed out changeset 18701634fe7e (bug 1889444)
Backed out changeset 6101f2573e20 (bug 1889444)
2024-06-18 05:07:09 +03:00
Paul Zuehlcke
a488c18075 Bug 1889444 - Submit BTP custom ping on idle-daily. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D212356
2024-06-17 18:05:31 +00:00
Paul Zuehlcke
22eb6aafc6 Bug 1889444 - Add BTP purge Glean event. r=anti-tracking-reviewers,manuel,data-stewards
Differential Revision: https://phabricator.services.mozilla.com/D212355
2024-06-17 18:05:31 +00:00
Paul Zuehlcke
3fe1d5b7bb Bug 1876736 - Record bounce trackers purged in anti-tracking stats. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D212798
2024-06-11 17:16:37 +00:00
Paul Zuehlcke
732ad6caca Bug 1899244 - Don't try to init BTP if previous init failed. r=anti-tracking-reviewers,bvandersloot
Differential Revision: https://phabricator.services.mozilla.com/D212248
2024-06-03 13:01:50 +00:00
Paul Zuehlcke
b3f19f7767 Bug 1895311 - Record a BTP user activation on successful credential access. r=bvandersloot,anti-tracking-reviewers
This patch is based on the algorithm from the the following spec draft:
https://privacycg.github.io/nav-tracking-mitigations/#bounce-tracking-mitigations-web-authentication-monkey-patch

Differential Revision: https://phabricator.services.mozilla.com/D210514
2024-06-03 13:01:49 +00:00
Stanca Serban
f480e14ac0 Backed out 2 changesets (bug 1895311) for causing Android mochitests failures.
Backed out changeset 50e2d658a9d6 (bug 1895311)
Backed out changeset abf014966c9a (bug 1895311)
2024-05-28 22:49:05 +03:00
Paul Zuehlcke
b34eb7f73e Bug 1895311 - Record a BTP user activation on successful credential access. r=bvandersloot,anti-tracking-reviewers
This patch is based on the algorithm from the the following spec draft:
https://privacycg.github.io/nav-tracking-mitigations/#bounce-tracking-mitigations-web-authentication-monkey-patch

Differential Revision: https://phabricator.services.mozilla.com/D210514
2024-05-28 18:06:30 +00:00
Paul Zuehlcke
a6ed5bb1f1 Bug 1890580 - In BTP dry-run mode also call ClearDataCallback to collect telemetry, r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D211612
2024-05-28 15:42:02 +00:00
Paul Zuehlcke
713baa3e69 Bug 1890580 - Count sites purged as bounce trackers that are classified as trackers by ETP. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D211578
2024-05-28 15:42:00 +00:00
Paul Zuehlcke
ac6c0b935e Bug 1859738 - Do not purge bounce trackers that have a 'cookie' allow permission. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D211515
2024-05-28 15:42:00 +00:00
acseh
f76ba057da Backed out 5 changesets (bug 1859738, bug 1890580) for causing build bustages on ClearDataCallback.cpp
Backed out changeset b9c5639790a0 (bug 1890580)
Backed out changeset 6816cedc1b99 (bug 1890580)
Backed out changeset 31c3bd2e7609 (bug 1890580)
Backed out changeset 1dc77d30069a (bug 1859738)
Backed out changeset 98a07d06df53 (bug 1859738)
2024-05-28 15:26:21 +03:00
Paul Zuehlcke
7008a10c76 Bug 1890580 - In BTP dry-run mode also call ClearDataCallback to collect telemetry, r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D211612
2024-05-28 11:07:12 +00:00
Paul Zuehlcke
53a8963e71 Bug 1890580 - Count sites purged as bounce trackers that are classified as trackers by ETP. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D211578
2024-05-28 11:07:11 +00:00
Paul Zuehlcke
016022ada2 Bug 1859738 - Do not purge bounce trackers that have a 'cookie' allow permission. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D211515
2024-05-28 11:07:11 +00:00