-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Record third-party pings (navigator.sendBeacon) as tracking #2024
Closed
Closed
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1ef8380
Record third-party pings as tracking.
ghostwords 449e2ca
Update ping/beacon listener for Firefox.
ghostwords b248e5d
Add test for beacon detection.
ghostwords b4a55be
Merge branch 'master'
ghostwords 390895c
Remove unnecessary check.
ghostwords 49524a8
Add TODO.
ghostwords c653a9f
Move pingAccounting definition within file.
ghostwords 899b632
Fix beacon detection test.
ghostwords 91eeb6c
Update listener comments.
ghostwords cad6368
Merge branch 'master'
ghostwords 3914269
Merge branch 'master'.
ghostwords ef45715
Merge branch 'master'.
ghostwords 6a65aba
Merge branch 'master'.
ghostwords 803a8f8
Move beacon test from GitCDN to EFF's CDN.
ghostwords 61e3fd2
Take MDFP into account for beacon tracking.
ghostwords File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably susceptible to navigation-related misattribution (
tabOrigins
has the new site's URL instead of the site that originated the ping; similar to #1997), but this may be OK for now (problem exists elsewhere, no need to block on the fix if the new feature works well enough).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is an issue for the
ping
attribute on hyperlinks. For example, visit google.com in chrome, make a search, and click on any outbound link. For me, most of the time clicking onfoo.com
adds that domain as an entry forgoogle.com
in thesnitch_map
. Since the ping request fires off simultaneously with the user navigating away from Google, this bug is much more likely to come up.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, but is that a blocking issue, practically speaking? Privacy Badger is very likely to learn to block
google.com
anyway.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess in general the navigation bug means we are likely to record first-party pings as third-party tracking. Or third-party pings as third-party on the wrong party.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's not a big deal for google in particular, but my concern is that it will happen to any site that uses the
ping
attr on links. Maybe that's not a bad thing? If we decide that we want to considerping
on outgoing links to be a tracking action, then this could be a feature, not a bug.The wrong-third-party scenario would end up messing up the
snitch_map
for a tracking domain, but not the tracking domain itself, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this navigation-related attribution bug doesn't affect the tracking domain, just where it was seen. We could attribute the tracking domain to the wrong site domain, the one the user just navigated to. #1997 is waiting on information from Chromium devs at the moment.