From 5e9342a622e25b7179e31324b268a42dca5ff6f5 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 15 Jun 2022 01:29:53 -0500 Subject: Issue #1905 - Part 4c - Follow Firefox and Safari in reporting "Intel" for Mac ARM64 devices. Based on Mozilla bug 1655285. --- dom/base/Navigator.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dom') 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 -- cgit v1.2.3