[Linux] Dragging links from Firefox into other apps just stops working - XdndFinished is missing
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: tomaspollak, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
image/gif
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0
Steps to reproduce:
As the title says, when I drag a link from Firefox into other apps it works seems to work the first time. After dropping that first link, dragging just doesn't work. It seems to happen with apps that probably don't respond properly to X11 DND messages.
For instance I am able to drag several link into Sublime Text, but if I try dragging a link to my terminal emulator (ie. for fetching it via wget
) then I get the erratic behaviour.
Actual results:
Dragging stopped working after the first link was dropped.
Expected results:
I should be able to drag links to infinity and beyond! Chrome doesn't suffer from this problem by the way.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Copy & Paste and Drag & Drop' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 years ago
|
Reporter | ||
Comment 2•2 years ago
|
||
Comment 4•2 years ago
|
||
Thanks for the report! Which desktop environment, terminal (package) and Linux distribution are you using?
Please check if this is a regression:
$ pip3 install --upgrade mozregression
$ ~/.local/bin/mozregression --good 100 --bad 2022-12-22 -a https://example.org
Reporter | ||
Comment 6•2 years ago
|
||
I get the same behaviour using the version launched by mozregression
Reporter | ||
Comment 7•2 years ago
|
||
Ok just confirmed this happens when dropping stuff on windows that do not send the XdndFinished event back to the FIrefox window (source/originator of the DND event). Chrome somehow manages to handle this situation correctly, however Firefox keeps waiting for the XdndFinished event (which never arrives) and thus DND stops working altogether.
I found out about this because I'm building an app using the the Sokol libs, and apparently Sokol isn't sending the XdndFinished event. My fork of urxvt (which I added DND support to) also didn't because I based my implementation on what Sokol did. :)
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Can you try a different Gtk3 application like gtk3-widget-factory? I wonder if that's a bug in Gtk3 library or is that Firefox specific.
Thanks.
Comment 9•2 years ago
|
||
XdndDirect is finished here:
https://searchfox.org/mozilla-central/rev/0907529ff72c456ddb47839f5f7ba16291f28dce/widget/gtk/nsDragService.cpp#1442
so I wonder if we miss such call here.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•