commit | 7f1241d2872150eb54fc10268ef03a2d2aca7bce | [log] [tgz] |
---|---|---|
author | Lucas Furukawa Gadani <[email protected]> | Wed Jul 12 01:45:04 2017 |
committer | Commit Bot <[email protected]> | Wed Jul 12 01:45:04 2017 |
tree | d1829b6e31d5168095973b4b88c9d75db43d40fb | |
parent | fe2a747f216ca18ee1e46f9480caad3fe35300d0 [diff] |
Fix focus after an interstitial is destroyed. When an interstitial is created, it steals the page's focus. When it is destroyed, it is supposed to return focus to the page, however, since the WebContents still thinks an interstitial is being displayed, the RenderWidgetHostImpl tries to maintain the focus on the interstitial. This CL fixes that by moving the Focus() call into WebContentsImpl::DetachInterstitialPage, instead of being called in InterstitialPageImpl::Hide. Bug: 739676 Change-Id: I9eff1af3cb1500cc3f38400ae9e13e553bb0cf54 Reviewed-on: https://chromium-review.googlesource.com/565172 Reviewed-by: Charlie Reis <[email protected]> Reviewed-by: Alex Moshchuk <[email protected]> Commit-Queue: Lucas Gadani <[email protected]> Cr-Commit-Position: refs/heads/master@{#485782}