Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a97e585b24d63e43a2a44f438ca05a0c7d72ae73
      
https://github.com/WebKit/WebKit/commit/a97e585b24d63e43a2a44f438ca05a0c7d72ae73
  Author: Tyler Wilcock <[email protected]>
  Date:   2025-06-05 (Thu, 05 Jun 2025)

  Changed paths:
    M Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm

  Log Message:
  -----------
  AX: Avoid unnecessary main-thread hits when webpage is visible and active but 
hasn't yet been focused into
https://bugs.webkit.org/show_bug.cgi?id=294056
rdar://152617235

Reviewed by Joshua Hoffman.

When initially loading a page, or when VoiceOver switches from another app back 
to web, content, it's possible for the
ActivityStaate::IsFocused to not be synced to the accessibility thread in time 
for the first accessibilityFocusedUIElement
request. We should be more lenient in this case, and still use a tree to 
retrieve focus if it's both visible and in the
active window under the assumption that it will soon be considered focused 
(i.e. because the AT actually puts focus
inside the page, which may not have happened yet).

* Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::accessibilityFocusedUIElement):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to