Bug 193225

Summary: Web Inspector: Audit: provide a way to get related Accessibility nodes for a given node
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, commit-queue, dmazzoni, ews-watchlist, hi, inspector-bugzilla-changes, jcraig, jdiggs, joepeck, rniwa, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 190754, 193149    
Bug Blocks:    
Attachments:
Description Flags
Patch
hi: commit-queue-
Patch
hi: commit-queue-
Patch
hi: commit-queue-
Patch
none
Patch
none
Patch
none
Archive of layout-test-results from ews100 for mac-highsierra
none
Archive of layout-test-results from ews105 for mac-highsierra-wk2
none
Archive of layout-test-results from ews112 for mac-highsierra
none
Patch
none
Archive of layout-test-results from ews100 for mac-highsierra
none
Archive of layout-test-results from ews107 for mac-highsierra-wk2
none
Archive of layout-test-results from ews114 for mac-highsierra
none
Patch
none
Archive of layout-test-results from ews103 for mac-highsierra
none
Archive of layout-test-results from ews114 for mac-highsierra
none
Archive of layout-test-results from ews107 for mac-highsierra-wk2
none
Patch
none
Archive of layout-test-results from ews103 for mac-highsierra
none
Archive of layout-test-results from ews105 for mac-highsierra-wk2
none
Archive of layout-test-results from ews117 for mac-highsierra
none
Patch none

