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   

Description Jesper Bendtsen 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
Comment 1 Radar WebKit Bug Importer 2023-03-28 13:01:59 PDT
<rdar://problem/107330772>
Comment 2 Aditya Keerthi 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!
Comment 3 Aditya Keerthi 2023-03-28 20:06:16 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12093
Comment 4 EWS 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.