Bug 483645 - Drag and drop files to web browser only work for the first file
Summary: Drag and drop files to web browser only work for the first file
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.0.3
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
: 484336 485630 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-15 10:40 UTC by tommaso
Modified: 2024-05-23 19:13 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Video showing the bug (490.60 KB, video/webm)
2024-04-17 22:06 UTC, Dilam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tommaso 2024-03-15 10:40:49 UTC
SUMMARY
after updating to plasma 6 when drag and drop file in the browser to a new email of gmail, the first file is dropped the second file seems impossible to drop
this occur only  with  wayland session but with x11 session no prblem
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.drag and drop the first file in the browser to a new email of gmail 
2. drag and drop the second file
3. 

OBSERVED RESULT
impossible to drop the second file

EXPECTED RESULT
to drop all files 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
wayland session
Comment 1 tommaso 2024-03-15 11:00:00 UTC
kde plasma 6.0.2
kde frameworks 6.0.0
qt version 6.6.2
Comment 2 Patrick Silva 2024-03-15 15:23:29 UTC
Which browser is affected? Possibky duplicate of bug 482142
Comment 3 tommaso 2024-03-15 16:09:48 UTC
(In reply to Patrick Silva from comment #2)
> Which browser is affected? Possibky duplicate of bug 482142

firefox and chomium
Comment 4 Dilam 2024-04-17 17:32:56 UTC
I also have this bug to be able to drag and drop a first file, and not any other.

Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-27-generic (64-bit)
Graphics Platform: Wayland
Comment 5 Dilam 2024-04-17 17:35:47 UTC
This bug is for any webpage where you have a place to drop a file.
I am dragging from Dolphin to Firefox.
After I try to drag an other file, the cursor get a red cross on Dolphin (like a cursor saying "action impossible").
Comment 6 Dilam 2024-04-17 22:06:15 UTC
Created attachment 168628 [details]
Video showing the bug

A made a video showing how the bug looks like.
Maybe it would be clearer if I had refresh the web page (showing an empty import section after the first import). Dropping a file into the import section should replace the old file by the new one. In either case, with or without page refresh, the issue of consecutive imports is the same : I can't drop a new file in the web browser.
Comment 7 Dilam 2024-04-17 22:11:41 UTC
If Firefox is closed and reopened, the next drag of file will work (only one because of the bug).
This can be useful if you don't find a import button where you want to put a file (a import button that open a folder window always works contrary to a file's drag), or to reproduce the full bug sequence to make a video of it.
Comment 8 Robert-André Mauchin 2024-04-21 03:15:16 UTC
I can reproduce this with a brand-new Firefox profile. No extension or custom config. The first file work, then nothing.

Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.1.0
Qt Version: 6.6.2
Kernel Version: 6.8.4-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 9 Robert-André Mauchin 2024-04-21 03:46:39 UTC
Test:

