https://webkit-search.igalia.com/webkit/source/Source/WebCore/html/HTMLDialogElement.cpp#98 There is already an early return in Element::focus when the element is not connected, so this check is redundant. See comment 25 in bug 227537.
Created attachment 441185 [details] Patch
Committed r284149 (242969@main): <https://commits.webkit.org/242969@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 441185 [details].
<rdar://problem/84236051>