Skip to content

Commit

Permalink
Fix FXIOS-10234 - Only send address ping when section is valid (#22444)
Browse files Browse the repository at this point in the history
fix: only ping swift when section is valid
  • Loading branch information
issammani authored Oct 8, 2024
1 parent 8adf1ce commit 5e1c96a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ export class FormAutofillChild {
return;
}

// Since iOS doesn't support cross frame autofill,
// we should only call the autofill callback if the section is valid.
// TODO(issam): This will change when we have cross frame fill support.
if (!this.activeSection.isValidSection()) {
return;
}

const fieldNamesWithValues = this.transformToFieldNamesWithValues(
this.activeSection.fieldDetails
);
Expand Down

0 comments on commit 5e1c96a

Please sign in to comment.