1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +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; break;
} }
const includesUsernameFieldName =
this.findMatchingFieldIndex(f, AutoFillConstants.UsernameFieldNames) > -1;
if ( if (
!f.disabled && !f.disabled &&
(canBeReadOnly || !f.readonly) && (canBeReadOnly || !f.readonly) &&
(withoutForm || f.form === passwordField.form) && (withoutForm || f.form === passwordField.form || includesUsernameFieldName) &&
(canBeHidden || f.viewable) && (canBeHidden || f.viewable) &&
(f.type === "text" || f.type === "email" || f.type === "tel") (f.type === "text" || f.type === "email" || f.type === "tel")
) { ) {
usernameField = f; 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; break;
} }
} }
} }
return usernameField; return usernameField;
} }