Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infrastructure to expand 3rd-Party Tracker Loading Protection #1313

Conversation

jonathanKingston
Copy link
Collaborator

@jonathanKingston jonathanKingston commented Aug 7, 2022

Reviewer: @englehardt

Description:

Add the infrastructure we need to expand our 3rd-Party Tracker Loading Protection to include Microsoft, such that Microsoft scripts on our list are blocked from loading except for requests from one domain (bat.bing.com) loading on some advertiser websites following DuckDuckGo ad clicks. For more information, please see https://help.duckduckgo.com/duckduckgo-help-pages/privacy/web-tracking-protections/#3rd-party-tracker-loading-protection

Steps to test this PR:

Automated tests:

  • Unit tests
  • Integration tests
Reviewer Checklist:
  • Ensure the PR solves the problem
  • Review every line of code
  • Ensure the PR does no harm by testing the changes thoroughly
  • Get help if you're uncomfortable with any of the above!
  • Determine if there are any quick wins that improve the implementation
PR Author Checklist:
  • Get advice or leverage existing code
  • Agree on technical approach with reviewer (if the changes are nuanced)
  • Ensure that there is a testing strategy (and documented non-automated tests)
  • Ensure there is a documented monitoring strategy (if necessary)
  • Consider systems implications

jonathanKingston and others added 3 commits August 8, 2022 00:15
Add the infrastructure we need to expand our 3rd-Party Tracker Loading Protection to include Microsoft, such that Microsoft scripts on our list are blocked from loading except for requests from one domain (bat.bing.com) loading on some advertiser websites following DuckDuckGo ad clicks. For more information, please see https://help.duckduckgo.com/duckduckgo-help-pages/privacy/web-tracking-protections/#3rd-party-tracker-loading-protection
- ensure icons are the correct colour in all states
- ensure text/descriptions are correct in all states
- show the correct text for 'tracker networks'
- various CSS fixes
- reload the page when the popup is closed following a protections toggle
- pass the correct model when determining explainer text on third parties screen
- Filter out first party requests from panel.
- Remove independent.co.uk grading.
@jonathanKingston jonathanKingston force-pushed the infra_to_expand_third_party_tracker_loading_protection branch from 5a93508 to f20c7d0 Compare August 8, 2022 12:02
@jonathanKingston jonathanKingston merged commit 6a4688d into duckduckgo:develop Aug 8, 2022
@jdorweiler jdorweiler mentioned this pull request Oct 11, 2022
12 tasks
jdorweiler added a commit that referenced this pull request Oct 24, 2022
* started on mv3 ad click

* passes integration tests

* use ddg2dnr

* Update shared/js/background/classes/ad-click-attribution-policy.js

Co-authored-by: Jonathan Kingston <jkingston@duckduckgo.com>

* add unique rule id, oneadclick per tab

* lint

* check that tab exists

* use ad attribution priority

* lint

* lint

* remove debug lines

* remove debug lines

* check for adClickDNR for mv2

* Update shared/js/background/classes/ad-click-attribution-policy.js

Co-authored-by: Dave Vandyke <kzar@kzar.co.uk>

* rename module

* unused function

* Apply suggestions from code review

Co-authored-by: Jonathan Kingston <jkingston@duckduckgo.com>
Co-authored-by: Dave Vandyke <kzar@kzar.co.uk>

* Apply suggestions from code review

Co-authored-by: Jonathan Kingston <jkingston@duckduckgo.com>

* simplify session ids, move dnr stuff around

* fix removal

* everything in adclick

* get offset from storage

* set session id on startup

* Update shared/js/background/dnr-session-rule-id.js

Co-authored-by: Jonathan Kingston <jkingston@duckduckgo.com>

* Update shared/js/background/dnr-session-rule-id.js

Co-authored-by: Dave Vandyke <kzar@kzar.co.uk>

* Update shared/js/background/classes/ad-click-attribution-policy.js

Co-authored-by: Jonathan Kingston <jkingston@duckduckgo.com>

* add tests

* fix test

* changes from pr review

* add ready flag to session id

* make linter happy

Co-authored-by: Jonathan Kingston <jkingston@duckduckgo.com>
Co-authored-by: Dave Vandyke <kzar@kzar.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants