Commit c887db8e authored by Dimi's avatar Dimi Committed by Pier Angelo Vendrame
Browse files

Bug 2054687 - Check iframe's parent matches the browsing context, a=diannaS DONTBUILD

parent 19a0309f
Loading
Loading
Loading
Loading
+4 −0
Changes for toolkit/components/formautofill/FormAutofillParent.sys.mjs: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -474,6 +474,10 @@ export class FormAutofillParent extends JSWindowActorParent {
      }

      const iframeBC = BrowsingContext.get(field.browsingContextId);
      if (!iframeBC || iframeBC.parent != browsingContext) {
        continue;
      }

      const [fields] = await this.identifyAllSubTreeFields(
        iframeBC,
        focusedBCId,