Bug 1909441 - webauthn on macOS: use user.displayName rather than user.name, as intended r=jschanck

This was probably just a copy/paste issue. The intent was to use the
displayName for the displayName parameter when creating a cross-platform
webauthn credential on macOS.

Differential Revision: https://phabricator.services.mozilla.com/D218466
This commit is contained in:
Dana Keeler 2024-08-02 20:55:51 +00:00
Родитель 1f6dbb42ae
Коммит ff461e274d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -585,7 +585,7 @@ MacOSWebAuthnService::MakeCredential(uint64_t aTransactionId,
NSString* userNameNS = nsCocoaUtils::ToNSString(userName);
nsAutoString userDisplayName;
Unused << aArgs->GetUserName(userDisplayName);
Unused << aArgs->GetUserDisplayName(userDisplayName);
NSString* userDisplayNameNS = nsCocoaUtils::ToNSString(userDisplayName);
nsTArray<int32_t> coseAlgs;