Deprecation of navigator.userAgent, navigator.appVersion, and navigator.platform
JuliusBairaktaris opened this issue · comments
Hello,
I've noticed that the webfontloader library is currently using navigator.userAgent, navigator.appVersion, and navigator.platform in its codebase. As per the recent updates from Chrome (starting in Chrome 101), the amount of information available in the User Agent string will be reduced.
This change is part of an effort to improve user privacy and security, and it is recommended to replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
I believe updating these parts of the codebase would help in maintaining compatibility with the latest browser versions and standards. Please consider this issue for the upcoming updates.
Thank you for your attention to this matter.