Bug 260756

Summary: AX: Implement test_driver_internal.{get_computed_role, get_computed_label}
Product: WebKit Reporter: Tyler Wilcock <tyler_w>
Component: AccessibilityAssignee: Tyler Wilcock <tyler_w>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, andresg_22, apinheiro, cfleizach, clopez, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch
none
Patch
ews-feeder: commit-queue-
Patch none

Description Tyler Wilcock 2023-08-25 19:01:27 PDT
This is necessary to run accessibility WPTs via the WebKitTestRunner.
Comment 1 Radar WebKit Bug Importer 2023-08-25 19:01:38 PDT
<rdar://problem/114480911>
Comment 2 Tyler Wilcock 2023-08-25 19:06:25 PDT
Created attachment 467448 [details]
Patch
Comment 3 Tyler Wilcock 2023-08-25 23:03:23 PDT
Created attachment 467450 [details]
Patch
Comment 4 Tyler Wilcock 2023-08-26 10:35:30 PDT
Created attachment 467451 [details]
Patch
Comment 5 Tyler Wilcock 2023-08-26 16:17:48 PDT
Created attachment 467453 [details]
Patch
Comment 6 chris fleizach 2023-08-27 23:16:20 PDT
Comment on attachment 467453 [details]
Patch

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

> Source/WebCore/testing/Internals.cpp:7161
> +AccessibilityObject* Internals::axObjectFor(Element& element) const

is this style of naming used in WebKit? I would have expected the name to be axObjectForElement

> Source/WebCore/testing/Internals.cpp:7198
> +    return element.renderer() || !element.rendererIsNeeded(*computedStyle);

we've already checked element.renderer() above. do we need to check it here too?
Comment 7 Tyler Wilcock 2023-08-28 10:10:14 PDT
Created attachment 467459 [details]
Patch
Comment 8 Tyler Wilcock 2023-08-28 10:27:54 PDT
Created attachment 467460 [details]
Patch
Comment 9 EWS 2023-08-28 14:49:21 PDT
Committed 267364@main (33b030f32890): <https://commits.webkit.org/267364@main>

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