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({}, []);
|
return this.getFormattedPageDetails({}, []);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (!this.domRecentlyMutated && this.autofillFieldElements.size) {
|
||||||
!this.domRecentlyMutated &&
|
|
||||||
this.autofillFormElements.size &&
|
|
||||||
this.autofillFieldElements.size
|
|
||||||
) {
|
|
||||||
return this.getFormattedPageDetails(
|
return this.getFormattedPageDetails(
|
||||||
this.getFormattedAutofillFormsData(),
|
this.getFormattedAutofillFormsData(),
|
||||||
this.getFormattedAutofillFieldsData()
|
this.getFormattedAutofillFieldsData()
|
||||||
@ -66,7 +62,7 @@ class CollectAutofillContentService implements CollectAutofillContentServiceInte
|
|||||||
);
|
);
|
||||||
this.sortAutofillFieldElementsMap();
|
this.sortAutofillFieldElementsMap();
|
||||||
|
|
||||||
if (!Object.values(autofillFormsData).length || !autofillFieldsData.length) {
|
if (!autofillFieldsData.length) {
|
||||||
this.noFieldsFound = true;
|
this.noFieldsFound = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user