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

fix(puppeteer): Default allow 3rd party cookies #114

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

Jeffreyhung
Copy link
Contributor

What does this PR do?

With the latest update from Google/Chrome on deprecating 3rd Party cookies and trackers, chromium now by default enable the block 3rd party cookie feature, which result in inaccurate result from blacklight-collector as the 3rd party cookies are blocked by chromium and not visible to the outcome of the script.

Why are we doing this? How does it help us?

Adding the '--disable-features=TrackingProtection3pcd' as default arg to chromium so that 3rd-party cookie blocking is disabled by default. This will prevent blacklight-collector from giving people the illusion of certain site does not have 3rd party cookies because they did not show up in the outcome.

How/where should this be tested?

What are potential areas for future improvement? Are there any dependencies (especially on 3rd party code)?

N/A

What are the relevant tickets, tasks, or documents?

https://developers.google.com/privacy-sandbox/cookies/prepare/test-for-breakage#:~:text=%2D%2Ddisable%2Dfeatures%3DTrackingProtection3pcd

Have you done the following, if applicable:

(optional: add explanation between parentheses)

  • Tested manually
  • Checked for performance implications? (N/A)
  • Checked for security vulnerabilities? (N/A)
  • Added/updated documentation? ( )
  • Added/updated tests

TODOs / next steps:

  • TODOs here

Copy link
Member

@BatMiles BatMiles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this fix!

@BatMiles BatMiles merged commit bad25bb into the-markup:main Mar 4, 2025
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.

2 participants