bitwarden / clients

Bitwarden client apps (web, browser extension, desktop, and cli).
https://bitwarden.com
Other
9.3k stars 1.25k forks source link

Username autofill does not work where input type attribute is specified #11933

Closed huzhasan closed 2 days ago

huzhasan commented 3 days ago

Steps To Reproduce

  1. Go to www.its52.com
  2. Try to autofill stored credentials

Expected Result

Both the username and password should get filled up

Actual Result

Only the password gets autofilled, since the username field input has the type=number attribute, autofill does not work (for this websites, all usernames are numeric). Using Dev Tools, if those attributes are removed, autofill works perfectly. Currently I use Greasemonkey to achieve the same result.

Screenshots or Videos

No response

Additional Context

No response

Operating System

Windows

Operating System Version

Windows 11

Web Browser

Firefox

Browser Version

131

Build Version

2024.10.1

Issue Tracking Info

bitwarden-bot commented 3 days ago

Thank you for reporting this issue! We've added this to our internal tracking system. ID: PM-14674

bwbug commented 2 days ago

This is probably an issue that should be reported using the standard Autofill Failure Report Form.

If you would like a partial work-around, store this item as a Card item instead of as a Login item. Put the username (ITS ID) in the Number field, then create two custom fields:

  1. Type: Linked; Name: txtUserName; Value: Linked to Number.
  2. Type: Hidden; Name: txtPassword; Value: Your password.

With the above approach, you will be able to autofill the login form, but you will lose URI matching functionality.

I would say that a possible feature request that could solve your problem would be to implement a "Numeric" type for use-defined custom fields (this would allow you to take an approach similar to what I have described above, but do it while using a Login item — so that you still get UIR matching functionality).

sammbw commented 2 days ago

Hi there!

We appreciate you letting us know of this issue. Due to the nature of autofill issues, we track them internally using different Forms depending on the platform:

mobile: https://docs.google.com/forms/d/e/1FAIpQLScMopHyN7KGJs8hW562VTzbIGL4KcFnx0wJcsW0GYE1BnPiGA/viewform

browser extension: https://docs.google.com/forms/d/e/1FAIpQLSfkxh1w6vK8fLYwAbAAEVhvhMAJwfFNDtYtPUVk1y5WTHvJmQ/viewform

In this case, we will go ahead and file an autofill report for you with the information you added here.

In the future, if you encounter any other page or app that doesn't autofill as expected, please avoid opening a new GitHub issue and go directly to the corresponding form.

This issue will now be closed.

Thanks!