Bug 261646

Summary: AX: Computed role of role="form" and role="region" elements does not dynamically update when label changes
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: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Tyler Wilcock 2023-09-16 19:01:12 PDT
...
Comment 1 Radar WebKit Bug Importer 2023-09-16 19:01:26 PDT
<rdar://problem/115608740>
Comment 2 Tyler Wilcock 2023-09-16 19:06:06 PDT
Created attachment 467709 [details]
Patch
Comment 3 Tyler Wilcock 2023-09-17 10:53:54 PDT
Created attachment 467722 [details]
Patch
Comment 4 chris fleizach 2023-09-17 22:32:14 PDT
Comment on attachment 467722 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=467722&action=review

> Source/WebCore/accessibility/AXObjectCache.cpp:2459
> +        RefPtr axObject = getOrCreate(element);

do we need to create an object here, or is just getting an existing one sufficient, since other creation methods will get the right value?
Comment 5 Tyler Wilcock 2023-09-18 00:18:41 PDT
Created attachment 467736 [details]
Patch
Comment 6 Tyler Wilcock 2023-09-18 00:18:56 PDT
(In reply to chris fleizach from comment #4)
> Comment on attachment 467722 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=467722&action=review
> 
> > Source/WebCore/accessibility/AXObjectCache.cpp:2459
> > +        RefPtr axObject = getOrCreate(element);
> 
> do we need to create an object here, or is just getting an existing one
> sufficient, since other creation methods will get the right value?
Good catch!
Comment 7 EWS 2023-09-18 11:00:10 PDT
Committed 268087@main (bc6b70cc4367): <https://commits.webkit.org/268087@main>

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