mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
[PM-4590] Cached Page Details of Formless Input Fields Breaks Autofill (#6726)
This commit is contained in:
parent
1669f3593e
commit
5fa630aac2
@ -47,11 +47,7 @@ class CollectAutofillContentService implements CollectAutofillContentServiceInte
|
||||
return this.getFormattedPageDetails({}, []);
|
||||
}
|
||||
|
||||
if (
|
||||
!this.domRecentlyMutated &&
|
||||
this.autofillFormElements.size &&
|
||||
this.autofillFieldElements.size
|
||||
) {
|
||||
if (!this.domRecentlyMutated && this.autofillFieldElements.size) {
|
||||
return this.getFormattedPageDetails(
|
||||
this.getFormattedAutofillFormsData(),
|
||||
this.getFormattedAutofillFieldsData()
|
||||
@ -66,7 +62,7 @@ class CollectAutofillContentService implements CollectAutofillContentServiceInte
|
||||
);
|
||||
this.sortAutofillFieldElementsMap();
|
||||
|
||||
if (!Object.values(autofillFormsData).length || !autofillFieldsData.length) {
|
||||
if (!autofillFieldsData.length) {
|
||||
this.noFieldsFound = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user