Bug 2067008: Add nsCocoaFeatures::OnGoldenGateOrLater() for macOS 27. r=mac-reviewers,mstange

Differential Revision: https://phabricator.services.mozilla.com/D321777
This commit is contained in:
Stephen A Pohl
2026-08-27 16:35:08 +00:00
committed by spohl@mozilla.com
parent f99077c0c8
commit 262dedeaf3
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@ class nsCocoaFeatures {
static bool OnVenturaOrLater();
static bool OnSonomaOrLater();
static bool OnTahoeOrLater();
static bool OnGoldenGateOrLater();
static bool IsAtLeastVersion(int32_t aMajor, int32_t aMinor,
int32_t aBugFix = 0);
+6
View File
@@ -20,6 +20,7 @@
#define MACOS_VERSION_13_0_HEX 0x000D0000
#define MACOS_VERSION_14_0_HEX 0x000E0000
#define MACOS_VERSION_26_0_HEX 0x001A0000
#define MACOS_VERSION_27_0_HEX 0x001B0000
#include "nsCocoaFeatures.h"
#include "nsCocoaUtils.h"
@@ -191,6 +192,11 @@ int32_t nsCocoaFeatures::GetVersion(int32_t aMajor, int32_t aMinor,
return (macOSVersion() >= MACOS_VERSION_26_0_HEX);
}
/* static */ bool nsCocoaFeatures::OnGoldenGateOrLater() {
// See comments above regarding SYSTEM_VERSION_COMPAT.
return (macOSVersion() >= MACOS_VERSION_27_0_HEX);
}
/* static */ bool nsCocoaFeatures::IsAtLeastVersion(int32_t aMajor,
int32_t aMinor,
int32_t aBugFix) {