-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make WebAuthn interface easier to call from Swift
rdar://124490616 Reviewed by Brent Fulgham. This patch updates a few bits from the WebAuthn interface to make them easier to call from Swift. * Source/WebKit/UIProcess/API/Cocoa/_WKAuthenticatorAssertionResponse.mm: (-[_WKAuthenticatorAssertionResponse initWithClientDataJSON:rawId:extensions:authenticatorData:signature:userHandle:attachment:]): (-[_WKAuthenticatorAssertionResponse initWithClientDataJSON:rawId:extensionOutputsCBOR:authenticatorData:signature:userHandle:attachment:]): (-[_WKAuthenticatorAssertionResponse dealloc]): None of the ivars in this class were being retained/released. This hasn't been an issue for ObjC because they're all retained by the callsite, but it matters for Swift due to the bridging between Data and NSData. The superclass already retains/releases its ivars correctly. * Source/WebKit/UIProcess/API/Cocoa/_WKWebAuthenticationPanel.h: All of the results in these completion handlers are nullable (e.g. we never expect to return an assertion _and_ an error). ObjC doesn't care if they're annotated incorrectly, but Swift does. Canonical link: https://commits.webkit.org/276180@main
- Loading branch information
Garrett Davidson
authored and
Pascoe
committed
Mar 15, 2024
1 parent
2464f16
commit 6f20a05
Showing
2 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters