Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7c90505b4e531de4fdc64f48af63cc45ca041478
      
https://github.com/WebKit/WebKit/commit/7c90505b4e531de4fdc64f48af63cc45ca041478
  Author: Sam Sneddon <[email protected]>
  Date:   2026-08-03 (Mon, 03 Aug 2026)

  Changed paths:
    M Source/WebCore/dom/PointerEventTypeNames.h
    M Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp

  Log Message:
  -----------
  Unify mouse/pen/touch code paths in 
SimulatedInputDispatcher::transitionInputSourceToState
https://bugs.webkit.org/show_bug.cgi?id=319923
rdar://182850897

Reviewed by Abrar Rahman Protyasha and BJ Burg.

Since the previous commit, the Touch case in transitionInputSourceToState
dispatches off b.mouseInteraction exactly like the Mouse/Pen case, so the
two switch cases now differ only in a few small platform-specific
details. Keeping the logic duplicated across two cases is exactly what
let the Touch case regress in the first place: a change to the shared
dispatch logic was applied to Mouse/Pen and silently forgotten in Touch.
Merge them into a single case to remove that duplication.

* Source/WebCore/dom/PointerEventTypeNames.h:
* Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:
(WebKit::pointerTypeForInputSource):
(WebKit::SimulatedInputDispatcher::transitionInputSourceToState):

Canonical link: https://commits.webkit.org/318475@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to