Bug 196998 - AX: HTML datalist accessibility is not exposed by WebKit
Summary: AX: HTML datalist accessibility is not exposed by WebKit
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-04-16 18:30 PDT by James Craig
Modified: 2019-07-09 23:34 PDT (History)
11 users (show)

See Also:


Attachments
Patch (6.33 KB, patch)
2019-07-09 12:35 PDT, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews100 for mac-highsierra (3.31 MB, application/zip)
2019-07-09 13:24 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews116 for mac-highsierra (3.09 MB, application/zip)
2019-07-09 14:26 PDT, EWS Watchlist
no flags Details
Patch (6.29 KB, patch)
2019-07-09 14:29 PDT, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Patch (6.36 KB, patch)
2019-07-09 16:47 PDT, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-highsierra (3.31 MB, application/zip)
2019-07-09 17:51 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews112 for mac-highsierra (3.32 MB, application/zip)
2019-07-09 18:58 PDT, EWS Watchlist
no flags Details
Patch (8.10 KB, patch)
2019-07-09 19:26 PDT, Andres Gonzalez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Radar WebKit Bug Importer 2019-04-16 18:31:16 PDT
<rdar://problem/49962521>
Comment 2 Andres Gonzalez 2019-07-09 12:35:57 PDT
Created attachment 373744 [details]
Patch
Comment 3 chris fleizach 2019-07-09 12:53:46 PDT
Comment on attachment 373744 [details]
Patch

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

> Source/WebCore/accessibility/AccessibilityObject.cpp:2795
> +    RefPtr<Element> element = this->element();

auto

> Source/WebCore/accessibility/AccessibilityObject.cpp:2799
> +    RefPtr<Element> datalist = element->treeScope().getElementById(datalistId);

auto

> Source/WebCore/accessibility/AccessibilityObject.cpp:2800
> +    return (datalist && is<HTMLDataListElement>(datalist));

the datalist pointer check seems like it might not necessary since is<HTMLDataListElement> should handle the null
Comment 4 EWS Watchlist 2019-07-09 13:24:19 PDT
Comment on attachment 373744 [details]
Patch

Attachment 373744 [details] did not pass mac-ews (mac):
Output: https://webkit-queues.webkit.org/results/12700457

New failing tests:
accessibility/datalist.html
Comment 5 EWS Watchlist 2019-07-09 13:24:21 PDT
Created attachment 373750 [details]
Archive of layout-test-results from ews100 for mac-highsierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-highsierra  Platform: Mac OS X 10.13.6
Comment 6 EWS Watchlist 2019-07-09 14:26:27 PDT
Comment on attachment 373744 [details]
Patch

Attachment 373744 [details] did not pass mac-debug-ews (mac):
Output: https://webkit-queues.webkit.org/results/12700741

New failing tests:
accessibility/datalist.html
Comment 7 EWS Watchlist 2019-07-09 14:26:29 PDT
Created attachment 373766 [details]
Archive of layout-test-results from ews116 for mac-highsierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116  Port: mac-highsierra  Platform: Mac OS X 10.13.6
Comment 8 Andres Gonzalez 2019-07-09 14:29:43 PDT
Created attachment 373767 [details]
Patch
Comment 9 Andres Gonzalez 2019-07-09 14:37:27 PDT
(In reply to chris fleizach from comment #3)
> Comment on attachment 373744 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=373744&action=review
> 
> > Source/WebCore/accessibility/AccessibilityObject.cpp:2795
> > +    RefPtr<Element> element = this->element();
> 
> auto
>
Thought that RefPtr does some referencing counting on the pointer it holds and thus it would be better to type it explicitly. Never know what these functions that return a naked pointer are doing behind the scene.

> > Source/WebCore/accessibility/AccessibilityObject.cpp:2799
> > +    RefPtr<Element> datalist = element->treeScope().getElementById(datalistId);
> 
> auto
> 
Changed this one to auto but feel that is an example of auto abuse since it is harder to figure out the type of datalist from the initialization on the right hand side than actually typing the variable explicitly.

> > Source/WebCore/accessibility/AccessibilityObject.cpp:2800
> > +    return (datalist && is<HTMLDataListElement>(datalist));
> 
> the datalist pointer check seems like it might not necessary since
> is<HTMLDataListElement> should handle the null

Done.
Comment 10 Andres Gonzalez 2019-07-09 16:47:31 PDT
Created attachment 373793 [details]
Patch
Comment 11 Andres Gonzalez 2019-07-09 16:49:43 PDT
#if for datalist feature availability.
Comment 12 chris fleizach 2019-07-09 17:26:59 PDT
Comment on attachment 373793 [details]
Patch

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

> LayoutTests/ChangeLog:9
> +        * accessibility/datalist-expected.txt: Added.

will probably need TestExpectation changes to platforms not supporting datalist

also I suspect that other platforms have not implemented popupValue for WKTR and DRT so this test will probably fail on that (GTK)
Comment 13 EWS Watchlist 2019-07-09 17:51:23 PDT
Comment on attachment 373793 [details]
Patch

Attachment 373793 [details] did not pass mac-ews (mac):
Output: https://webkit-queues.webkit.org/results/12703171

New failing tests:
accessibility/datalist.html
Comment 14 EWS Watchlist 2019-07-09 17:51:25 PDT
Created attachment 373799 [details]
Archive of layout-test-results from ews101 for mac-highsierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-highsierra  Platform: Mac OS X 10.13.6
Comment 15 EWS Watchlist 2019-07-09 18:58:39 PDT
Comment on attachment 373793 [details]
Patch

Attachment 373793 [details] did not pass mac-debug-ews (mac):
Output: https://webkit-queues.webkit.org/results/12703320

New failing tests:
accessibility/datalist.html
Comment 16 EWS Watchlist 2019-07-09 18:58:41 PDT
Created attachment 373807 [details]
Archive of layout-test-results from ews112 for mac-highsierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112  Port: mac-highsierra  Platform: Mac OS X 10.13.6
Comment 17 Andres Gonzalez 2019-07-09 19:26:57 PDT
Created attachment 373810 [details]
Patch
Comment 18 Andres Gonzalez 2019-07-09 19:29:24 PDT
Updated TestExpectations for platforms that have no support for datalist.
Comment 19 WebKit Commit Bot 2019-07-09 23:34:03 PDT
Comment on attachment 373810 [details]
Patch

Clearing flags on attachment: 373810

Committed r247295: <https://trac.webkit.org/changeset/247295>
Comment 20 WebKit Commit Bot 2019-07-09 23:34:05 PDT
All reviewed patches have been landed.  Closing bug.