WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
208542
Web Inspector: AXI: annotate tab panels
https://bugs.webkit.org/show_bug.cgi?id=208542
Summary
Web Inspector: AXI: annotate tab panels
Nikita Vasilyev
Reported
2020-03-03 15:44:33 PST
With tab panels annotated, VoiceOver reads tab name the 1st time focusing on any element within it. Steps: 1. Open Elements tab 2. Focus on any DOM tree outline item Expected: VoiceOver read the selected tree outline item and then "Elements, tab panel". After that, changing focus to any other element within the Elements tab doesn't not result VoiceOver reading "Elements, tab panel" again. Actual: VoiceOver read the selected tree outline item — nothing about the Elements tab.
Attachments
Patch
(2.62 KB, patch)
2020-03-03 15:56 PST
,
Nikita Vasilyev
hi
: review+
hi
: commit-queue-
Details
Formatted Diff
Diff
Patch
(3.10 KB, patch)
2020-03-05 16:43 PST
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Nikita Vasilyev
Comment 1
2020-03-03 15:56:19 PST
Created
attachment 392344
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2020-03-03 15:56:43 PST
<
rdar://problem/60017450
>
Devin Rousso
Comment 3
2020-03-05 16:06:23 PST
Comment on
attachment 392344
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392344&action=review
r=me
> Source/WebInspectorUI/ChangeLog:3 > + Web Inspector: AXI: annotate tab panels
Please add an explanation as to why `role="main"` is not sufficient, and why `role="tabpanel"` is better.
> Source/WebInspectorUI/UserInterface/Base/Main.js:1822 > + WI._contentElement.ariaLabel = WI.tabBar.selectedTabBarItem?.title || "";
Rather than check `WI.tabBar.selectedTabBarItem` more than once, why not pull it out into a variable and share it with the check below? ``` let selectedTabBarItem = WI.tabBar.selectedTabBarItem; if (selectedTabBarItem) { WI._contentElement.ariaLabel = selectedTabBarItem.title || ""; if (selectedTabBarItem.representedObject.constructor.shouldSaveTab()) WI._selectedTabIndexSetting.value = WI.tabBar.tabBarItems.indexOf(selectedTabBarItem); ```
Nikita Vasilyev
Comment 4
2020-03-05 16:43:01 PST
Created
attachment 392647
[details]
Patch
WebKit Commit Bot
Comment 5
2020-03-05 19:57:35 PST
Comment on
attachment 392647
[details]
Patch Clearing flags on attachment: 392647 Committed
r257965
: <
https://trac.webkit.org/changeset/257965
>
WebKit Commit Bot
Comment 6
2020-03-05 19:57:37 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.
Top of Page
Format For Printing
XML
Clone This Bug