1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

detect fields from label-aria

This commit is contained in:
Kyle Spearrin
2018-11-24 22:54:30 -05:00
parent c8075e7aa7
commit b72105b9e0
2 changed files with 7 additions and 0 deletions

View File

@@ -860,6 +860,9 @@ export default class AutofillService implements AutofillServiceInterface {
if (this.fieldPropertyIsMatch(field, 'label-tag', names[i])) {
return i;
}
if (this.fieldPropertyIsMatch(field, 'label-aria', names[i])) {
return i;
}
if (this.fieldPropertyIsMatch(field, 'placeholder', names[i])) {
return i;
}
@@ -919,6 +922,9 @@ export default class AutofillService implements AutofillServiceInterface {
if (this.hasValue(field['label-top']) && this.fuzzyMatch(names, field['label-top'])) {
return true;
}
if (this.hasValue(field['label-aria']) && this.fuzzyMatch(names, field['label-aria'])) {
return true;
}
return false;
}