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
canvas.context.measureText returns '0' #1738
Comments
The Canvas Fingerprinting is blocked. Hence you see |
Can't the measurement result just be of lower precision, not always As for me, zeroing 44 out of the 53 bits of the Also, currently the feature can identify user as scripts now knows for sure that Brave is used 😁 |
cc: @diracdeltas @riastradh-brave about the above comment RE: fingerprinting |
Description
Creating a dynamic canvas element and attempting to use its 2d context to measure text always renders a width of '0'.
Steps to Reproduce
https://jsfiddle.net/jdmtu2xL/
Actual result:
Width of test string "Testing...1..2...3...." is: 0 :(
Expected result:
Width of test string "Testing...1..2...3...." is: 114.392578125 :)
Reproduces how often:
Consistently
Brave version (brave://version info)
Brave: 0.55.18 Chromium: 70.0.3538.67 (Official Build) (64-bit)
Revision: 9ab0cfab84ded083718d3a4ff830726efd38869f-refs/branch-heads/3538@{#1002}
OS: Mac OS X
Website problems only:
Thanks for Brave!
The text was updated successfully, but these errors were encountered: