mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
detect fields from label-aria
This commit is contained in:
@@ -10,6 +10,7 @@ export default class AutofillField {
|
|||||||
'label-right': string;
|
'label-right': string;
|
||||||
'label-top': string;
|
'label-top': string;
|
||||||
'label-tag': string;
|
'label-tag': string;
|
||||||
|
'label-aria': string;
|
||||||
placeholder: string;
|
placeholder: string;
|
||||||
type: string;
|
type: string;
|
||||||
value: string;
|
value: string;
|
||||||
|
|||||||
@@ -860,6 +860,9 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
if (this.fieldPropertyIsMatch(field, 'label-tag', names[i])) {
|
if (this.fieldPropertyIsMatch(field, 'label-tag', names[i])) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
if (this.fieldPropertyIsMatch(field, 'label-aria', names[i])) {
|
||||||
|
return i;
|
||||||
|
}
|
||||||
if (this.fieldPropertyIsMatch(field, 'placeholder', names[i])) {
|
if (this.fieldPropertyIsMatch(field, 'placeholder', names[i])) {
|
||||||
return 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'])) {
|
if (this.hasValue(field['label-top']) && this.fuzzyMatch(names, field['label-top'])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (this.hasValue(field['label-aria']) && this.fuzzyMatch(names, field['label-aria'])) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user