diff options
author | Brian Smith <brian@dbsoft.org> | 2022-06-15 01:29:53 -0500 |
---|---|---|
committer | Brian Smith <brian@dbsoft.org> | 2022-06-15 01:29:53 -0500 |
commit | 5e9342a622e25b7179e31324b268a42dca5ff6f5 (patch) | |
tree | c066a387c8faf39adcd02e27ca9cfa1d28e46430 /dom/base | |
parent | f924d979d537fe9ed871ad9753b71e043b740d96 (diff) | |
download | uxp-5e9342a622e25b7179e31324b268a42dca5ff6f5.tar.gz |
Issue #1905 - Part 4c - Follow Firefox and Safari in reporting "Intel" for Mac ARM64 devices.
Based on Mozilla bug 1655285.
Diffstat (limited to 'dom/base')
-rw-r--r-- | dom/base/Navigator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dom/base/Navigator.cpp b/dom/base/Navigator.cpp index 28b66be3db..05268a5156 100644 --- a/dom/base/Navigator.cpp +++ b/dom/base/Navigator.cpp @@ -1390,9 +1390,8 @@ Navigator::GetPlatform(nsAString& aPlatform, bool aUsePrefOverriddenValue) aPlatform.AssignLiteral("Win32"); #elif defined(XP_MACOSX) && defined(__ppc__) aPlatform.AssignLiteral("MacPPC"); -#elif defined(XP_MACOSX) && defined(__i386__) - aPlatform.AssignLiteral("MacIntel"); -#elif defined(XP_MACOSX) && defined(__x86_64__) +#elif defined(XP_MACOSX) + // Always return "MacIntel", even on ARM64 macOS like Safari does. aPlatform.AssignLiteral("MacIntel"); #else // XXX Communicator uses compiled-in build-time string defines |