1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00:00

PM-23976 Autofilling not working in https://www.sketchup.com (#15990)

* PM-23976

* add space
This commit is contained in:
Daniel Riera
2025-08-15 12:16:52 -04:00
committed by GitHub
parent e7a55d3395
commit 59169fb0c7

View File

@@ -2459,22 +2459,23 @@ export default class AutofillService implements AutofillServiceInterface {
break;
}
const includesUsernameFieldName =
this.findMatchingFieldIndex(f, AutoFillConstants.UsernameFieldNames) > -1;
if (
!f.disabled &&
(canBeReadOnly || !f.readonly) &&
(withoutForm || f.form === passwordField.form) &&
(withoutForm || f.form === passwordField.form || includesUsernameFieldName) &&
(canBeHidden || f.viewable) &&
(f.type === "text" || f.type === "email" || f.type === "tel")
) {
usernameField = f;
if (this.findMatchingFieldIndex(f, AutoFillConstants.UsernameFieldNames) > -1) {
// We found an exact match. No need to keep looking.
// We found an exact match. No need to keep looking.
if (includesUsernameFieldName) {
break;
}
}
}
return usernameField;
}