Open Bug 1866770 Opened 2 years ago Updated 9 days ago

[KDE] KWin/Wayland: It's not possible to drag&drop bookmarks into subfolders

Categories

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

Firefox 122
Desktop
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: tgnff242, Unassigned)

References

(Blocks 3 open bugs, Regression)

Details

(Keywords: nightly-community, regression)

Attachments

(9 files)

Attached image bookmarks2.png

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

Steps to reproduce:

On KWin/Wayland.

0.Make sure you have a bookmark folder a few levels deep.

  1. Try to move a bookmark to a subfolder.

Actual results:

The menu closes making it impossible to d&d the bookmark to the intended subfolder.

See the picture (I can't capture the screen on Wayland). I have two profiles that close at a different level; I'm not sure why. In one, the menu closes when the cursor moves from the menu of "Folder" to the menu of "Subfolder1", and the other when moving from "Subfolder1" to "Subfolder1,1".

This is not Bug 419911, I moved the cursor carefully between the submenus.

Expected results:

This is not a recent regression, so I can't find the exact commit that introduced it. Guessing from the mozregression result, the culprit is probably Bug 1750102, so I'll, tentatively, mark it as the regressor.

https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c3cfc0310a9cbaf8ba01594332b14e926976def6&tochange=490469b53dbe1ca42584dade11bcd1b4e573fe7a

Has STR: --- → yes
OS: Unspecified → Linux
Regressed by: 1750102
Hardware: Unspecified → Desktop

:emilio, since you are the author of the regressor, bug 1750102, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

This is a long standing bug and we don't have a perfect fix for it. Please try Gnome if it behaves better.
Thanks.

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

Also can you create a screencast of the issue?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Collect_information_for_a_bug_report
To make sure we both mean the same behavior.
Thanks.

Attached video bookmarks.mp4
Flags: needinfo?(tgnff242)
Attached file glxinfo.txt
Attached file eglinfo.txt
Attached file about_support.txt
Attached file vainfo_??.txt

Gnome is not affected, and KWin is only affected on Wayland. I haven't tested other DEs/WMs.

I see, Thanks. Looks like KWin sends leave event so the popup is closed. We've landed series of patches for D&D on bookmarks but that was not tested on KDE. Added to KDE and D&D tracker for further fix.

Summary: KWin/Wayland: It's not possible to drag&drop bookmarks into subfolders → [KDE] KWin/Wayland: It's not possible to drag&drop bookmarks into subfolders
Priority: P3 → P2
Flags: needinfo?(stransky)

Hm, I tested that on Fedora 39 / KDE and it works as expected. I use kwin-wayland-5.27.10. Which version do you run?

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

Same version on archlinux. I still can reproduce it.

Flags: needinfo?(tgnff242)

Interesting. Can you please try latest nightly under Wayland?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_binaries
Thanks.

Flags: needinfo?(tgnff242)

I see that with Firefox 121 / default profile now but I don't see it with latest nightly + clean profile. I wonder if it's related to theming or so.

It was Nightly I tested before; still reproducible.

I, too, see some variation between profiles. In one profile I can go one level in, in another one two levels in. I can reproduce it in clean profiles, although not as consistently.

Flags: needinfo?(tgnff242)

Okay. Please run on terminal with MOZ_LOG="Widget:5 WidgetPopup:5" env variable, reproduce it once and attach the log here. like:

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

and attach log.txt here.
Thanks!

Flags: needinfo?(tgnff242)

I'm attaching the logs from both an old and a new profile.

Flags: needinfo?(tgnff242)

Thanks. Can you try to set browser.chrome.toolbar_tips to false at about:config and restart browser and retest?

Flags: needinfo?(tgnff242)

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

Thanks. Can you try to set browser.chrome.toolbar_tips to false at about:config and restart browser and retest?

Sorry, I mean ui.popup.disable_autohide pref. That's the one which controls rollups.
Thanks.

Still reproducible with ui.popup.disable_autohide=true.

Flags: needinfo?(tgnff242)

I don't see anything wrong in the log...I wonder if frame popup manager closes the popup from some reason we don't see. My guess it that we see Bug 419911 but we have wrong popup offsets (perhaps caused by CSD popup decorations?) so frame manager has wrong coordinates and thinks we're out of the window.

Attached file bookmarks-test.html

I tried to create a folder structure that would reproduce the issue always when created in new profiles, since it seems it's somewhat depended on it. I was able to reproduce the issue reliably by importing the attached file (exported bookmarks to HTML) to new profiles.

Some notes before I forget them.

  1. This seems to be highly depended on the size of the width of the menu, or in other words a) on the bookmark/folder names and b) the font in use. It will happen no matter what, but depending on those you might be able to reach a few more levels deep into the subfolders.

  2. In new versions (of KDE) the cursor visually changes to the "not-allowed" icon between the menus before they close.

  3. Setting widget.wayland.use-move-to-rect to false allows the menus to stay open and you can drag the bookmark along. The menus can go outside screen boundaries when turning off this pref, of course, so this isn't a workaround.

See Also: → 1931449

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

I don't see anything wrong in the log...I wonder if frame popup manager closes the popup from some reason we don't see. My guess it that we see Bug 419911 but we have wrong popup offsets (perhaps caused by CSD popup decorations?) so frame manager has wrong coordinates and thinks we're out of the window.

I have the same issue. Is there any extra debugging information that may be helpful?

It should be noted, that Bug 1975969 made the issue a little better, thus making reproducing the bug a little harder, but it's still here.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: