Revert "[ios] Fixes an issue where BVC is overdismissed by a bug in WebKit."

This reverts commit 4e0162d3250b262731079d8ab7297b9b7be1682a.

Reason for revert: Logic in the conditional was wrong.  Reverting and relanding to make cherrypicking easier.

Original change's description:
> [ios] Fixes an issue where BVC is overdismissed by a bug in WebKit.
> 
> The WKFileUploadPanel has a bug in iOS 11 and earlier which causes view
> controllers to be overdismissed when the HTML file picker is
> used. WebKit attempts to dismiss the file picker view controller, but
> due to a bug inadvertently dismisses its presenting view controller
> instead.
> 
> We previously attempted to work around this bug in
> BrowserViewController, but now the file picker is presented on top of
> BrowserContainerViewController instead. This CL copies the BVC fix into
> BrowserContainerViewController as well.
> 
> BUG=852367
> 
> Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
> Change-Id: I8c3ef4b55cc052f832aa3e9e995c20880a96db00
> Reviewed-on: https://chromium-review.googlesource.com/1172505
> Reviewed-by: Mark Cogan <marq@chromium.org>
> Commit-Queue: Rohit Rao <rohitrao@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#582899}

TBR=rohitrao@chromium.org,marq@chromium.org

Change-Id: Id199b64138930f430e5b753d00e78cc1ecab54a1
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 852367
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Reviewed-on: https://chromium-review.googlesource.com/1174551
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Commit-Queue: Rohit Rao <rohitrao@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#582900}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a27b8d3c84490a24cf5a9f905fd00782ec00899e
1 file changed