Skip to content

Commit

Permalink
[PM-4590] Cached Page Details of Formless Input Fields Breaks Autofill (
Browse files Browse the repository at this point in the history
  • Loading branch information
cagonzalezcs authored Nov 7, 2023
1 parent 1669f35 commit 5fa630a
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -66,7 +62,7 @@ class CollectAutofillContentService implements CollectAutofillContentServiceInte
);
this.sortAutofillFieldElementsMap();

if (!Object.values(autofillFormsData).length || !autofillFieldsData.length) {
if (!autofillFieldsData.length) {
this.noFieldsFound = true;
}

Expand Down

0 comments on commit 5fa630a

Please sign in to comment.