Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nsatragno
Copy link
Member

@nsatragno nsatragno commented Sep 18, 2024

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:

  • Modified Web platform tests (link)
    -- This will be done as a follow-up

Implementation commitment:


Preview | Diff

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
@nsatragno nsatragno self-assigned this Sep 18, 2024
@nicksteele nicksteele self-requested a review September 18, 2024 19:35
@nadalin nadalin added this to the L3-WD-02 milestone Sep 18, 2024
@nadalin nadalin added the @Risk Items that are at risk for L3 label Sep 18, 2024
Copy link
Member

@timcappalli timcappalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nsatragno
Copy link
Member Author

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.
Copy link
Contributor

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 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@Risk Items that are at risk for L3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add userName and userDisplayName to WebDriver's Credential Parameters JSON object
6 participants