Bug 312809

Summary: [Swift Testing] Add Swift mouse-event helpers for TestWKWebView
Product: WebKit Reporter: zak ridouh <zakr>
Component: Tools / TestsAssignee: zak ridouh <zakr>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

zak ridouh
Reported 2026-04-20 13:39:13 PDT
Add a @MainActor extension on TestWKWebView exposing simulate* mouse helpers (mouseDown, mouseUp, mouseMove, mouseDrag, click, clicks, rightClick) plus an async waitForPendingMouseEvents() that wraps _doAfterProcessingAllPendingMouseEvents: with withCheckedContinuation. Unblocks porting AppKit-heavy SiteIsolation tests to Swift Testing without blocking the main thread on Util::run.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-04-20 13:39:20 PDT
zak ridouh
Comment 2 2026-04-20 13:48:30 PDT
EWS
Comment 3 2026-05-09 18:04:25 PDT
Committed 312960@main (695318725b7d): <https://commits.webkit.org/312960@main> Reviewed commits have been landed. Closing PR #63151 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.