[Webkit-unassigned] [Bug 185257] New: A WKWebView in a UIViewController that is presented modally and uses a file picker will be incorrectly dismissed by the system

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 3 10:00:19 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=185257

            Bug ID: 185257
           Summary: A WKWebView in a UIViewController that is presented
                    modally and uses a file picker will be incorrectly
                    dismissed by the system
           Product: WebKit
           Version: Safari 11
          Hardware: iPhone / iPad
                OS: iOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zwaugh at gmail.com

Created attachment 339421

  --> https://bugs.webkit.org/attachment.cgi?id=339421&action=review

Sample project that reproduces the bug

This is similar to https://bugs.webkit.org/show_bug.cgi?id=165225. When a WKWebView is presented in a modal UIViewControlller and a file picker is displayed (from <input type="file">), taking any actions from within the file browser will result in the file browser modal being dismissed as well as the application modal. The expected result is only the file browser modal is dismissed and the application modal remains.

To Reproduce:
1. Present a UIViewController containing a WKWebView modally
2. The WKWebView should have an <input type="file"> element.
3. Click the "Choose File" button
4. Choose "Browse" from the action sheet that is displayed
5. iOS will present the file browser modally
6. When the file browser modal is displayed, either choose "Cancel" in the top-right or select a file
7. Upon either of those actions, the file browser modal will be dismissed as well as this application modal that contains the web view
8. The expected behavior is only the file browser modal is dismissed and the application modal remains

I've attached a sample project that reproduces this in iOS 11.3, which is also available on GitHub here with an example GIF: https://github.com/zachwaugh/wkwebview-bugs/tree/master/ModalFileDismissal

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180503/1c39732c/attachment.html>


More information about the webkit-unassigned mailing list