- Present a file upload picker for a file <input> on iOS.
- Dismiss the picker by swiping down on it.
- Attempt to open the file picker again.
(Expected: I can open the file picker)
(Actual result: Nothing happens)
- Cause the web view to be deallocated (e.g. close a browser tab)
(Expected: Nothing interesting happens)
(Actual result: The app crashes due an exception in +[UIViewController _viewControllerForFullScreenPresentationFromView:] because the 'view' parameter nil. This is hit while trying to dismiss the file upload panel, which the WKContentView still thinks is presented.)
Created attachment 394660 [details]
Comment on attachment 394660 [details]
This patch looks good. A better solution would include a test for this change or a test for the crash (or both). I think it's testable from layout tests. See internals.cpp
Committed r264785: <https://trac.webkit.org/changeset/264785>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 394660 [details].