From 843a144d3558bbcf4651ae68a51a9ccc384b4acd Mon Sep 17 00:00:00 2001 From: John Schanck Date: Thu, 27 Feb 2025 05:14:45 +0000 Subject: [PATCH] Bug 1950537 - assume hybrid transport support for iCloud Keychain Passkeys. r=keeler Differential Revision: https://phabricator.services.mozilla.com/D239807 --- dom/webauthn/MacOSWebAuthnService.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/webauthn/MacOSWebAuthnService.mm b/dom/webauthn/MacOSWebAuthnService.mm index c3bda2ba3fed..88c9e5c2b428 100644 --- a/dom/webauthn/MacOSWebAuthnService.mm +++ b/dom/webauthn/MacOSWebAuthnService.mm @@ -317,6 +317,7 @@ nsTArray NSDataToArray(NSData* data) { if ([credential isKindOfClass: [ASAuthorizationPlatformPublicKeyCredentialRegistration class]]) { + transports.AppendElement(u"hybrid"_ns); transports.AppendElement(u"internal"_ns); #if defined(MAC_OS_VERSION_13_5) && \ MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_13_5 @@ -328,7 +329,6 @@ nsTArray NSDataToArray(NSData* data) { switch (platformCredential.attachment) { case ASAuthorizationPublicKeyCredentialAttachmentCrossPlatform: authenticatorAttachment.emplace(u"cross-platform"_ns); - transports.AppendElement(u"hybrid"_ns); break; case ASAuthorizationPublicKeyCredentialAttachmentPlatform: authenticatorAttachment.emplace(u"platform"_ns);