diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | chrome/browser/tab_contents/tab_contents_view_mac.mm | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -34,3 +34,4 @@ Paul Robinson <paulrobinson85@googlemail.com> Josué Ratelle <jorat1346@gmail.com> Edward Crossman <tedoc2000@gmail.com> Nikita Ofitserov <himikof@gmail.com> +Sean Bryant <sean@cyberwang.net> diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm index 3d894c8..bcf7ab4 100644 --- a/chrome/browser/tab_contents/tab_contents_view_mac.mm +++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm @@ -107,7 +107,9 @@ void TabContentsViewMac::Focus() { } void TabContentsViewMac::SetInitialFocus() { - // TODO(port) + // TODO(port): Set focus in the else case correctly. + if (web_contents()->FocusLocationBarByDefault()) + web_contents()->delegate()->SetFocusToLocationBar(); } void TabContentsViewMac::StoreFocus() { @@ -116,6 +118,8 @@ void TabContentsViewMac::StoreFocus() { void TabContentsViewMac::RestoreFocus() { // TODO(port) + // For now just assume we are viewing the tab for the first time. + SetInitialFocus(); } void TabContentsViewMac::UpdateDragCursor(bool is_drop_target) { |