WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
Bug 130196
Web Inspector: Add a new layout test for better coverage of accessibility "focused" in inspector-protocol DOM.getAccessibilityPropertiesForNode
https://bugs.webkit.org/show_bug.cgi?id=130196
Summary
Web Inspector: Add a new layout test for better coverage of accessibility "fo...
James Craig
Reported
2014-03-13 09:38:14 PDT
Web Inspector: Add a new layout test for better coverage of accessibility "focused" in inspector-protocol DOM.getAccessibilityPropertiesForNode Since "focused" is so dependent on user state, I was thinking something that would load up various focusables: native links native form elements (text, button, checkbox, textarea) contenteditable region also a few ARIA controls with tabindex values of 0, -1, etc. Cycle through the different focused states on each control and verify the focused output from DOM.getAccessibilityPropertiesForNode is expected. Might also want to try focusing something that is not focusable (e.g. div:not([tabindex])) and make sure it fails. Note that native links and buttons are not user focusable (with the Tab key) by default in Safari, but they should always remain "focusable" as far as the accessibility APIs are concerned.
Attachments
Patch
(7.14 KB, patch)
2014-03-14 10:20 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(7.35 KB, patch)
2014-03-24 09:20 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from webkit-cq-02 for mac-mountainlion
(475.17 KB, application/zip)
2014-03-25 16:43 PDT
,
WebKit Commit Bot
no flags
Details
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2
(469.31 KB, application/zip)
2014-03-26 09:58 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion
(496.62 KB, application/zip)
2014-03-26 10:31 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion
(495.69 KB, application/zip)
2014-03-26 11:26 PDT
,
Build Bot
no flags
Details
Patch
(7.30 KB, patch)
2014-03-30 14:45 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(8.75 KB, patch)
2021-11-21 23:29 PST
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(8.71 KB, patch)
2021-11-25 23:17 PST
,
Diego Pino
dpino
: review?
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
James Craig
Comment 1
2014-03-13 09:40:07 PDT
Diego, would you like to take this one since you worked on the focused/focusable bits? If not, kick it back to unassigned and I'll get to it eventually.
Diego Pino
Comment 2
2014-03-13 10:12:40 PDT
(In reply to
comment #1
)
> Diego, would you like to take this one since you worked on the focused/focusable bits? If not, kick it back to unassigned and I'll get to it eventually.
Yes sure, nice.
Diego Pino
Comment 3
2014-03-14 10:20:02 PDT
Created
attachment 226729
[details]
Patch
Diego Pino
Comment 4
2014-03-14 10:24:57 PDT
I tried to add a non-focusable element and focus on it, with the expectation that focused were false, but what actually happened was that I got a protocol error: PROTOCOL ERROR: {"code":-32000,"message":"Element is not focusable"} That means that DOM.focus cannot focus a non-focusable element, and that's the reason why there's no test with "focused: false".
Timothy Hatcher
Comment 5
2014-03-18 12:59:37 PDT
Comment on
attachment 226729
[details]
Patch The result might need rebaselined for new properties.
Radar WebKit Bug Importer
Comment 6
2014-03-18 12:59:58 PDT
<
rdar://problem/16357755
>
Diego Pino
Comment 7
2014-03-24 09:20:52 PDT
Created
attachment 227654
[details]
Patch
WebKit Commit Bot
Comment 8
2014-03-25 16:43:23 PDT
Comment on
attachment 227654
[details]
Patch Rejecting
attachment 227654
[details]
from commit-queue. New failing tests: inspector-protocol/dom/getAccessibilityPropertiesForNode-focused.html Full output:
http://webkit-queues.appspot.com/results/4766140945399808
WebKit Commit Bot
Comment 9
2014-03-25 16:43:25 PDT
Created
attachment 227815
[details]
Archive of layout-test-results from webkit-cq-02 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the commit-queue. Bot: webkit-cq-02 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Build Bot
Comment 10
2014-03-26 09:58:11 PDT
Comment on
attachment 227654
[details]
Patch
Attachment 227654
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/4668046509604864
New failing tests: inspector-protocol/dom/getAccessibilityPropertiesForNode-focused.html
Build Bot
Comment 11
2014-03-26 09:58:14 PDT
Created
attachment 227856
[details]
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-15 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 12
2014-03-26 10:31:28 PDT
Comment on
attachment 227654
[details]
Patch
Attachment 227654
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/4707749187289088
New failing tests: inspector-protocol/dom/getAccessibilityPropertiesForNode-focused.html
Build Bot
Comment 13
2014-03-26 10:31:31 PDT
Created
attachment 227859
[details]
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-07 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Build Bot
Comment 14
2014-03-26 11:26:15 PDT
Comment on
attachment 227654
[details]
Patch
Attachment 227654
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/4610112769490944
New failing tests: inspector-protocol/dom/getAccessibilityPropertiesForNode-focused.html
Build Bot
Comment 15
2014-03-26 11:26:18 PDT
Created
attachment 227866
[details]
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-05 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Diego Pino
Comment 16
2014-03-30 14:45:13 PDT
Created
attachment 228132
[details]
Patch
WebKit Commit Bot
Comment 17
2014-03-30 16:00:20 PDT
Comment on
attachment 228132
[details]
Patch Clearing flags on attachment: 228132 Committed
r166467
: <
http://trac.webkit.org/changeset/166467
>
WebKit Commit Bot
Comment 18
2014-03-30 16:00:26 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 19
2014-03-30 20:16:51 PDT
This test fails on all or nearly all bots, will roll out.
http://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=inspector-protocol%2Fdom%2FgetAccessibilityPropertiesForNode-focused.html
WebKit Commit Bot
Comment 20
2014-03-30 20:18:58 PDT
Re-opened since this is blocked by
bug 130952
Diego Pino
Comment 21
2021-11-21 23:29:00 PST
Created
attachment 444948
[details]
Patch
Diego Pino
Comment 22
2021-11-25 23:17:06 PST
Created
attachment 445171
[details]
Patch
Devin Rousso
Comment 23
2021-11-29 10:21:20 PST
Comment on
attachment 445171
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=445171&action=review
> LayoutTests/inspector/dom/getAccessibilityPropertiesForNode_focused.html:129 > + InspectorProtocol.sendCommand("DOM.getDocument", {}, onGotDocument);
Can we redo this test to be an inspector test (i.e. `InspectorTest`) instead? We usually prefer that instead of a protocol test (i.e. `InspectorProtocol`) unless the thing being tested is is specific to the nature of the protocol itself, as inspector tests give greater coverage for the thing being tested within the greater Web Inspector instead of standalone.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug