Commit d1596214 authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

Fix focus issues with web contents modal dialogs.

BUG=880210
TEST=as in bug

Change-Id: I9f305084bf9f6b146d0323baeabc4437466857df
Reviewed-on: https://chromium-review.googlesource.com/1252241Reviewed-by: default avatarLeonard Grey <lgrey@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595171}
parent 6b21dd3b
...@@ -38,8 +38,10 @@ bool ChromeWebContentsViewFocusHelper::Focus() { ...@@ -38,8 +38,10 @@ bool ChromeWebContentsViewFocusHelper::Focus() {
const web_modal::WebContentsModalDialogManager* manager = const web_modal::WebContentsModalDialogManager* manager =
web_modal::WebContentsModalDialogManager::FromWebContents(web_contents_); web_modal::WebContentsModalDialogManager::FromWebContents(web_contents_);
if (manager && manager->IsDialogActive()) if (manager && manager->IsDialogActive()) {
manager->FocusTopmostDialog(); manager->FocusTopmostDialog();
return true;
}
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment