This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
Brave breaks emoji support detection #263
Labels
bug
Something isn't working
help wanted
Extra attention is needed
triaged
Issue has been looked at and triaged
On Brave (macOS Big Sur), the emoji picker shows emojis not supported by the platform.
Please check the following fiddle on Brave on a system that doesn't support Emoji 14:
https://jsfiddle.net/ugewta0r/
It seems caused by Brave's fingerprinting protections, which causes getImageData method returns inconsistent values.
I see that you use this method on your codebase for emoji support detection.
When I disable the protection, all seems to work fine.
Below you can find some useful discussions:
brave/brave-browser#9591
koala-interactive/is-emoji-supported#14
Maybe you could compare more than one pixel on your logic or allow slight color differences than the expected black.
Thanks for your great work!
The text was updated successfully, but these errors were encountered: