WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
307303
AX: Deadlock involving s_storeLock when ENABLE_ACCESSIBILITY_LOCAL_FRAME is enabled
https://bugs.webkit.org/show_bug.cgi?id=307303
Summary
AX: Deadlock involving s_storeLock when ENABLE_ACCESSIBILITY_LOCAL_FRAME is e...
Dominic Mazzoni
Reported
2026-02-08 17:50:13 PST
WebProcess::accessibilityFocusedUIElement iterates over isolated trees to see which one is focused, and it uses findAXTree, which acquires s_storeLock. When ENABLE_ACCESSIBILITY_LOCAL_FRAME is enabled, it also calls typedTree->focusedNode() on each tree because it needs to check whether that frame is the specific frame within a page that's focused - the flags like ActivityState::IsFocused only tell us about the page, not the frame. This results in a call to AXIsolatedTree::focusedNodeID(), which calls AXIsolatedTree::applyPendingChanges. This is call fine so far, but if the tree happens to be queued for destruction, then it calls AXTreeStore::remove(), which also needs s_storeLock, leading to deadlock. This manifests when running accessibility layout tests in parallel with ENABLE_ACCESSIBILITY_LOCAL_FRAME enabled - even if the tests don't involve iframes, sooner or later the deadlock occurs and causes tests to timeout. The simplest fix is to just call the existing applyPendingChangesUnlessQueuedForDestruction method. We should also consider if there's a safer time to trigger AXTreeStore::remove().
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-02-08 17:50:19 PST
<
rdar://problem/169934927
>
Dominic Mazzoni
Comment 2
2026-02-08 18:17:42 PST
Pull request:
https://github.com/WebKit/WebKit/pull/58168
EWS
Comment 3
2026-02-08 19:43:36 PST
Committed
307050@main
(653381a67bbf): <
https://commits.webkit.org/307050@main
> Reviewed commits have been landed. Closing PR #58168 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug