mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Bug 1711179 - resistFingerprinting: Bump spoofed Android version to 10. r=sysrqb
Differential Revision: https://phabricator.services.mozilla.com/D115144
This commit is contained in:
parent
11d7c96cba
commit
aeb5dea63e
@ -44,7 +44,7 @@ const SPOOFED_APPVERSION = {
|
||||
linux: "5.0 (X11)",
|
||||
win: "5.0 (Windows)",
|
||||
macosx: "5.0 (Macintosh)",
|
||||
android: "5.0 (Android 9)",
|
||||
android: "5.0 (Android 10)",
|
||||
other: "5.0 (X11)",
|
||||
};
|
||||
|
||||
@ -107,14 +107,14 @@ const SPOOFED_UA_NAVIGATOR_OS = {
|
||||
linux: "X11; Linux x86_64",
|
||||
win: "Windows NT 10.0; Win64; x64",
|
||||
macosx: "Macintosh; Intel Mac OS X 10.15",
|
||||
android: "Android 9; Mobile",
|
||||
android: "Android 10; Mobile",
|
||||
other: "X11; Linux x86_64",
|
||||
};
|
||||
const SPOOFED_UA_HTTPHEADER_OS = {
|
||||
linux: "Windows NT 10.0",
|
||||
win: "Windows NT 10.0",
|
||||
macosx: "Windows NT 10.0",
|
||||
android: "Android 9; Mobile",
|
||||
android: "Android 10; Mobile",
|
||||
other: "Windows NT 10.0",
|
||||
};
|
||||
const SPOOFED_HW_CONCURRENCY = 2;
|
||||
|
@ -32,8 +32,8 @@
|
||||
# define SPOOFED_OSCPU "Intel Mac OS X 10.15"
|
||||
# define SPOOFED_PLATFORM "MacIntel"
|
||||
#elif defined(MOZ_WIDGET_ANDROID)
|
||||
# define SPOOFED_UA_OS "Android 9; Mobile"
|
||||
# define SPOOFED_APPVERSION "5.0 (Android 9)"
|
||||
# define SPOOFED_UA_OS "Android 10; Mobile"
|
||||
# define SPOOFED_APPVERSION "5.0 (Android 10)"
|
||||
# define SPOOFED_OSCPU "Linux aarch64"
|
||||
# define SPOOFED_PLATFORM "Linux aarch64"
|
||||
#else
|
||||
@ -54,7 +54,7 @@
|
||||
// For the HTTP User-Agent header, we use a simpler set of spoofed values
|
||||
// that do not reveal the specific desktop platform.
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
# define SPOOFED_HTTP_UA_OS "Android 9; Mobile"
|
||||
# define SPOOFED_HTTP_UA_OS "Android 10; Mobile"
|
||||
#else
|
||||
# define SPOOFED_HTTP_UA_OS "Windows NT 10.0"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user