Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4f1afd534daedeb4615793a827556a4b699a077b
      
https://github.com/WebKit/WebKit/commit/4f1afd534daedeb4615793a827556a4b699a077b
  Author: Richard Robinson <[email protected]>
  Date:   2026-08-19 (Wed, 19 Aug 2026)

  Changed paths:
    M Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.mm
    M Tools/TestWebKitAPI/Helpers/cocoa/JavaScriptMessages.swift
    M Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture 
Tests/BasicAppKitGesturesTests.swift

  Log Message:
  -----------
  [AppKit Gestures] Unable to position caret after <img> element
https://bugs.webkit.org/show_bug.cgi?id=322088
rdar://181260984

Reviewed by Abrar Rahman Protyasha.

When clicking over an empty area in editable content, a hit-test receives the 
focusable editable
root. Consequently, `shouldDeferGesturesForEventThatWillBeginAction` considered 
it to be non selectable
and therefore prevented the text selection manager from handling the selection.

Fix by relaxing the deferral requirement such that this case is allowed and 
selection proceeds.

Test: Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture 
Tests/BasicAppKitGesturesTests.swift

* Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.mm:
(-[WKAppKitGestureController 
deferringGestureRecognizer:shouldDeferGesturesForEventThatWillBeginAction:]):
* Tools/TestWebKitAPI/Helpers/cocoa/JavaScriptMessages.swift:
(GetSelection.expression):
* Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture 
Tests/BasicAppKitGesturesTests.swift:

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



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

Reply via email to