| Index: chrome/browser/renderer_host/render_widget_host_view_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/renderer_host/render_widget_host_view_gtk.cc (revision 52600)
|
| +++ chrome/browser/renderer_host/render_widget_host_view_gtk.cc (working copy)
|
| @@ -603,7 +603,11 @@
|
| void RenderWidgetHostViewGtk::Blur() {
|
| // TODO(estade): We should be clearing native focus as well, but I know of no
|
| // way to do that without focusing another widget.
|
| - host_->Blur();
|
| + // TODO(estade): it doesn't seem like the CanBlur() check should be necessary
|
| + // since we are only called in response to a ViewHost blur message, but this
|
| + // check is made on Windows so I've added it here as well.
|
| + if (host_->CanBlur())
|
| + host_->Blur();
|
| }
|
|
|
| bool RenderWidgetHostViewGtk::HasFocus() {
|
|
|