Bug 241901

Summary: Failed to upload file with accept=audio/wav on safaridriver
Product: WebKit Reporter: Cheng You Bai (:cybai) <cyb.ai.815>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Mac (Intel)   
OS: macOS 11   

Description Cheng You Bai (:cybai) 2022-06-22 20:42:40 PDT
While trying to use https://webdriver.io/ to write scripts for uploading wav files,
I found I cannot upload it properly if the `accept` attribute is `audio/wav`.
However, if I use `accept=audio/*`, wav files can be uploaded properly.

I created a smallest reproducible test case at https://github.com/CYBAI/failed-to-upload-wav.
When you run `pnpm run wdio` in the repo, you will see the second test case (which tries to
upload a wav file to an `input[accept=audio/wav]`) will fail with `One or more files could not be selected`.
Comment 1 Radar WebKit Bug Importer 2022-06-29 20:43:12 PDT
<rdar://problem/96188804>