Bug 254604

Summary: REGRESSION (iOS 16.4): Photo library picker shows videos even for accept="image/*"
Product: WebKit Reporter: Jesper Bendtsen <jesperbendtsen83>
Component: WebKit Misc.Assignee: Aditya Keerthi <akeerthi>
Status: RESOLVED FIXED    
Severity: Major CC: akeerthi, sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   

Jesper Bendtsen
Reported 2023-03-28 12:24:03 PDT
Test the demo below, scroll down to "select some images", it also showing movies? https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
Attachments
Radar WebKit Bug Importer
Comment 1 2023-03-28 13:01:59 PDT
Aditya Keerthi
Comment 2 2023-03-28 13:37:18 PDT
I'm assuming this is referring to the "Photo Library" option, where I am able to reproduce. Possibly a regression caused by WebKit's adoption of the new Photos API. I think we will need to specify a PHPickerConfiguration+PHPickerFilter when creating the PHPickerViewController in `WKFileUploadPanel.mm`. Thanks for the report!
Aditya Keerthi
Comment 3 2023-03-28 20:06:16 PDT
EWS
Comment 4 2023-03-29 08:36:09 PDT
Committed 262275@main (6c610b79ff6c): <https://commits.webkit.org/262275@main> Reviewed commits have been landed. Closing PR #12093 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.