[ios] Return early if no previously active request
Normally, when the active WebState is being changed with a presenting Overlay, the overlay's request will still be in the queue. However, When multiple tabs are being simultaneously opened, there will be a situation where the "last" active WebState has no requests, even though presented_ in OverlayPresenter is true because the original presenting overlay is still finishing its dismissal. There is an assumption in SetActiveWebState() that if presented_ is true,then there is an overlay in the queue to dismiss. In this situation, which occurs in Popup Infobars often, that is not true. Bug: 1121755 Change-Id: I45829c8abe81283cbc52a8c61acc5c9ecd17c8d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382425 Commit-Queue: Mike Dougherty <michaeldo@chromium.org> Reviewed-by:Mike Dougherty <michaeldo@chromium.org> Cr-Commit-Position: refs/heads/master@{#803965}
Showing
Please register or sign in to comment