Summary: | Passkeys don't work in Simulator | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Garrett Davidson <garrett_davidson> | ||||||
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bfulgham, ews-watchlist, jiewen_tan, katherine_cheney, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Garrett Davidson
2021-06-16 09:29:00 PDT
Created attachment 431554 [details]
Patch
Comment on attachment 431554 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431554&action=review > Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalConnection.mm:156 > +#if defined(TARGET_OS_SIMULATOR) && TARGET_OS_SIMULATOR I am not familiar with TARGET_OS_SIMULATOR, I see PLATFORM(IOS_FAMILY_SIMULATOR) used more often. Is there a reason you chose this instead? Comment on attachment 431554 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431554&action=review r- to change the macro to PLATFORM(IOS_FAMILY_SIMULATOR), but otherwise looks great. >> Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalConnection.mm:156 >> +#if defined(TARGET_OS_SIMULATOR) && TARGET_OS_SIMULATOR > > I am not familiar with TARGET_OS_SIMULATOR, I see PLATFORM(IOS_FAMILY_SIMULATOR) used more often. Is there a reason you chose this instead? Right -- we don't use these TARGET macros in WebKit. We have PLATFORM macros that serve this purpose (and handle the defined/not defined state properly). As Kate suggests, you just want: #if PLATFORM(IOS_FAMILY_SIMULATOR) Created attachment 431609 [details]
Patch
Comment on attachment 431609 [details]
Patch
r=me
Committed r278973 (238899@main): <https://commits.webkit.org/238899@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 431609 [details]. |