I am studing browser fingerprint. The js worked in app's webview will detect whether users lied on language by get the result of navigator.language.substr(0,2) == navigator.languages[0].substr(0,2)
.
We found there are about 3% users lied on language( navigator.language.substr(0,2) != navigator.languages[0].substr(0,2)
). By useragent, we found those mobile devices are:
Does those users lied on language? Is there any device's or browser's reason will result in navigator.language.substr(0,2) != navigator.languages[0].substr(0,2)
?
Please see the browser compatibility information . There it says:
In Chrome,
navigator.language
is the language of the browser UI, and is not guaranteed to be equal tonavigator.languages[0]
.In Firefox, the
navigator.languages
property's value is taken from theintl.accept_languages
preference.
It also says Safari is fully compatible, but perhaps older versions aren't?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.