[webkit-changes] [WebKit/WebKit] b82f73: Migrate from UIImagePickerController to PHPickerVi...
Richard Robinson
noreply at github.com
Wed Oct 12 09:47:27 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b82f73d063f37521fa94194d4cba86d0538c31df
https://github.com/WebKit/WebKit/commit/b82f73d063f37521fa94194d4cba86d0538c31df
Author: Richard Robinson <richard_robinson2 at apple.com>
Date: 2022-10-12 (Wed, 12 Oct 2022)
Changed paths:
M Source/WebKit/Platform/spi/ios/PhotosUISPI.h
M Source/WebKit/Shared/Cocoa/WebIconUtilities.mm
M Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm
Log Message:
-----------
Migrate from UIImagePickerController to PHPickerViewController for image/video upload UI
https://bugs.webkit.org/show_bug.cgi?id=245906
rdar://82449143
Reviewed by Aditya Keerthi.
Adopts the `PHPickerViewController` API for selecting media for file input fields
as `UIImagePickerController` is deprecated for the purpose of selecting media
from the Photo Library.
* Source/WebKit/Platform/spi/ios/PhotosUISPI.h:
* Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm:
(firstUTIThatConformsTo):
(-[WKFileUploadPanel presentWithParameters:resultListener:]):
(-[WKFileUploadPanel _dismissDisplayAnimated:]):
(-[WKFileUploadPanel contextMenuInteraction:configurationForMenuAtLocation:]):
(-[WKFileUploadPanel _showCamera]):
(-[WKFileUploadPanel _showPhotoPicker]):
(-[WKFileUploadPanel picker:didFinishPicking:]):
(-[WKFileUploadPanel _processPickerResults:successBlock:failureBlock:]):
(-[WKFileUploadPanel _processPickerResults:atIndex:processedResults:successBlock:failureBlock:]):
(-[WKFileUploadPanel _uploadItemFromResult:successBlock:failureBlock:]):
(-[WKFileUploadPanel _showPhotoPickerWithSourceType:]): Deleted.
Canonical link: https://commits.webkit.org/255435@main
More information about the webkit-changes
mailing list