The new autofocus behaviour timing happens asynchronously with the page "update rendering" steps. Some tests are using it solely to focus synchronously on elements. We should just use HTMLElement.focus() there so those tests don't rely on the current synchronous timing of autofocus.
<rdar://problem/83874854>
Created attachment 440173 [details] Patch
Committed r283542 (242507@main): <https://commits.webkit.org/242507@main>