Bug 234085

Summary: AX: Improve ASSERT while processing tree appends in AXIsolatedTree::applyPendingChanges
Product: WebKit Reporter: Tyler Wilcock <tyler_w>
Component: AccessibilityAssignee: Tyler Wilcock <tyler_w>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, andresg_22, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Tyler Wilcock 2021-12-09 08:30:43 PST
The current assert:

ASSERT_UNUSED(addResult, addResult.iterator->value->refCount() == 2
            || (addResult.iterator->value.ptr() == m_rootNode.get() && m_rootNode->refCount() == 3));

Doesn't say what the refcount actually is, making it harder to debug. This was a problem for me when working on a previous patch.
Comment 1 Tyler Wilcock 2021-12-09 08:34:10 PST
Created attachment 446552 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2021-12-09 13:12:43 PST
<rdar://problem/86287382>
Comment 3 EWS 2021-12-09 15:21:54 PST
Committed r286811 (245047@main): <https://commits.webkit.org/245047@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 446552 [details].