Bug 204281 - [GTK] Dragging files to a WebView fails unless dragged outside of all windows first
Summary: [GTK] Dragging files to a WebView fails unless dragged outside of all windows...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-16 21:33 PST by Michael Gratton
Modified: 2019-12-16 02:31 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gratton 2019-11-16 21:33:26 PST
Files dragged directly to a WebKitWebView are not accepted for dropping unless the cursor moves outside all application windows first, then to the window containing the WebView.

We're just landing support for drag and drop images for the composer in Geary and I noticed that I can't drag an image from a Nautilus or EoG window to the composer if they are adjoining, rather I need to drag the cursor to the gnome-shell header or over a clear part of the desktop background first, then the cursor changes to indicate drop is possible when dragged over the composer's WebView.

To reproduce:

1. Open a Epiphany window half-secreened on one side, Nautilus window half screened on the other
2. Drag and drop a file (e.g. an image) from the Nautilus window directly to the to Epiphany window

Note the image is not loaded in the Ephy window, which is unexpected.

3. Drag the image via the gnome shell header bar then drop it on Epiphany

Note the image is loaded in the Ephy window as expected.

 * WebKitGTK 2.26.2
 * Wayland session (not tested under X11)
Comment 1 Chris Heywood 2019-11-17 01:41:35 PST
This appears to be Wayland specific. Unable to reproduce under X11, confirmed with Wayland. WebKitGTK 2.26.1.
Comment 2 Carlos Garcia Campos 2019-12-16 02:31:32 PST
I can't reproduce this.