summaryrefslogtreecommitdiff
path: root/netwerk/protocol/http
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2020-11-23 08:18:34 -0600
committerBrian Smith <brian@dbsoft.org>2020-11-23 08:18:34 -0600
commit72c6567e04012aa6e35b21e3c58488559e4f1e82 (patch)
tree7ab24da7fc998d7479896f77b4c2cdc135b082f6 /netwerk/protocol/http
parent78f96681b6d9ba584015faf93799fa0ce6e143ee (diff)
downloaduxp-72c6567e04012aa6e35b21e3c58488559e4f1e82.tar.gz
Issue mcp-graveyard/UXP#1690 - Part 1: Fix MacOS version detection above 10.15.
Changes based on Mozilla bug 1616404 but supporting back to 10.7.
Diffstat (limited to 'netwerk/protocol/http')
-rw-r--r--netwerk/protocol/http/nsHttpHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/netwerk/protocol/http/nsHttpHandler.cpp b/netwerk/protocol/http/nsHttpHandler.cpp
index 7a29e041ba..30f5703a52 100644
--- a/netwerk/protocol/http/nsHttpHandler.cpp
+++ b/netwerk/protocol/http/nsHttpHandler.cpp
@@ -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;