[webkit-changes] [WebKit/WebKit] 6c610b: REGRESSION (iOS 16.4): Photo library picker shows ...

Aditya Keerthi noreply at github.com
Wed Mar 29 08:36:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6c610b79ff6cd385bf83f1f2390b7b79a2de0d78
      https://github.com/WebKit/WebKit/commit/6c610b79ff6cd385bf83f1f2390b7b79a2de0d78
  Author: Aditya Keerthi <akeerthi at apple.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm

  Log Message:
  -----------
  REGRESSION (iOS 16.4): Photo library picker shows videos even for accept="image/*"
https://bugs.webkit.org/show_bug.cgi?id=254604
rdar://107330772

Reviewed by Wenson Hsieh.

255435 at main replaced usage of `UIImagePickerController` with `PHPickerViewController`
to display the photo library picker. Previously the accepted types were restricted
using `-[UIImagePickerController setMediaTypes:]`. However, the old filtering logic
was not ported over to `PHPickerViewController`, resulting in the picker always
displaying both images and video.

* Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm:

Fix by adopting `PHPickerFilter` to filter the type of media if needed.

Canonical link: https://commits.webkit.org/262275@main




More information about the webkit-changes mailing list