diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 17:43:06 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 17:43:06 +0000 |
commit | 28119ec7b28e0ab1ac4f3e7a1a59ff34beeb98d1 (patch) | |
tree | ad61dbf9396d03ee0690ead135c83b8477b313f9 /chrome/browser/views | |
parent | 55b4a69202507b6950190ea06273b497e174fe01 (diff) | |
download | chromium_src-28119ec7b28e0ab1ac4f3e7a1a59ff34beeb98d1.zip chromium_src-28119ec7b28e0ab1ac4f3e7a1a59ff34beeb98d1.tar.gz chromium_src-28119ec7b28e0ab1ac4f3e7a1a59ff34beeb98d1.tar.bz2 |
Fix another d&d crash that happens when the tab contents
is swapped out while a drag is happening.
Since the tab contents is swapped out, our RVH that the drag
started on is no longer valid. Simply null out the pointer
and no longer try to send feedback to the drag source. This
allows the user to continue the drag even though the source
RVH is gone.
BUG=16073
Review URL: http://codereview.chromium.org/159040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21187 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/tab_contents/tab_contents_view_win.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/views/tab_contents/tab_contents_view_win.cc b/chrome/browser/views/tab_contents/tab_contents_view_win.cc index 543cff4..cd785d6 100644 --- a/chrome/browser/views/tab_contents/tab_contents_view_win.cc +++ b/chrome/browser/views/tab_contents/tab_contents_view_win.cc @@ -178,8 +178,7 @@ void TabContentsViewWin::StartDragging(const WebDropData& drop_data) { if (!drop_data.plain_text.empty()) data->SetString(drop_data.plain_text); - drag_source_ = new WebDragSource(GetNativeView(), - tab_contents()->render_view_host()); + drag_source_ = new WebDragSource(GetNativeView(), tab_contents()); DWORD effects; |