Bug 251023

Summary: AX: Selector labels don't redirect VoiceOver focus properly
Product: WebKit Reporter: ayush.sharma
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: andresg_22, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Mac (Intel)   
OS: iOS 15   

Description ayush.sharma 2023-01-23 10:06:59 PST
Steps to reproduce:
1. Go to about:blank in Safari.
2. Go to Safari's developer tools and edit the HTML to be the following:

<html>
<head></head>
<body>
<label for="select1">Selector label</label>
<select id="select1">
<option>Option 1</option>
<option>Option 2</option>
</select>
<p>Reset focus here</p>
</body>
</html>

3. Open VoiceOver and click on "Selector label". The first time you do this, you should see the black VoiceOver focus box immediately go to the selector, and hear/see corresponding narration by VoiceOver.
4. With VoiceOver still open, click on "Selector label" again. At this point, the black VoiceOver box should go to the word that you click on, and not to the selector as expected.
5. In an attempt to "reset" what VoiceOver is focusing on, click on "Reset focus here" and listen to/watch VoiceOver narrate this element. Then, click on "Selector label" again. The undesired behavior from step 4 should be repeated, and nothing else (short of refreshing the page) will result in the black VoiceOver box going to the selector upon clicking the "Selector label" text.
Comment 1 Radar WebKit Bug Importer 2023-01-23 10:07:13 PST
<rdar://problem/104561907>