diff --git a/firefox-ios/Client/Assets/CC_Script/FormAutofillChild.ios.sys.mjs b/firefox-ios/Client/Assets/CC_Script/FormAutofillChild.ios.sys.mjs index 053c65ffe1be..e5844375a999 100644 --- a/firefox-ios/Client/Assets/CC_Script/FormAutofillChild.ios.sys.mjs +++ b/firefox-ios/Client/Assets/CC_Script/FormAutofillChild.ios.sys.mjs @@ -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 );