Devin Rousso
Reported 2019-01-07 18:02:42 PST
This corresponds to the following `DOM.AccessibilityProperties` properties (except they'd return `Node`s instead of `DOM.NodeId`s): - activeDescendantNodeId - childNodeIds - controlledNodeIds - flowedNodeIds - mouseEventNodeId - ownedNodeIds - parentNodeId - selectedChildNodeIds
Attachments
Patch (13.82 KB, patch)
2019-01-07 19:09 PST, Devin Rousso
hi: commit-queue-
Patch (15.57 KB, patch)
2019-01-07 19:54 PST, Devin Rousso
hi: commit-queue-
Patch (20.97 KB, patch)
2019-01-10 16:25 PST, Devin Rousso
hi: commit-queue-
Patch (21.75 KB, patch)
2019-01-10 18:55 PST, Devin Rousso
no flags
Patch (17.03 KB, patch)
2019-01-15 10:16 PST, Devin Rousso
no flags
Patch (16.97 KB, patch)
2019-01-15 10:19 PST, Devin Rousso
no flags
Archive of layout-test-results from ews100 for mac-highsierra (2.48 MB, application/zip)
2019-01-15 11:21 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews105 for mac-highsierra-wk2 (2.57 MB, application/zip)
2019-01-15 11:33 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews112 for mac-highsierra (2.03 MB, application/zip)
2019-01-15 11:57 PST, EWS Watchlist
no flags
Patch (17.45 KB, patch)
2019-01-15 17:18 PST, Devin Rousso
no flags
Archive of layout-test-results from ews100 for mac-highsierra (2.60 MB, application/zip)
2019-01-15 18:12 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews107 for mac-highsierra-wk2 (2.55 MB, application/zip)
2019-01-15 18:45 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews114 for mac-highsierra (2.52 MB, application/zip)
2019-01-15 19:09 PST, EWS Watchlist
no flags
Patch (17.21 KB, patch)
2019-01-18 17:19 PST, Devin Rousso
no flags
Archive of layout-test-results from ews103 for mac-highsierra (2.56 MB, application/zip)
2019-01-18 18:02 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews114 for mac-highsierra (2.10 MB, application/zip)
2019-01-18 18:44 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews107 for mac-highsierra-wk2 (2.88 MB, application/zip)
2019-01-18 19:41 PST, EWS Watchlist
no flags
Patch (17.50 KB, patch)
2019-01-19 00:49 PST, Devin Rousso
no flags
Archive of layout-test-results from ews103 for mac-highsierra (2.41 MB, application/zip)
2019-01-19 01:52 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews105 for mac-highsierra-wk2 (2.54 MB, application/zip)
2019-01-19 02:05 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews117 for mac-highsierra (2.02 MB, application/zip)
2019-01-19 05:36 PST, EWS Watchlist
no flags
Patch (17.56 KB, patch)
2019-01-22 10:37 PST, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-01-07 18:02:59 PST
Devin Rousso
Comment 2 2019-01-07 19:09:40 PST
Devin Rousso
Comment 3 2019-01-07 19:54:18 PST
Created attachment 358568 [details] Patch Minor test fixes.
Devin Rousso
Comment 4 2019-01-10 16:25:10 PST
Created attachment 358848 [details] Patch Throw an error when called outside of a test
Devin Rousso
Comment 5 2019-01-10 18:55:02 PST
Joseph Pecoraro
Comment 6 2019-01-14 14:14:59 PST
Comment on attachment 358858 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=358858&action=review r=me, earlier patch comments applying. > Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:109 > + if (controlledElement) Nit: Is this if check necessary, would elementsFromAttribute return a null element? > Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:131 > + if (flowedElement) Nit: Is this if check necessary, would elementsFromAttribute return a null element? > Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:148 > + } > + return nullptr; Style: Sometimes you don't have a newline before the final return and sometimes you do. Would be nice to be consistent. I'd vote for always having a newline after a closing brace before a final return. > Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:164 > + if (ownedElement) Nit: Is this if check necessary, would elementsFromAttribute return a null element?
Devin Rousso
Comment 7 2019-01-15 10:06:11 PST
Comment on attachment 358858 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=358858&action=review >> Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:109 >> + if (controlledElement) > > Nit: Is this if check necessary, would elementsFromAttribute return a null element? It doesn't look like it, as `elementsFromAttribute` does its own check, but I think this isn't a bad thing to have.
Devin Rousso
Comment 8 2019-01-15 10:16:10 PST
Devin Rousso
Comment 9 2019-01-15 10:19:01 PST
Joseph Pecoraro
Comment 10 2019-01-15 11:13:59 PST
(In reply to Devin Rousso from comment #7) > Comment on attachment 358858 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=358858&action=review > > >> Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:109 > >> + if (controlledElement) > > > > Nit: Is this if check necessary, would elementsFromAttribute return a null element? > > It doesn't look like it, as `elementsFromAttribute` does its own check, but > I think this isn't a bad thing to have. We should never have to write code like: if (auto* x : list) { if (x) ...; } Lets drop them. The originating code in DOMAgent doesn't have these checks.
EWS Watchlist
Comment 11 2019-01-15 11:21:34 PST Comment hidden (obsolete)
EWS Watchlist
Comment 12 2019-01-15 11:21:36 PST Comment hidden (obsolete)
EWS Watchlist
Comment 13 2019-01-15 11:33:34 PST Comment hidden (obsolete)
EWS Watchlist
Comment 14 2019-01-15 11:33:36 PST Comment hidden (obsolete)
EWS Watchlist
Comment 15 2019-01-15 11:57:08 PST Comment hidden (obsolete)
EWS Watchlist
Comment 16 2019-01-15 11:57:10 PST Comment hidden (obsolete)
Devin Rousso
Comment 17 2019-01-15 17:18:30 PST
EWS Watchlist
Comment 18 2019-01-15 18:12:13 PST Comment hidden (obsolete)
EWS Watchlist
Comment 19 2019-01-15 18:12:15 PST Comment hidden (obsolete)
EWS Watchlist
Comment 20 2019-01-15 18:45:40 PST Comment hidden (obsolete)
EWS Watchlist
Comment 21 2019-01-15 18:45:42 PST Comment hidden (obsolete)
EWS Watchlist
Comment 22 2019-01-15 19:09:31 PST Comment hidden (obsolete)
EWS Watchlist
Comment 23 2019-01-15 19:09:33 PST Comment hidden (obsolete)
Devin Rousso
Comment 24 2019-01-18 17:19:00 PST
Created attachment 359562 [details] Patch Rebase
EWS Watchlist
Comment 25 2019-01-18 18:02:21 PST Comment hidden (obsolete)
EWS Watchlist
Comment 26 2019-01-18 18:02:24 PST Comment hidden (obsolete)
EWS Watchlist
Comment 27 2019-01-18 18:44:29 PST Comment hidden (obsolete)
EWS Watchlist
Comment 28 2019-01-18 18:44:31 PST Comment hidden (obsolete)
EWS Watchlist
Comment 29 2019-01-18 19:41:25 PST Comment hidden (obsolete)
EWS Watchlist
Comment 30 2019-01-18 19:41:27 PST Comment hidden (obsolete)
Devin Rousso
Comment 31 2019-01-19 00:49:55 PST
EWS Watchlist
Comment 32 2019-01-19 01:52:01 PST Comment hidden (obsolete)
EWS Watchlist
Comment 33 2019-01-19 01:52:03 PST Comment hidden (obsolete)
EWS Watchlist
Comment 34 2019-01-19 02:04:59 PST Comment hidden (obsolete)
EWS Watchlist
Comment 35 2019-01-19 02:05:01 PST Comment hidden (obsolete)
EWS Watchlist
Comment 36 2019-01-19 05:36:56 PST Comment hidden (obsolete)
EWS Watchlist
Comment 37 2019-01-19 05:36:58 PST Comment hidden (obsolete)
Devin Rousso
Comment 38 2019-01-22 10:37:53 PST
WebKit Commit Bot
Comment 39 2019-01-22 12:52:58 PST
Comment on attachment 359749 [details] Patch Clearing flags on attachment: 359749 Committed r240277: <https://trac.webkit.org/changeset/240277>
WebKit Commit Bot
Comment 40 2019-01-22 12:53:01 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.