diff --git a/src/models/autofillField.ts b/src/models/autofillField.ts index dfa6cdc770..6cfe2de89e 100644 --- a/src/models/autofillField.ts +++ b/src/models/autofillField.ts @@ -10,6 +10,7 @@ export default class AutofillField { 'label-right': string; 'label-top': string; 'label-tag': string; + 'label-aria': string; placeholder: string; type: string; value: string; diff --git a/src/services/autofill.service.ts b/src/services/autofill.service.ts index 44709d2f4f..20c55190db 100644 --- a/src/services/autofill.service.ts +++ b/src/services/autofill.service.ts @@ -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; }