Closed Bug 1791431 Opened 3 years ago Closed 2 months ago

[KDE] Drag and drop from downloads doesn't work in Wayland

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 104
defect

Tracking

()

RESOLVED MOVED

People

(Reporter: gudvinr+bugzilla, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0

Steps to reproduce:

  1. Download some file
  2. Open website that allows uploading file using drag&drop
  3. Try downloaded file

Actual results:

You can't drag file, it just doesn't get grabbed.

Expected results:

You grab file and drag it onto upload field.

This doesn't happen on X11 session.

My system info:
Operating System: Arch Linux
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.9-zen1-1-zen (64-bit)
Graphics Platform: Wayland

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Do you still see it?
Thanks.

Blocks: wayland, linuxdad
Flags: needinfo?(gudvinr)
Priority: -- → P3

I can confirm the issue still persists (Firefox 113, Arch Linux, KDE Plasma 5.27.5)

Actually I was unable to reproduce the issue with Gnome 44, so it may be Plasma-specific issue

Summary: Drag and drop from downloads doesn't work in Wayland → [KDE] Drag and drop from downloads doesn't work in Wayland

+1

Firefox 120
Fedora 39 with Plasma 5.27.9

The thing that's interesting about this bug is that it presents as the drag not even starting, as if the item is not draggable at all. The cursor doesn't change, and there's nothing that appears next to the cursor either, implying that it probably isn't detected as a drag?

This feels weird to me to be a kwin only issue, but it's obviously possible.

Idk if I'm wrong but before I think it was working with wayland backend too.
I mean, before it was working and now, not. For me it's like a few months ago that stop working ( And I was using wayland backend since years ago). I was not using much the pc so I was like " it will be repaired at somepoint by mozilla" but I really feel that the people doesn't have noticed at all or maybe it's nos useful for them.

On the other hand, for me it's very usefull because I usually upload attachments to gmail with grabbing from firefox the latest download or something. And in the latest months I'm starting using thunderbird.

For me it's the same, you can't grab anything in the download list, something that in x11 it's working correctly or xwayland too(with some other errors I have to say)

(In reply to tobiaspotocek from comment #5)

+1

Firefox 120
Fedora 39 with Plasma 5.27.9

may be it's better to put a vote here in the bug than to say +1..

Can you please test latest nightly?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_Nightly_binaries

If you can reproduce it with latest nightly please attach the log.txt file.

MOZ_LOG="WidgetDrag:5" firefox > log.txt 2>&1

Thanks.

Flags: needinfo?(albertogomezmarin)
Attached file log.txt

Here's my log.txt of the bug using latest Nightly with MOZ_LOG="WidgetDrag:5" firefox > log.txt 2>&1 (with KDE Plasma 6.0.5)

(In reply to Iiro from comment #10)

Created attachment 9404530 [details]
log.txt

Here's my log.txt of the bug using latest Nightly with MOZ_LOG="WidgetDrag:5" firefox > log.txt 2>&1 (with KDE Plasma 6.0.5)

Could you reproduced the problem? Or may be it's fixed?

Do you need, Martin, my log too?

Flags: needinfo?(albertogomezmarin) → needinfo?(iiro.poutiainen)

(In reply to Iiro from comment #10)

Created attachment 9404530 [details]
log.txt

Here's my log.txt of the bug using latest Nightly with MOZ_LOG="WidgetDrag:5" firefox > log.txt 2>&1 (with KDE Plasma 6.0.5)

Looks like D&D operation is not accepted by target. Can you create a screencast how it looks like?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Create_screenshot/screencast_for_a_bug_report

Thanks.

(In reply to albertogomezmarin from comment #11)

Do you need, Martin, my log too?

Only if you can reproduce it.
Thans.

Attached video screencast.mp4

If it was unclear, I was able to reproduce the issue. Here's a video displaying the issue. It's looks like it does not react to click/drag at all.

Flags: needinfo?(iiro.poutiainen)
Attached file log.txt
Flags: needinfo?(stransky)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #13)

(In reply to albertogomezmarin from comment #11)

Do you need, Martin, my log too?

Only if you can reproduce it.
Thans.

I can reproduce on nightly. You have here attached the log file. I hope you to see something. Thanks in advance!

Flags: needinfo?(stransky)

Thanks. I tested that under Gnome and it seems to be working. So may be KDE specific...I see we're not getting D&D events according to the log. Will check that.

Flags: needinfo?(stransky)

Tested right now under KDE/latest nightly/Fedora 40 and it works. I downloaded wiki image https://en.wikipedia.org/wiki/Main_Page#/media/File:John_D._Whitney.jpg
Can you retest latest nightly please?
Thanks.

Flags: needinfo?(stransky) → needinfo?(albertogomezmarin)

Doesn't work for me on Firefox nightly/KDE wayland/Arch Linux dragging from the menu shown in the image I've attached. I do know it worked in there when I used X11, so it's probably a Wayland issue.

For the record it does work in the popup menu that shows if I click "show all downloads".

I cant test right now on nightly but in stable is happening yet. If you want to test it I think the problem might be relationed to arch based distro so with a live usb of manjaro arch endeavour... You'll be good to debug I think. I have not tested on another distros yet

Flags: needinfo?(albertogomezmarin)

I also seem to be facing this issue, I tested on both nightly and stable, nothing seems to happen when I try to drag a file from the drop down menu.

Fedora 40/KDE Wayland

I'm facing this problem with Firefox 128.02, on KDE Plasma 6.1.3 and X11 session (not Wayland), can't drag and drop anything from anywhere into a drop zone from any website.

Can you folks try Gnome, just for the testing purpose? I wonder if that's KDE related or if that's a Firefox bug. I can't reproduce on KDE/Gnome, both Wayland (Fedora 40). I didn't test X11. Also would be great to test on Wayland / X11 to check if that's X11 only or Wayland only.

If I remember correctly I had tested on x11. The bug was gone on x11.(I mean, not bug in x11, only on Wayland) But I have not tested on gnome already, I think it's not needed to test it because the problem with Wayland on KDE appears with vanilla endeavour os and manjaro Waylands. No need to do anything more... If I can't test in the next days pls, somebody can do it for us?
All with intel and AMD GPU if it's needed to know.

And somebody with gnome has tested for me and there was no bug at all. Feel free to test with vanilla manjaro or endeavour...

(In reply to Martin Stránský [:stransky] (ni? me) from comment #23)

Can you folks try Gnome, just for the testing purpose? I wonder if that's KDE related or if that's a Firefox bug. I can't reproduce on KDE/Gnome, both Wayland (Fedora 40). I didn't test X11. Also would be great to test on Wayland / X11 to check if that's X11 only or Wayland only.

I have tested it on XFCE (Ubuntu 22.04), drag and drop from file manager to Firefox, works. But, in KDE where it doesn't, drag and drop from file manager (Dolphin) to non-Mozilla based browsers (Falkon, Chrome) works.

(In reply to leoperbo from comment #25)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #23)

Can you folks try Gnome, just for the testing purpose? I wonder if that's KDE related or if that's a Firefox bug. I can't reproduce on KDE/Gnome, both Wayland (Fedora 40). I didn't test X11. Also would be great to test on Wayland / X11 to check if that's X11 only or Wayland only.

I have tested it on XFCE (Ubuntu 22.04), drag and drop from file manager to Firefox, works. But, in KDE where it doesn't, drag and drop from file manager (Dolphin) to non-Mozilla based browsers (Falkon, Chrome) works.

Another weird fact: in KDE, drag and drop from file manager (Dolphin) to Mozilla Thunderbird's composer window works! (Thunderbird 115.13).

All my tests has been realized from X11.

(In reply to leoperbo from comment #26)

All my tests has been realized from X11.

Then it has nothing to do with this issue then

I have tested it on XFCE (Ubuntu 22.04), drag and drop from file manager to Firefox, works. But, in KDE where it doesn't, drag and drop from file manager (Dolphin) to non-Mozilla based browsers (Falkon, Chrome) works.

You probably need to fill another issue because this surely works both on Wayland and especially on X11.

As for this issue, D&D still doesn't work for me from download dropdown menu in Plasma/Wayland but works in Plasma/X11

Both in 128.0.3 and 131.0a1 (20240805215935)

Operating System: Arch Linux
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX Vega M GL Graphics

Flags: needinfo?(gudvinr+bugzilla)

I'm having this bug too since almost a year. KDE Plasma 6.3, Platform Wayland, Firefox 128.7esr on Debian.

With 136.0 doesn't work for me either.

Doesn't work in 137.0b2 either (Arch Linux, KDE Plasma 6.3.2, Wayland)

Flags: needinfo?(stransky)

Bug 1938101 has a patch for delayed data transfer so let's re-test when it hits latest nightly. Will look at this one after it.

I can reproduce. It works if the panel overflows the window somehow (either because of the window being thin, or because the downloads icon being all the way to the left of the toolbar).

So probably something about us using move-to-rect to position the panel or something vs just positioning it directly?

Status: UNCONFIRMED → NEW
Ever confirmed: true

More interestingly, it works on the bookmarks popup (even when it's not positioned by move-to-rect), wat.

Marco, do you know what's different between the dragging code for bookmarks popup and downloads?

Flags: needinfo?(mak)

The difference between bookmarks popup and drag popup is this PopupType check...

And if I comment that out then the bookmarks popup breaks too.

Flags: needinfo?(mak)

This is a KDE bug. It should be fixed in 6.4

Moved to https://bugs.kde.org/show_bug.cgi?id=497031. Thanks for the fix Vlad!

Status: NEW → RESOLVED
Closed: 2 months ago
Flags: needinfo?(stransky)
Resolution: --- → MOVED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: