Issue #1690 - Part 1: Fix MacOS version detection above 10.15.

Changes based on Mozilla bug 1616404 but supporting back to 10.7.
This commit is contained in:
Brian Smith 2020-11-23 08:18:34 -06:00 committed by roytam1
commit e4030ad075
5 changed files with 97 additions and 93 deletions

View file

@ -843,8 +843,8 @@ nsHttpHandler::InitUserAgentComponents()
#elif defined(__i386__) || defined(__x86_64__)
mOscpu.AssignLiteral("Intel Mac OS X");
#endif
SInt32 majorVersion = nsCocoaFeatures::OSXVersionMajor();
SInt32 minorVersion = nsCocoaFeatures::OSXVersionMinor();
SInt32 majorVersion = nsCocoaFeatures::macOSVersionMajor();
SInt32 minorVersion = nsCocoaFeatures::macOSVersionMinor();
mOscpu += nsPrintfCString(" %d.%d", majorVersion, minorVersion);
#elif defined (XP_UNIX)
struct utsname name;