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:
@@ -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;
|
||||||
|
// We found an exact match. No need to keep looking.
|
||||||
if (this.findMatchingFieldIndex(f, AutoFillConstants.UsernameFieldNames) > -1) {
|
if (includesUsernameFieldName) {
|
||||||
// We found an exact match. No need to keep looking.
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return usernameField;
|
return usernameField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user