Use Windows 10 instead of 7 in user agent string

This commit is contained in:
Alex Touchet 2019-12-16 10:34:18 -08:00 committed by GitHub
parent c9baa5b9fc
commit f634100c69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -487,10 +487,10 @@ fn default_user_agent_string(agent: UserAgent) -> &'static str {
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
const DESKTOP_UA_STRING: &'static str =
"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Servo/1.0 Firefox/63.0";
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Servo/1.0 Firefox/63.0";
#[cfg(all(target_os = "windows", not(target_arch = "x86_64")))]
const DESKTOP_UA_STRING: &'static str =
"Mozilla/5.0 (Windows NT 6.1; rv:63.0) Servo/1.0 Firefox/63.0";
"Mozilla/5.0 (Windows NT 10.0; rv:63.0) Servo/1.0 Firefox/63.0";
#[cfg(not(any(target_os = "linux", target_os = "windows")))]
// Neither Linux nor Windows, so maybe OS X, and if not then OS X is an okay fallback.