jackspirou/clientjs

Different fingerprints for the same browser on a multi-screen desktop

nicodds opened this issue · 1 comments

When using a multiple-screen configuration, ClientJS will return different fingerprint depending on the screen in which the browser is.

This bug is related to getAvailableResolution method, that takes into account the presence of desktop toolbars. On a multi-screen environment, toolbar is available only in a single screen, so if I move the browser accross the screens I get different values for the fingerprint.

For example, in my case I have a monitor with a toolbar that makes available resolution equal to 1920x1055, while on the second monitor available resolution becomes 1920x1080. The resulting hashes are consequently different.

In my opinion, the best option to solve this issue is to give users the possibility to configure which methods to use/exclude when performing the fingerprint.

My Fault, the option to configure the methods to use is already available in getCustomFingerprint.