mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
[PM-4590] Cached Page Details of Formless Input Fields Breaks Autofill (#6726)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user