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

Misattribution fixes #2198

Closed
wants to merge 18 commits into from
Closed

Misattribution fixes #2198

wants to merge 18 commits into from

Conversation

ghostwords
Copy link
Member

@ghostwords ghostwords commented Oct 19, 2018

Fixes most of #1997 and maybe some of #1144. Fixes #2692.

  • Review Badger Sett scans (should render cleanup unnecessary)
  • Assess performance impact of updating performance-critical request blocking code paths

Should be followed up by #2024.

@ghostwords ghostwords force-pushed the misattribution-fixes branch from 2d0fd4a to ccc9133 Compare October 21, 2018 17:08
@ghostwords ghostwords force-pushed the misattribution-fixes branch from ccc9133 to 123797c Compare October 21, 2018 17:33
By checking the request's document URL when available.
@ghostwords ghostwords force-pushed the misattribution-fixes branch 2 times, most recently from a9aaca2 to 11c8da7 Compare October 21, 2018 20:49
By checking the request's document URL when available.
@ghostwords ghostwords force-pushed the misattribution-fixes branch 2 times, most recently from 211de76 to 021299e Compare October 22, 2018 02:34
Service worker requests seem to be the only case where
details.documentUrl contains a non-trivial path.

This needs to be confirmed.
@ghostwords
Copy link
Member Author

ghostwords commented May 28, 2019

@ghostwords

This comment has been minimized.

@ghostwords
Copy link
Member Author

Should be able to remove cleanup from badger-sett after this gets merged and we have a few badger-sett runs to confirm that's the case.

Conflicts:
	src/js/heuristicblocking.js
	src/js/webrequest.js
Conflicts:
	src/js/webrequest.js
Conflicts:
	src/js/heuristicblocking.js
	src/js/utils.js
	src/js/webrequest.js
When looking for misattribution.

Avoids computing hosts/origins when there is no misattribution.

Could matter when there is misattribution across different subdomains
(and we care about URLs such as with cookie sharing detection).
As misattribution doesn't necessarily mean we are on a different site
now (missing "main_frame" web workers bug); we could just be getting
requests from the previous site we were on (rapid navigation/ping bugs).
As details.initiator is not a complete URL.
Conflicts:
	src/js/heuristicblocking.js
	src/js/utils.js
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.

On firefox, clicking links in tweets shows a false positive blocked t.co domain on the resulting page
1 participant