-
Lukasz Anforowicz authored
It is desirable (see https://crbug.com/1031119) to focus tab contents when a navigation is triggered by dropping a link or a file onto the browser window. Before this CL, tab contents would be focused any time the OpenURL code path is used, but not in BeginNavigation code path. This meant that dropping a local file (e.g. navigating to a file: URL) would result in focusing the tab contents (possibly moving the focus away from the omnibox), but other navigations (e.g. navigating to a https: URL) would not affect focus. After this CL any "drop" focuses the WebContents. Bug: 1042271 Change-Id: Ib1db79faec6e32846747d1cde9a78450dc354b42 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2003079Reviewed-by:
Charlie Reis <creis@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#734245}
37470a6d