See FIXME in: Document::flushAutofocusCandidates() From the spec (https://html.spec.whatwg.org/multipage/interaction.html#flush-autofocus-candidates): > Let inclusiveAncestorDocuments be a list consisting of doc, plus the active documents of each of doc's browsing context's ancestor browsing contexts. > If any Document in inclusiveAncestorDocuments has non-null target element, then continue.
<rdar://problem/84386215>