Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a7ce61829fa2dce0a61a117991be95361d1638d4
      
https://github.com/WebKit/WebKit/commit/a7ce61829fa2dce0a61a117991be95361d1638d4
  Author: Richard Robinson <[email protected]>
  Date:   2026-04-20 (Mon, 20 Apr 2026)

  Changed paths:
    M Tools/TestWebKitAPI/Helpers/cocoa/Foundation+Extras.swift
    M Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKitGesturesTests.swift

  Log Message:
  -----------
  `AppKitGesturesTests.clickingChangesSelection` API test can sometimes fail
https://bugs.webkit.org/show_bug.cgi?id=312666
rdar://175064939

Reviewed by Aditya Keerthi.

The JS `getBoundingClientRect` function can return non-integer values, so fix 
the cast to use `Double` instead of `Int`.

Drive-by fix: Use a JS event listener instead of a polling function to listen 
to selection change.

* Tools/TestWebKitAPI/Helpers/cocoa/Foundation+Extras.swift:
* Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKitGesturesTests.swift:
(AppKitGesturesTests.clickingChangesSelection):

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



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

Reply via email to