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
getScreenResolution is zoom dependent for IE and FF #98
Comments
Thanks for the code, last time I checked into this, I couldn't make FF return resolution in a stable way when zooming in/out. I'll look into it. |
@mp31415 I have also referenced your code in this SO answer: http://stackoverflow.com/questions/30557404/get-screen-resolution-independent-of-zoom-in-firefox/34368907#34368907 Please let me know if you're OK with it. |
I've modified your code slightly (mostly cleanup/readability) and added it to the dev branch. The screen resolution now is independent on zoom. However, the canvas FP is different for FF on different zooms. I have opened a separate issue for this. |
The same problem occurs with Microsoft Edge as well.
Testing with IE here: I still have the same problem, doing the zoom, the Fingerprint change. No ZOOM: 2500x1400 |
@LightCrystal thanks for letting me know. I don't have a Windows device with Microsoft Edge on it, only with IE 11 (where zooming is working fine). Please submit a separate issue so that other people with Edge could see it and potentially fix. |
@Valve regarding code referencing. Absolutely. We all owe you for this great piece of software. So thanks a lot. |
OK, so the issue is big resolutions, where rounding errors start to interfere. Maybe we should add additional scaling factor based on resolution? I don't have a device to test it unfortunately though |
I've just upgraded my old laptop to Windows 10 and tested on MS Edge. The FP is changing depending on the zoom. The laptop has the resolution of 1600x1200, so I will take a look into it. |
Moving this issue to v3, because it's much harder to fix reliably, than I anticipated. |
3 years later, and it's still an issue, which I don't know how to solve reliably. |
Yeah. I think that should be done. I just tested on FF and this still exists. |
https://developer.mozilla.org/en-US/docs/Web/API/Visual_Viewport_API For IE - we'll be dropping the IE support in V3. |
@Valve The issue is still relevant for v3. I think we should solve it. |
@Finesse I agree, but I don't know how. Also we need to confirm if it's still an issue in Edge based on Chromium. |
In Chrome getScreenResolution (screen.height, screen.width, screen.availHeight, screen.availWidth) is zoom independent, however in IE and FF these values change upon zoom in/zoom out. (Not sure about Safari/Opera). It makes fingerprint less stable I think. The extra code I use to deal with the issue is the following:
The text was updated successfully, but these errors were encountered: