This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS] Update the presentation style of the photo picker
https://bugs.webkit.org/show_bug.cgi?id=240926 rdar://89670039 Reviewed by Wenson Hsieh. The photo picker should no longer be displayed as a popover. Instead, let UIKit decide the modal presentation style. * Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm: (-[WKFileUploadPanel dealloc]): (-[WKFileUploadPanel dismiss]): (-[WKFileUploadPanel _dismissDisplayAnimated:]): (-[WKFileUploadPanel _showPhotoPickerWithSourceType:]): Set the presentationController's delegate so that we are informed when the picker is dismissed by swiping down. (-[WKFileUploadPanel _presentMenuOptionForCurrentInterfaceIdiom:]): Deleted. This method was already unused. (-[WKFileUploadPanel _presentPopoverWithContentViewController:animated:]): Deleted. (-[WKFileUploadPanel popoverControllerDidDismissPopover:]): Deleted. Canonical link: https://commits.webkit.org/251012@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 1 changed file with 5 additions and 49 deletions.