Bug 1511434 - Part 2: resistFingerprinting: Spoof macOS version 10.14 Mojave. r=tjr
authorChris Peterson <cpeterson@mozilla.com>
Sun, 09 Dec 2018 12:28:15 -0800
changeset 531272 fcf0867ec1cc7936715472c493b5e26bf1fa26f2
parent 531271 bf91e3d1fcb5fb55b486e67f025ebec99e88e1ed
child 531273 f72b69b07dd65a242e08c1bdbc4a456969aab243
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstjr
bugs1511434, 201811, 201904
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1511434 - Part 2: resistFingerprinting: Spoof macOS version 10.14 Mojave. r=tjr macOS 10.14 market share (currently at 43%) overtook 10.13 in early December 2018: http://gs.statcounter.com/macos-version-market-share/desktop/worldwide/#monthly-201811-201904 Differential Revision: https://phabricator.services.mozilla.com/D24476
browser/components/resistfingerprinting/test/browser/browser_navigator.js
toolkit/components/resistfingerprinting/nsRFPService.h
--- a/browser/components/resistfingerprinting/test/browser/browser_navigator.js
+++ b/browser/components/resistfingerprinting/test/browser/browser_navigator.js
@@ -30,24 +30,24 @@ const SPOOFED_PLATFORM = {
   win: "Win32",
   macosx: "MacIntel",
   android: "Linux armv7l",
   other: "Linux x86_64",
 };
 const SPOOFED_OSCPU = {
   linux: "Linux x86_64",
   win: "Windows NT 10.0; Win64; x64",
-  macosx: "Intel Mac OS X 10.13",
+  macosx: "Intel Mac OS X 10.14",
   android: "Linux armv7l",
   other: "Linux x86_64",
 };
 const SPOOFED_UA_NAVIGATOR_OS = {
   linux: "X11; Linux x86_64",
   win: "Windows NT 10.0; Win64; x64",
-  macosx: "Macintosh; Intel Mac OS X 10.13",
+  macosx: "Macintosh; Intel Mac OS X 10.14",
   android: "Android 6.0; 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 6.0; Mobile",
--- a/toolkit/components/resistfingerprinting/nsRFPService.h
+++ b/toolkit/components/resistfingerprinting/nsRFPService.h
@@ -22,19 +22,19 @@
 // for hiding the platform: it only brings breakages, like keyboard shortcuts
 // won't work in macOS if we spoof it as a Windows platform.
 #ifdef XP_WIN
 #  define SPOOFED_UA_OS "Windows NT 10.0; Win64; x64"
 #  define SPOOFED_APPVERSION "5.0 (Windows)"
 #  define SPOOFED_OSCPU "Windows NT 10.0; Win64; x64"
 #  define SPOOFED_PLATFORM "Win32"
 #elif defined(XP_MACOSX)
-#  define SPOOFED_UA_OS "Macintosh; Intel Mac OS X 10.13"
+#  define SPOOFED_UA_OS "Macintosh; Intel Mac OS X 10.14"
 #  define SPOOFED_APPVERSION "5.0 (Macintosh)"
-#  define SPOOFED_OSCPU "Intel Mac OS X 10.13"
+#  define SPOOFED_OSCPU "Intel Mac OS X 10.14"
 #  define SPOOFED_PLATFORM "MacIntel"
 #elif defined(MOZ_WIDGET_ANDROID)
 #  define SPOOFED_UA_OS "Android 6.0; Mobile"
 #  define SPOOFED_APPVERSION "5.0 (Android 6.0)"
 #  define SPOOFED_OSCPU "Linux armv7l"
 #  define SPOOFED_PLATFORM "Linux armv7l"
 #else
 // For Linux and other platforms, like BSDs, SunOS and etc, we will use Linux