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

disable canvas fingerprinting in browser and console error in ublock #1509

Closed
joksik opened this issue Mar 27, 2016 · 2 comments
Closed

disable canvas fingerprinting in browser and console error in ublock #1509

joksik opened this issue Mar 27, 2016 · 2 comments
Labels

Comments

@joksik
Copy link

joksik commented Mar 27, 2016

Hi, i use Opera Developer 37.0.2171.0 and ublock 1.6.6 (release from yesterday) under Ubuntu 16.04 beta2. i check the bug in another stable Opera so it`s not the browser bug. i always run opera with flag:

--disable-reading-from-canvas

to block canvas fingerprinting i check this solutions on https://www.browserleaks.com/canvas and it works. browserlekas say that canvas is disable (the same solutions is in another chromium browser SlimJet - in settings). when i run browser with this flag i have error in ublock console:

Uncaught securityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-orgin

it`s normal under linux? because before i use Windows and Opera and i run Opera with the same flag and i never seen this error

@gorhill
Copy link
Owner

gorhill commented Mar 27, 2016

The issue is not within uBlock Origin, as clearly shown from the error in the console, and as shown with one simple quick test with any other extension. The issue is in extensions::setIcon, which code is executed as a result of calling chrome.browserAction.setIcon(), which is browser code, not uBO code.

Report to Chromium developers.

@slingamn
Copy link

slingamn commented Aug 5, 2016

A workaround is to pre-render the browser icons as ImageData objects constructed from a literal Uint8ClampedArray, as implemented here: slingamn/simpleblock@ac87f3d1d03a4

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

No branches or pull requests

3 participants