WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
224639
Allow using the platform authenticator on non-Touch ID Macs according to Internal requirements
https://bugs.webkit.org/show_bug.cgi?id=224639
Summary
Allow using the platform authenticator on non-Touch ID Macs according to Inte...
Jiewen Tan
Reported
2021-04-15 18:54:25 PDT
Allow using the platform authenticator on non-Touch ID Macs according to Internal requirements.
Attachments
Patch
(29.26 KB, patch)
2021-04-15 19:52 PDT
,
Jiewen Tan
dbates
: review+
Details
Formatted Diff
Diff
Patch for landing
(29.25 KB, patch)
2021-04-16 15:52 PDT
,
Jiewen Tan
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jiewen Tan
Comment 1
2021-04-15 19:09:50 PDT
rdar://74698346
Jiewen Tan
Comment 2
2021-04-15 19:52:43 PDT
Created
attachment 426174
[details]
Patch
Daniel Bates
Comment 3
2021-04-15 23:20:48 PDT
Comment on
attachment 426174
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=426174&action=review
Patch looks good.
> Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm:67 > +const uint8_t otherMakeCredentialFlags = 0b01000001; // UP and AT are set.
Ok as-is. Consider using constexpr as it has guaranteed compile time semantics. Also mostly aesthetics, consider using uniform initializer syntax. Both of these suggestions are optional.
> Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm:430 > + auto flags = makeCredentialFlags;
Ok as-is. Consider writing using ternary operator to make this a tiny bit more efficient. This suggestion is optional.
> Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalConnection.mm:64 > +void LocalConnection::verifyUser(const String& rpId, ClientDataType type, SecAccessControlRef accessControl, UserVerificationRequirement uv, UserVerificationCallback&& completionHandler)
Ok as is. Consider a more descriptive name than "uv". This suggestion is optional.
> Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalConnection.mm:96 > + if (information && information[@"UserPresence"])
Ok as-is. Consider removing first conjunct as it's ok to send a message to nil.
> Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalConnection.mm:109 > + if (uv == UserVerificationRequirement::Required || [m_context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:nullptr]) {
Ok as is. Consider passing nil instead of nullptr.
> Source/WebKit/UIProcess/WebAuthentication/Mock/MockLocalConnection.mm:66 > + userVerification = UserVerification::Presence;
Ok as is. Consider adding a break statement.
> Source/WebKit/UIProcess/WebAuthentication/Mock/MockLocalConnection.mm:90 > + userVerification = UserVerification::Presence;
Ditto
Jiewen Tan
Comment 4
2021-04-16 15:33:17 PDT
Comment on
attachment 426174
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=426174&action=review
Thanks Dan for r+ this patch.
>> Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm:430 >> + auto flags = makeCredentialFlags; > > Ok as-is. Consider writing using ternary operator to make this a tiny bit more efficient. This suggestion is optional.
Fixed.
>> Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalConnection.mm:96 >> + if (information && information[@"UserPresence"]) > > Ok as-is. Consider removing first conjunct as it's ok to send a message to nil.
Fixed.
>> Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalConnection.mm:109 >> + if (uv == UserVerificationRequirement::Required || [m_context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:nullptr]) { > > Ok as is. Consider passing nil instead of nullptr.
Fixed.
>> Source/WebKit/UIProcess/WebAuthentication/Mock/MockLocalConnection.mm:66 >> + userVerification = UserVerification::Presence; > > Ok as is. Consider adding a break statement.
Fixed.
>> Source/WebKit/UIProcess/WebAuthentication/Mock/MockLocalConnection.mm:90 >> + userVerification = UserVerification::Presence; > > Ditto
Fixed.
Jiewen Tan
Comment 5
2021-04-16 15:52:11 PDT
Created
attachment 426286
[details]
Patch for landing
EWS
Comment 6
2021-04-16 16:52:38 PDT
Committed
r276180
(
236663@main
): <
https://commits.webkit.org/236663@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 426286
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug