Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 58c2111ae9464868fee99051f4aa25e58b610f5c
https://github.com/WebKit/WebKit/commit/58c2111ae9464868fee99051f4aa25e58b610f5c
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2026-08-30 (Sun, 30 Aug 2026)
Changed paths:
A Tools/TestRunnerShared/mac/SyntheticNSEvent.h
A Tools/TestRunnerShared/mac/SyntheticNSEvent.mm
M Tools/WebKitTestRunner/PlatformCocoa.cmake
M Tools/WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj
M Tools/WebKitTestRunner/mac/EventSenderProxy.mm
Log Message:
-----------
Refactor EventSenderSyntheticEvent to be shareable across TWKAPI and WKTR
https://bugs.webkit.org/show_bug.cgi?id=322925
rdar://186187575
Reviewed by Richard Robinson.
EventSenderSyntheticEvent was a privately defined NSEvent subclass used
by EventSenderProxy to synthesize pressure/magnification events. In this
patch, we move the class to TestRunnerShared as SyntheticNSEvent, which
will allow TestWebKitAPI to do the same synthesis without duplicating the
requisite support.
We also take this opportunity to add a `dispatchSyntheticEvent()` helper.
Previously, each call site repeated a sequence of hit test against
platform view -> -_setCurrentEvent: -> some form of AppKit dispatch,
which this shared helper can now manage for callers.
This refactor is in anticipation of a forthcoming change where we will
add API tests to verify WKWebView.magnification when driven with
NSResponder-based magnify events.
Canonical link: https://commits.webkit.org/320131@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications