Bug 273620 - AX: VoiceOver focus jumps to top of page after using file input
Summary: AX: VoiceOver focus jumps to top of page after using file input
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad iOS 17
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-05-02 05:09 PDT by Kimberly Grey
Modified: 2024-05-02 06:08 PDT (History)
3 users (show)

See Also:


Attachments
Screen recording of issue on iPhone 14 Pro running iOS 17.4 (4.13 MB, video/mp4)
2024-05-02 05:09 PDT, Kimberly Grey
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kimberly Grey 2024-05-02 05:09:42 PDT
Created attachment 471252 [details]
Screen recording of issue on iPhone 14 Pro running iOS 17.4

When using VoiceOver, VoiceOver's focus will sometimes reset back to the top of the page after using a file input, forcing a user to manually navigate back to their previous location on the page.

## Repro steps

1. Activate VoiceOver on an iPhone running iOS 17.
2. In Safari, navigate to a webpage that features a native file input form control.
3. Navigate to the form control and activate it. 
4. Select a file. The specifics of the file don't seem to matter. I've been able to reproduce this successfully through all of selecting an image from the Photos app, taking a new photo with the Camera app, and selecting a non-image file from the Files app.
5. Check where VoiceOver's focus has now been placed.

This issue appears to be intermittent, so multiple attempts may be required to successfully reproduce it.

## Expected result

VoiceOver's focus should return to the file input that the user was previously interacting with.

## Actual result

VoiceOver's focus has been reset to the top of the page.

## Additional information

A screen recording of this taking place is attached. It was made on an iPhone 14 Pro running iOS 17.4, using the MDN documentation page for the file input type, though I could also reproduce this issue on other webpages and we have had reports of this happening on an iPhone 8 running iOS 16.5 as well.
Comment 1 Radar WebKit Bug Importer 2024-05-02 05:09:52 PDT
<rdar://problem/127422126>