mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
[PM-11386] Limit presentation of inline menu for identities strictly to fields that contain valid autocomplete attribute (#10865)
* [PM-11386] Limit presentation of inline menu for identities strictly to fields that contain valid autocomplete attribute * [PM-11386] Limit presentation of inline menu for identities strictly to fields that contain valid autocomplete attribute
This commit is contained in:
parent
e594059865
commit
1a1d9e2d76
@ -122,29 +122,9 @@ export class InlineMenuFieldQualificationService
|
||||
...this.identityAddressAutoCompleteValues,
|
||||
...this.identityCountryAutocompleteValues,
|
||||
...this.identityPhoneNumberAutocompleteValues,
|
||||
this.identityCompanyAutocompleteValue,
|
||||
this.identityPostalCodeAutocompleteValue,
|
||||
]);
|
||||
private identityFieldKeywords = [
|
||||
...new Set([
|
||||
...IdentityAutoFillConstants.TitleFieldNames,
|
||||
...IdentityAutoFillConstants.FullNameFieldNames,
|
||||
...IdentityAutoFillConstants.FirstnameFieldNames,
|
||||
...IdentityAutoFillConstants.MiddlenameFieldNames,
|
||||
...IdentityAutoFillConstants.LastnameFieldNames,
|
||||
...IdentityAutoFillConstants.AddressFieldNames,
|
||||
...IdentityAutoFillConstants.Address1FieldNames,
|
||||
...IdentityAutoFillConstants.Address2FieldNames,
|
||||
...IdentityAutoFillConstants.Address3FieldNames,
|
||||
...IdentityAutoFillConstants.PostalCodeFieldNames,
|
||||
...IdentityAutoFillConstants.CityFieldNames,
|
||||
...IdentityAutoFillConstants.StateFieldNames,
|
||||
...IdentityAutoFillConstants.CountryFieldNames,
|
||||
...IdentityAutoFillConstants.CompanyFieldNames,
|
||||
...IdentityAutoFillConstants.PhoneFieldNames,
|
||||
...IdentityAutoFillConstants.EmailFieldNames,
|
||||
...IdentityAutoFillConstants.UserNameFieldNames,
|
||||
]),
|
||||
];
|
||||
private inlineMenuFieldQualificationFlagSet = false;
|
||||
|
||||
constructor() {
|
||||
@ -288,14 +268,7 @@ export class InlineMenuFieldQualificationService
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.fieldContainsAutocompleteValues(field, this.identityAutocompleteValues)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return (
|
||||
!this.fieldContainsAutocompleteValues(field, this.autocompleteDisabledValues) &&
|
||||
this.keywordsFoundInFieldData(field, this.identityFieldKeywords, false)
|
||||
);
|
||||
return this.fieldContainsAutocompleteValues(field, this.identityAutocompleteValues);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user