diff options
author | twiz@chromium.org <twiz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-22 20:51:27 +0000 |
---|---|---|
committer | twiz@chromium.org <twiz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-22 20:51:27 +0000 |
commit | 369fe46b8b3eaf3856383a13efd4591d13074d0a (patch) | |
tree | 5ef2c76ab6e1c5f6800f7588a40534d862fdb93b /chrome | |
parent | 6aa70c57f43fc832c669e958d34508e04fbcaeff (diff) | |
download | chromium_src-369fe46b8b3eaf3856383a13efd4591d13074d0a.zip chromium_src-369fe46b8b3eaf3856383a13efd4591d13074d0a.tar.gz chromium_src-369fe46b8b3eaf3856383a13efd4591d13074d0a.tar.bz2 |
Temporary fix for issue 34061.
Change that signals that drag-drop operations are immediately terminated in ExtensionHost views. Previously, the view would become unresponsive, because the RenderViewHost would remain 'stuck' in the dragging logic, and all input events would be disregarded.
This fixes the issue described in the bug, but the long-term solution is to properly implement drag-drop operations for extension-views.
BUG=34061.
TEST=None.
Review URL: http://codereview.chromium.org/650059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/extensions/extension_host.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc index c3fdeae..4d930cf 100644 --- a/chrome/browser/extensions/extension_host.cc +++ b/chrome/browser/extensions/extension_host.cc @@ -544,6 +544,12 @@ void ExtensionHost::ShowContextMenu(const ContextMenuParams& params) { void ExtensionHost::StartDragging(const WebDropData& drop_data, WebDragOperationsMask operation_mask) { + // We're not going to do any drag & drop, but we have to tell the renderer the + // drag & drop ended, othewise the renderer thinks the drag operation is + // underway and mouse events won't work. See bug 34061. + // TODO(twiz) Implement drag & drop support for ExtensionHost instances. + // See feature issue 36288. + render_view_host()->DragSourceSystemDragEnded(); } void ExtensionHost::UpdateDragCursor(WebDragOperation operation) { |