Bug 231219

Summary: Remove unnecessary autofocus attribute dependencies in tests
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: DOMAssignee: Tim Nguyen (:ntim) <ntim>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 203139    
Attachments:
Description Flags
Patch koivisto: review+

Description Tim Nguyen (:ntim) 2021-10-05 00:18:36 PDT
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.
Comment 1 Radar WebKit Bug Importer 2021-10-05 00:18:59 PDT
<rdar://problem/83874854>
Comment 2 Tim Nguyen (:ntim) 2021-10-05 00:29:01 PDT
Created attachment 440173 [details]
Patch
Comment 3 Tim Nguyen (:ntim) 2021-10-05 01:36:55 PDT
Committed r283542 (242507@main): <https://commits.webkit.org/242507@main>