| Index: chrome/browser/tab_contents/tab_contents_view_gtk.cc
|
| diff --git a/chrome/browser/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/tab_contents/tab_contents_view_gtk.cc
|
| index 4f63b299c3b21b72f6c9690cb26ece0d8ae77a57..d4a13216e21bf862bba835d37fa888c9cb9f553b 100644
|
| --- a/chrome/browser/tab_contents/tab_contents_view_gtk.cc
|
| +++ b/chrome/browser/tab_contents/tab_contents_view_gtk.cc
|
| @@ -269,9 +269,11 @@ void TabContentsViewGtk::GotFocus() {
|
| // all subclasses. http://crbug.com/21875
|
| }
|
|
|
| -// This is called when we the renderer asks us to take focus back (i.e., it has
|
| +// This is called when the renderer asks us to take focus back (i.e., it has
|
| // iterated past the last focusable element on the page).
|
| void TabContentsViewGtk::TakeFocus(bool reverse) {
|
| + if (!tab_contents_->delegate())
|
| + return;
|
| if (!tab_contents_->delegate()->TakeFocus(reverse)) {
|
| gtk_widget_child_focus(GTK_WIDGET(GetTopLevelNativeWindow()),
|
| reverse ? GTK_DIR_TAB_BACKWARD : GTK_DIR_TAB_FORWARD);
|
|
|