Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Block (most) canvas and webgl fingerprinting by default #1354

Merged
merged 3 commits into from
Apr 17, 2016

Conversation

diracdeltas
Copy link
Member

This blocks the most common methods of webgl/canvas fingerprinting that rely on scripts like https://github.com/Valve/fingerprintjs2/blob/49e2c11cf08c13e12bf38185cec9ae159025e526/fingerprint2.js. The detection method is adapted from https://github.com/EFForg/privacybadgerchrome.

TODOs:

  • Doesn't seem to work 100% of the time, perhaps due to a race condition where the page accesses canvas/gl properties before the content script is loaded.
  • This should have a corresponding pref. Probably set to default-off until we have a prompt that lets the user whitelist canvas/gl fingerprinting on a per-site basis.

Test case: see the results on https://panopticlick.eff.org/results?#fingerprintTable for fingerprint and webgl before and after this change.

Fix #694

Using the method from Privacy Badger. This fails on sites whose CSP
forbids inline script, like github.
@@ -38,6 +38,7 @@
<bookmarks "Bookmarks">
<openedTabs "Open tabs">
<doNotTrack "Send a 'Do Not Track' header with browsing requests (requires browser restart)">
<blockCanvasFingerprinting "Block HTML canvas and WebGL fingerprinting">
Copy link
Member

Choose a reason for hiding this comment

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

might be good to add a warning here that it could break some pages.

Copy link
Member Author

Choose a reason for hiding this comment

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

will do

@bbondy
Copy link
Member

bbondy commented Apr 17, 2016

Sorry for the delay, looks good adn thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants