| Index: chrome/browser/views/tab_contents/tab_contents_view_gtk.cc
|
| diff --git a/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc
|
| index db413973ff16f8cb4b2f0b8872a848088ab62b12..3ed8c75161049a09dc93a6fc39a8b3406830d5cb 100644
|
| --- a/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc
|
| +++ b/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc
|
| @@ -150,6 +150,9 @@ void TabContentsViewGtk::CreateView(const gfx::Size& initial_size) {
|
| set_delete_on_destroy(false);
|
| WidgetGtk::Init(NULL, gfx::Rect(0, 0, initial_size.width(),
|
| initial_size.height()));
|
| + // We need to own the widget in order to attach/detach the native view
|
| + // to container.
|
| + gtk_object_ref(GTK_OBJECT(GetNativeView()));
|
| }
|
|
|
| RenderWidgetHostView* TabContentsViewGtk::CreateViewForWidget(
|
| @@ -413,4 +416,3 @@ gboolean TabContentsViewGtk::OnMouseMove(GtkWidget* widget,
|
| tab_contents(), views::Screen::GetCursorScreenPoint(), true);
|
| return FALSE;
|
| }
|
| -
|
|
|