Bug 255845 - AX: display:contents elements never return any selected AX children despite having them
Summary: AX: display:contents elements never return any selected AX children despite h...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tyler Wilcock
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-23 12:27 PDT by Tyler Wilcock
Modified: 2023-04-24 14:55 PDT (History)
12 users (show)

See Also:


Attachments
Patch (26.29 KB, patch)
2023-04-23 12:32 PDT, Tyler Wilcock
no flags Details | Formatted Diff | Diff
Patch (29.10 KB, patch)
2023-04-23 13:03 PDT, Tyler Wilcock
no flags Details | Formatted Diff | Diff
Patch (29.19 KB, patch)
2023-04-24 10:49 PDT, Tyler Wilcock
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tyler Wilcock 2023-04-23 12:27:19 PDT
...
Comment 1 Radar WebKit Bug Importer 2023-04-23 12:27:34 PDT
<rdar://problem/108428630>
Comment 2 Tyler Wilcock 2023-04-23 12:32:25 PDT
Created attachment 466052 [details]
Patch
Comment 3 Tyler Wilcock 2023-04-23 13:03:57 PDT
Created attachment 466053 [details]
Patch
Comment 4 chris fleizach 2023-04-23 22:52:05 PDT
Comment on attachment 466053 [details]
Patch

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

> Source/WebCore/accessibility/AccessibilityObject.cpp:4107
> +        return { };

wonder if we can put break; in all these places instead of early returns

then we can have just one final return { };

don't know if that's preferred in WebKit. generally early returns make me nervous in case there's more cleanup that's supposed to happen at the end of a method
Comment 5 Tyler Wilcock 2023-04-24 10:49:48 PDT
Created attachment 466065 [details]
Patch
Comment 6 Tyler Wilcock 2023-04-24 10:50:16 PDT
(In reply to chris fleizach from comment #4)
> Comment on attachment 466053 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=466053&action=review
> 
> > Source/WebCore/accessibility/AccessibilityObject.cpp:4107
> > +        return { };
> 
> wonder if we can put break; in all these places instead of early returns
> 
> then we can have just one final return { };
> 
> don't know if that's preferred in WebKit. generally early returns make me
> nervous in case there's more cleanup that's supposed to happen at the end of
> a method
Fixed this.
Comment 7 EWS 2023-04-24 14:55:46 PDT
Committed 263339@main (71c4047bb9e2): <https://commits.webkit.org/263339@main>

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