[webkit-changes] [WebKit/WebKit] 114392: AX: Incomplete object information with focus event...

Przemyslaw Gorszkowski noreply at github.com
Tue Mar 12 09:21:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 114392b51f9c322d303c0e44142d53d89276f66b
      https://github.com/WebKit/WebKit/commit/114392b51f9c322d303c0e44142d53d89276f66b
  Author: Przemyslaw Gorszkowski <pgorszkowski at igalia.com>
  Date:   2024-03-12 (Tue, 12 Mar 2024)

  Changed paths:
    A LayoutTests/accessibility/focus-new-element.html
    A LayoutTests/platform/glib/accessibility/focus-new-element-expected.txt
    A LayoutTests/platform/ios-simulator-wk2/accessibility/focus-new-element-expected.txt
    A LayoutTests/platform/mac/accessibility/focus-new-element-expected.txt
    M Source/WebCore/accessibility/AXObjectCache.cpp
    M Source/WebCore/accessibility/AXObjectCache.h
    M Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp

  Log Message:
  -----------
  AX: Incomplete object information with focus event on dynamic created div
https://bugs.webkit.org/show_bug.cgi?id=270433

Reviewed by Tyler Wilcock.

When the element is dynamically created and focused, the focus change event should be
deferred in case renderer is not available yet but document needs style recalculation.

* Source/WebCore/accessibility/AXObjectCache.cpp:
(WebCore::shouldDeferFocusChange):
(WebCore::AXObjectCache::onFocusChange):
* Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp:
(testAccessibleStateChangedFocus):
(beforeAll):
* LayoutTests/accessibility/focus-new-element.html: Added.
* LayoutTests/platform/glib/accessibility/focus-new-element-expected.txt: Added.
* LayoutTests/platform/ios-simulator-wk2/accessibility/focus-new-element-expected.txt: Added.
* LayoutTests/platform/mac/accessibility/focus-new-element-expected.txt: Added.

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



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


More information about the webkit-changes mailing list