Bug 246905

Summary: AX: AccessibilityNodeObject::ariaLabeledByText appends to a Vector that it never uses
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 2022-10-22 12:19:56 PDT
In this commit:

https://github.com/WebKit/WebKit/commit/f8283a7eece23958929380c652cebb7e7d302244 (Removed unused textElements member from AccessibilityText structure)

We stopped using the local `axElements` Vector in AccessibilityNodeObject::ariaLabeledByText, but still build it for no reason.
Comment 1 Radar WebKit Bug Importer 2022-10-22 12:20:08 PDT
<rdar://problem/101462816>
Comment 2 Tyler Wilcock 2022-10-22 12:21:38 PDT
Created attachment 463169 [details]
Patch
Comment 3 EWS 2022-10-22 20:47:56 PDT
Committed 255890@main (e081fcf0fbd4): <https://commits.webkit.org/255890@main>

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