Prevented connecting events to a SwappedOut RenderViewHost in WebContentsViewGtk
commitd866d17fddb39f49dd9ee6fd64145a60b6d958dd
authormthiesse@chromium.org <mthiesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 16 Mar 2013 09:25:43 +0000 (16 09:25 +0000)
committermthiesse@chromium.org <mthiesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 16 Mar 2013 09:25:43 +0000 (16 09:25 +0000)
tree69c96e47ad85375857797797cc85ea52ddf87ed4
parent2b1767cf508a22ca32767ce3ed0a25c9506d855d
Prevented connecting events to a SwappedOut RenderViewHost in WebContentsViewGtk

Added a check to see if the RenderWidgetHost passed to CreateViewForWidget is
SwappedOut before connecting events to it, or creating a DragDest from it.

Needed for: https://chromiumcodereview.appspot.com/12086095/
When a postMessage is sent to a guest process, like a BrowserPlugin guest,
WebContentsViewGtk::CreateViewForWidget is called with a swapped out
RenderWidgetHost. This RenderWidgetHost is then used as the WebDragDest for the
window, preventing the window from receiving Drag and Drop events.

BUG= 161112, 177667

Review URL: https://chromiumcodereview.appspot.com/12252016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188559 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/web_contents/web_contents_view_gtk.cc
content/browser/web_contents/web_contents_view_gtk.h
content/browser/web_contents/web_drag_dest_gtk.cc
content/browser/web_contents/web_drag_dest_gtk.h