[KDE/Wayland] After dragging links onto a tab, it randomly gains focus
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: chengyuhui1, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Steps to reproduce:
Environment: Manjaro, KDE Plasma, Wayland (about:support says wayland).
- Drag a link or selected text onto the tab bar, creating a new tab or reusing existing ones
Actual results:
The affected tab will regain focus when I:
a. Switch to another application and back to FF
b. Copy anything in FF (context menu or Ctrl-C)
c. Initiate drag-and-drop in any tab
Sometimes the drag-and-drop indicator will remain on the tab bar, and if I closed tabs so that the indicator is on top of a certain tab, it will gain focus when I do the actions described above.
Similar bug with almost the same setup is described in https://www.reddit.com/r/firefox/comments/y69wwj/strange_tabswitching_when_switching_focus_or/
Expected results:
Other tabs should not gain focus when I switch windows.
![]() |
||
Updated•1 years ago
|
Comment 1•1 years ago
|
||
Can you create a screencast of it please?
Thanks.
Reporter | ||
Comment 2•1 years ago
|
||
Screencast attached, note that I never manually switched tabs in this video.
Reporter | ||
Comment 3•1 years ago
|
||
The behavior of the dragging indicator (as shown in screenshot) is more random, it shows up or disappears randomly when FF loses and re-gains focus, and sometimes even snaps to the nearest gap when I close tabs so that it is no longer positioned between two tabs. At least I think that it should not be there.
I was unable to capture a screencast as for now because it would disappear the moment I start recording and switch back to FF.
Reporter | ||
Comment 4•1 years ago
|
||
This screencast shows how the indicator usually behaves: re-gaining focus and I'm switched to the tab under it.
Reporter | ||
Comment 5•1 years ago
|
||
mozregression shows that even 2021-07-01 has this bug (older versions crash on my system). Both of my systems (one Manjaro, one vanilla Arch) exhibit this behavior (along with that Redditor), and it is not related to extensions since mozregression creates an empty profile.
Reporter | ||
Comment 6•1 years ago
|
||
Another report on Reddit: https://www.reddit.com/r/firefox/comments/126rtip/copyingcutting_text_switches_to_another_tab/
It seems to be a KDE-specific thing and related to versions around Plasma 5.27.3, but I currently have no time to verify that...
Comment 7•1 year ago
|
||
Looks like a dupe of Bug 1875031.
Reporter | ||
Comment 8•1 year ago
|
||
Can confirm that the build 2024-03-28 19:25:51.721000, revision 55aaac63 is still bad after the fix of Bug 1875031.
Reporter | ||
Comment 9•1 year ago
|
||
Drop events are still firing upon Ctrl-C in logs.
Updated•1 year ago
|
Comment 10•1 year ago
|
||
I can repro with the STR from comment 0.
Comment 11•1 year ago
|
||
It's easier to just drag from urlbar to tab bar. Ctrl+C will re-show the drop indicator.
Reporter | ||
Comment 12•1 year ago
|
||
As is analyzed in Bug 1875031, https://invent.kde.org/frameworks/kguiaddons/-/blob/master/src/systemclipboard/waylandclipboard.cpp?ref_type=heads#L589 is probably what causing this (both why GTK recognizes this as a drop and KDE sends these events is a puzzle to me).
Comment 13•1 year ago
|
||
It appears that Sublime Text is also affected by odd drag-drop issues, only on KDE + Wayland: https://github.com/sublimehq/sublime_text/issues/4077
Comment 14•1 year ago
|
||
I can confirm that this bug and bug 1875031 has been fixed in KDE Plasma 6.0.4 Wayland released on 2024.4.16
See also: https://kde.org/announcements/plasma/6/6.0.4/
Reporter | ||
Comment 15•1 year ago
|
||
I've also noticed that this bug is gone after my recent update to KWin 6.0.4 on Manjaro. Should we mark this as fixed?
Comment 16•1 year ago
|
||
Yes
Description
•