[ios] Works around an iOS10 bug where UIVCs are over-dismissed.
The combination of UIDocumentMenuViewController and WKFileUploadPanel ends up calling |dismissViewController:animated:| twice. The second call triggers a DCHECK that's intended to protect the BrowserViewController from being accidentally dismissed. This CL works around the bug by detecting when a UIDocumentMenuViewController is presented and ignoring spurious calls to dismiss. BUG=801165 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: Ifa957dd8f0c387537130754335ec6bf137d68b2b Reviewed-on: https://chromium-review.googlesource.com/895727Reviewed-by:Mark Cogan <marq@chromium.org> Commit-Queue: Rohit Rao <rohitrao@chromium.org> Cr-Commit-Position: refs/heads/master@{#534432}
Showing
Please register or sign in to comment