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/565172Reviewed-by:Charlie Reis <creis@chromium.org> Reviewed-by:
Alex Moshchuk <alexmos@chromium.org> Commit-Queue: Lucas Gadani <lfg@chromium.org> Cr-Commit-Position: refs/heads/master@{#485782}
Showing
Please register or sign in to comment