Skip to content
Permalink
Browse files
AX ITM: Fix for accessibility/language-attribute-change.html in isola…
…ted tree mode. web content

https://bugs.webkit.org/show_bug.cgi?id=241794

Reviewed by Chris Fleizach.

* Source/WebCore/accessibility/AXObjectCache.cpp:
When the lang attribute changes, we need to update the object for which the attribute changed in addition to updating its children.
(WebCore::AXObjectCache::updateIsolatedTree):
* Tools/WebKitTestRunner/InjectedBundle/AccessibilityController.cpp:
(WTR::AccessibilityController::executeOnAXThreadAndWait):
Made the complete local variable std::atomic since it is accessed on and off the main thread.

Canonical link: https://commits.webkit.org/251690@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295685 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
AndresGonzalezApple committed Jun 21, 2022
1 parent 11f2fe2 commit 5ba989b976ddfa668abe89a55721329e9606fc43
Showing 2 changed files with 2 additions and 2 deletions.
@@ -3588,11 +3588,11 @@ void AXObjectCache::updateIsolatedTree(const Vector<std::pair<RefPtr<AXCoreObjec
case AXValueChanged:
updateNode(notification.first);
break;
case AXLanguageChanged:
case AXRowCountChanged:
updateNode(notification.first);
FALLTHROUGH;
case AXChildrenChanged:
case AXLanguageChanged:
case AXRowCollapsed:
case AXRowExpanded: {
auto updatedFields = updatedObjects.get(notification.first->objectID());
@@ -106,7 +106,7 @@ void AccessibilityController::executeOnAXThreadAndWait(Function<void()>&& functi
{
#if ENABLE(ACCESSIBILITY_ISOLATED_TREE)
if (m_useMockAXThread) {
bool complete = false;
std::atomic<bool> complete = false;
AXThread::dispatch([&function, &complete] {
function();
complete = true;

0 comments on commit 5ba989b

Please sign in to comment.