Bug 231219 - Remove unnecessary autofocus attribute dependencies in tests
Summary: Remove unnecessary autofocus attribute dependencies in tests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Nguyen (:ntim)
URL:
Keywords: InRadar
Depends on:
Blocks: 203139
  Show dependency treegraph
 
Reported: 2021-10-05 00:18 PDT by Tim Nguyen (:ntim)
Modified: 2021-10-05 01:36 PDT (History)
2 users (show)

See Also:


Attachments
Patch (3.24 KB, patch)
2021-10-05 00:29 PDT, Tim Nguyen (:ntim)
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>