[4069749.651] wl_data_device@22.data_offer(new id wl_data_offer@4278190083)
[4069749.672] wl_data_offer@4278190083.offer("text/uri-list")
[4069749.694] wl_data_offer@4278190083.offer("application/x-kde4-urilist")
[4069749.712] wl_data_offer@4278190083.offer("application/vnd.portal.filetransfer")
[4069749.733] wl_data_offer@4278190083.offer("application/x-kde-source-id")
[4069749.753] wl_data_offer@4278190083.source_actions(3)
[4069749.832] wl_data_device@22.enter(24609, wl_surface@51, 6.07812500, 342.87890625, wl_data_offer@4278190083)
[4069749.947]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069749.979]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069751.292] wl_data_offer@4278190083.action(2)
[4069751.379]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069751.417]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069756.359] wl_data_device@22.motion(306389649, 27.87500000, 342.87890625)
[4069756.452]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069756.477]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069763.096] wl_data_device@22.motion(306389656, 51.87500000, 342.87890625)
[4069763.150]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069763.165]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069770.038] wl_data_device@22.motion(306389663, 75.87500000, 344.87890625)
[4069770.089]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069770.103]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069779.325] wl_data_device@22.motion(306389672, 101.87500000, 344.87890625)
[4069779.407]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069779.425]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069785.237] wl_data_device@22.motion(306389678, 125.87500000, 344.87890625)
[4069785.336]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069785.352]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069794.160] wl_data_device@22.motion(306389687, 151.87500000, 342.87890625)
[4069794.242]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069794.262]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069801.186] wl_data_device@22.motion(306389694, 175.87500000, 342.87890625)
[4069801.276]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069801.292]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069808.183] wl_data_device@22.motion(306389701, 201.87500000, 340.87890625)
[4069808.260]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069808.273]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069816.174] wl_data_device@22.motion(306389709, 225.87500000, 338.87890625)
[4069816.256]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069816.273]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069824.177] wl_data_device@22.motion(306389717, 247.87500000, 338.87890625)
[4069824.261]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069824.278]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069831.171] wl_data_device@22.motion(306389724, 271.87500000, 336.87890625)
[4069831.252]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069831.295]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069839.149] wl_data_device@22.motion(306389732, 289.58203125, 334.91015625)
[4069839.221]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069839.234]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069854.252] wl_data_device@22.motion(306389747, 316.28125000, 333.03906250)
[4069854.324]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069854.345]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069861.214] wl_data_device@22.motion(306389754, 332.05078125, 333.03906250)
[4069861.316]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069861.351]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069868.592] wl_data_device@22.motion(306389761, 349.16015625, 333.03906250)
[4069868.683]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069868.705]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069876.160] wl_data_device@22.motion(306389769, 363.70703125, 333.03906250)
[4069876.256]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069876.280]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069883.168] wl_data_device@22.motion(306389776, 377.62109375, 333.03906250)
[4069883.251]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069883.279]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069890.152] wl_data_device@22.motion(306389783, 389.78906250, 333.03906250)
[4069890.231]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069890.253]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069899.161] wl_data_device@22.motion(306389792, 400.58593750, 334.58203125)
[4069899.254]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069899.280]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069906.204] wl_data_device@22.motion(306389799, 411.37109375, 334.58203125)
[4069906.291]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069906.314]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069914.162] wl_data_device@22.motion(306389807, 420.54296875, 336.10937500)
[4069914.258]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069914.294]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069920.159] wl_data_device@22.motion(306389813, 431.92578125, 337.73828125)
[4069920.240]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069920.262]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069929.178] wl_data_device@22.motion(306389822, 443.39843750, 339.37500000)
[4069929.263]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069929.284]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069936.148] wl_data_device@22.motion(306389829, 452.22265625, 340.84765625)
[4069936.228]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069936.250]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069944.159] wl_data_device@22.motion(306389837, 460.96875000, 342.30468750)
[4069944.251]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069944.277]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069951.148] wl_data_device@22.motion(306389844, 471.66796875, 342.30468750)
[4069951.226]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069951.248]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069959.385] wl_data_device@22.motion(306389852, 482.83593750, 343.89843750)
[4069959.478]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069959.503]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069965.614] wl_data_device@22.motion(306389858, 497.02734375, 343.89843750)
[4069965.672]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069965.692]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069973.226] wl_data_device@22.motion(306389866, 511.71875000, 343.89843750)
[4069973.312]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069973.333]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069981.149] wl_data_device@22.motion(306389874, 532.11718750, 343.89843750)
[4069981.232]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069981.254]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069989.149] wl_data_device@22.motion(306389882, 552.00781250, 343.89843750)
[4069989.244]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069989.270]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4069996.141] wl_data_device@22.motion(306389889, 573.89062500, 343.89843750)
[4069996.221]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4069996.244]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070003.193] wl_data_device@22.motion(306389896, 601.89062500, 343.89843750)
[4070003.271]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070003.293]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070011.168] wl_data_device@22.motion(306389904, 623.89062500, 343.89843750)
[4070011.260]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070011.285]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070019.155] wl_data_device@22.motion(306389912, 657.89062500, 343.89843750)
[4070019.247]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070019.307]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070025.199] wl_data_device@22.motion(306389918, 683.89062500, 341.89843750)
[4070025.266]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070025.293]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070034.236] wl_data_device@22.motion(306389927, 709.89062500, 339.89843750)
[4070034.325]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070034.351]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070041.228] wl_data_device@22.motion(306389934, 731.89062500, 337.89843750)
[4070041.307]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070041.328]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070049.167] wl_data_device@22.motion(306389942, 747.35546875, 335.96484375)
[4070049.266]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070049.294]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070056.156] wl_data_device@22.motion(306389949, 754.92968750, 334.45312500)
[4070056.248]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070056.269]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070063.165] wl_data_device@22.motion(306389956, 758.55468750, 333.24218750)
[4070063.245]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070063.266]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070109.519] wl_data_device@22.motion(306390001, 759.48437500, 333.24218750)
[4070109.652]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070109.682]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070116.278] wl_data_device@22.motion(306390009, 759.48437500, 332.32421875)
[4070116.369]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070116.389]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070140.761] wl_data_device@22.motion(306390031, 761.27734375, 329.36328125)
[4070140.860] wl_data_device@22.drop()
[4070140.881] wl_pointer@18.enter(24621, wl_surface@51, 761.27734375, 329.36328125)
[4070140.900]  -> wl_pointer@18.set_cursor(24621, wl_surface@23, 16, 4)
[4070140.916]  -> wl_surface@23.attach(wl_buffer@75, 0, 0)
[4070140.929]  -> wl_surface@23.set_buffer_scale(2)
[4070140.942]  -> wl_surface@23.damage(0, 0, 32, 32)
[4070140.955]  -> wl_surface@23.commit()
[4070140.969] wl_pointer@18.frame()
[4070140.996] wl_pointer@18.frame()
[4070141.059]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070141.091]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070141.884]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070141.916]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070142.426]  -> wl_data_offer@4278190083.set_actions(7, 2)
[4070142.453]  -> wl_data_offer@4278190083.accept(24609, "application/x-kde-source-id")
[4070142.465]  -> wl_data_offer@4278190083.finish()
[4070142.476]  -> wl_data_offer@4278190083.destroy()


