-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add userName and userDisplayName to webdriver #2148
base: main
Are you sure you want to change the base?
Conversation
This PR adds the userName and userDisplayName properties to the webdriver's credential parameters. These properties are useful to test the new signalCurrentUserDetails method, both on WPTs and for web developers. Closes w3c#2143
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Nina to fix the empty name / display name problem |
<td>|userName|</td> | ||
<td> | ||
The {{PublicKeyCredentialUserEntity|user}}'s {{PublicKeyCredentialEntity/name}} associated to the credential. | ||
If unset, the value will default to the empty string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, thinking about ways in which PublicKeyCredentialUserEntity.name
can be set, user.name
is a required value when calling .create()
, and signalCurrentUserDetails()
requires name
be set as well. It feels like a potential foot gun to allow user.name
to end up as an empty string when using the virtual authenticator API 🤔
This PR adds the userName and userDisplayName properties to the webdriver's credential parameters. These properties are useful to test the new signalCurrentUserDetails method, both on WPTs and for web developers.
Closes #2143
The following tasks have been completed:
-- This will be done as a follow-up
Implementation commitment:
Preview | Diff