1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-27 04:03:00 +02:00

[PM-4590] Cached Page Details of Formless Input Fields Breaks Autofill (#6726)

This commit is contained in:
Cesar Gonzalez 2023-11-07 07:37:30 -06:00 committed by GitHub
parent 1669f3593e
commit 5fa630aac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}