This guy has done tests for Chromium and noticed bugs: https://notes.nickdiego.dev/chromium/wayland-events-during-drag#KWin
Comment 10 Robert-André Mauchin 2024-04-21 03:53:19 UTC
This is the same bug because this ford work: https://bugs.kde.org/show_bug.cgi?id=482142#c13

>  if you drag a file into the window again, without dropping it , then mouse can be used again.
Comment 11 mydarkstar 2024-04-22 08:51:26 UTC
*** Bug 485630 has been marked as a duplicate of this bug. ***
Comment 12 Matija 2024-05-16 21:24:09 UTC
*** Bug 484336 has been marked as a duplicate of this bug. ***
Comment 13 Nate Graham 2024-05-16 22:38:15 UTC
Cannot reproduce today when I drag two image files in a row from Dolphin to https://imgur.com/upload in Firefox 125.0.3 (distro package, native Wayland mode).

When I do the same thing in Chromium 124.0.6367.155 (distro package, both native Wayland and XWayland mode), it fails to drop even the first time. This feels like a different bug, maybe one in the browser itself.

It's possible the original bug got fixed today by the fix for Bug 450053. Can anyone able to test a patch or build from git master give that a try?
Comment 14 Nate Graham 2024-05-16 22:39:25 UTC
So sorry, that was the wrong bug number. The correct one is Bug 482142.
Comment 15 Michał Dybczak 2024-05-22 12:31:15 UTC
I also have the impression that an update made some difference. I had once an issue, when dragging didn't work at all and had to reboot the system, but afterward, it seems to work OK and didn't have a need to repeat it.

A bit more of time is needed to observe it, so at this point, I can't say for sure it is fixed, but there is a good chance it is.
Comment 16 Matija 2024-05-23 08:46:04 UTC
KDE Neon
KDE Frameworks 6.2.0
KDE Plasma 6.0.4
QT 6.7.0

After the updates, restarted the system.
I'm testing on https://www.dropzone.dev and it still fails.
Comment 17 Nate Graham 2024-05-23 19:13:54 UTC
You need to have a build from git master, not released packages. So Neon Unstable, not Neon User.