Firefox 122.0 lacks drag-and-drop support under Wayland on Linux
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: jtherrmann1, Unassigned)
References
(Blocks 2 open bugs)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
Steps to reproduce:
I'm running Firefox 122.0 (64-bit) on Debian GNU/Linux 12 (bookworm). I'm using GNOME 43.9 under Wayland. I installed Firefox directly from the Mozilla builds, as described at the Debian Wiki [1] and Mozilla.org [2]. I unpacked the tarball in my home directory and followed all of the installation steps as a normal user.
If I launch Chromium (installed from the Debian APT repos) and Firefox, navigate to any webpage within Chromium, and then drag a URL link from Chromium to Firefox, nothing happens.
Also, if I select multiple tabs within Firefox (using Shift+click) and then attempt to drag them away from the tab bar to create a new window, nothing happens. (However, dragging a single tab to create a new window works as expected.)
If I switch to GNOME on Xorg (as opposed to Wayland), the two drag-and-drop actions described above both work as expected.
[1] https://wiki.debian.org/Firefox#From_Mozilla_binaries
[2] https://support.mozilla.org/en-US/kb/install-firefox-linux#w_local-firefox-installation-in-users-account
Actual results:
Under Wayland, nothing happens when dragging links from Chromium to Firefox, or when dragging multiple Firefox tabs away from the tab bar.
Under Xorg, dragging a link from Chromium to Firefox opens the URL in Firefox, and dragging multiple Firefox tabs away from the tab bar creates a new Firefox window.
Expected results:
The drag-and-drop actions should work in Wayland.
Comment 1•1 year ago
|
||
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.
| Reporter | ||
Comment 2•1 year ago
|
||
I observe the exact same problems with the version of Firefox installed from Flathub: drag-and-drop works under Xorg, but not under Wayland.
| Reporter | ||
Comment 3•1 year ago
|
||
However, drag-and-drop actions do appear to work correctly with Firefox ESR (installed from Debian APT repos) under Wayland. So the bug was apparently introduced since Firefox ESR.
Comment 4•1 year ago
|
||
Which exact Wayland version?
| Reporter | ||
Comment 5•1 year ago
|
||
(In reply to Andre Klapper from comment #4)
Which exact Wayland version?
I'm new to Wayland, but my understanding is that GNOME uses Mutter as its Wayland compositor. My version of the mutter package is 43.8-0+deb12u1.
Also, I tested this behavior on the Sway window manager, which uses Wayland, and observed the same behavior as GNOME on Wayland: drag-and-drop does not work with Firefox 122, but does work with Firefox ESR. Sway uses wlroots as its Wayland compositor. My version of the sway package is 1.7-6 and my version of the libwlroots10 package is 0.15.1-6.
Additionally, I notice that I have packages called libwayland-server0 and libwayland-client0 installed, both at version 1.21.0-1.
Updated•1 year ago
|
Comment 6•1 year ago
|
||
Can you create screencast how it works under X11?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Collect_information_for_a_bug_report
Thanks!
| Reporter | ||
Comment 7•1 year ago
|
||
Dragging multiple tabs to new window: https://imgur.com/a/9RYkU8y
Dragging URL from Chromium to Firefox: https://imgur.com/a/iRX7nQQ
| Reporter | ||
Comment 8•1 year ago
|
||
My current workaround is to run Firefox with MOZ_ENABLE_WAYLAND=0 firefox.
| Reporter | ||
Comment 9•1 year ago
|
||
Nevermind, unfortunately using MOZ_ENABLE_WAYLAND=0 under Wayland causes other issues, such as the mouse cursor not changing shape when hovering over clickable elements.
Description
•