Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 48f6c283035d211286fa0ce6c2d2cf14e7f97d3b
https://github.com/WebKit/WebKit/commit/48f6c283035d211286fa0ce6c2d2cf14e7f97d3b
Author: Przemyslaw Gorszkowski <[email protected]>
Date: 2026-07-18 (Sat, 18 Jul 2026)
Changed paths:
A
LayoutTests/accessibility/focus-notification-without-prior-tree-access-expected.txt
A
LayoutTests/accessibility/focus-notification-without-prior-tree-access.html
M Source/WebCore/dom/Document.cpp
Log Message:
-----------
[WPE][Accessibility] focus change accessibility event is not exposed
https://bugs.webkit.org/show_bug.cgi?id=319475
Reviewed by Tyler Wilcock.
On WPE, if nothing else has queried the accessibility tree yet (e.g. a fresh
AT-SPI client that goes straight to listening for focus events), the very first
focus change finds no AXObjectCache and is silently dropped: onFocusChange() is
never called, and no "focused" state-changed notification is ever sent.
Add WPE alongside GTK to the platforms that lazily create the AXObjectCache on
the first focus change, matching how GTK already behaves.
Test: accessibility/focus-notification-without-prior-tree-access.html
*
LayoutTests/accessibility/focus-notification-without-prior-tree-access-expected.txt:
Added.
* LayoutTests/accessibility/focus-notification-without-prior-tree-access.html:
Added.
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::setFocusedElement):
Canonical link: https://commits.webkit.org/317504@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications