Bug 254604 - REGRESSION (iOS 16.4): Photo library picker shows videos even for accept="image/*"
Summary: REGRESSION (iOS 16.4): Photo library picker shows videos even for accept="ima...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Major
Assignee: Aditya Keerthi
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-28 12:24 PDT by Jesper Bendtsen
Modified: 2023-03-29 08:36 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.