Closed Bug 1722700 Opened 3 years ago Closed 3 years ago

[Wayland] Drag and drop alternates between working and not working when switching application focus


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

Firefox 92



92 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox90 --- unaffected
firefox91 --- unaffected
firefox92 --- fixed


(Reporter: ke5trel, Assigned: stransky)


(Blocks 1 open bug, Regression)


(Keywords: regression)


(1 file)


  1. Start with MOZ_ENABLE_WAYLAND=1 on Ubuntu 21.04.
  2. Attempt to drag a tab to a different position.
  3. Alt+Tab to a different application, then back again.
  4. Attempt to drag a tab to a different position.
  5. Repeat.

Dragging does not work alternately when app focus is changed.

Does not occur with x11/xwayland.

Regression window:

Regressed by Bug 1717476.

For me it doesn't work at all after bug 1717476, switching apps doesn't change anything, but I'm on Arch Linux. No idea what makes the difference or if I'm too stupid to do it correctly.

Also customizing the toolbar via drag-and-drop doesn't work after bug 1717476: I can drag an icon, but I can't drop it to another position in the toolbar or remove it from the toolbar, and I can't add an icon either. Martin, do you want me to file another bug for that or can both issues be dealt with in this bug?

Flags: needinfo?(stransky)

I'll look at it this week.

Guys, which compositor / DE do you run?

Flags: needinfo?(stransky)

I can reproduce the D&D failure on tab strip.

I'm running Gnome Shell 40.3 with Mutter 40.3.

Assignee: nobody → stransky

Merge WaylandDragAndDropDataOffer and DataOffer classes to avoid potential timing issue when Drag&Drop action is set before WaylandDragAndDropDataOffer is created.

Priority: -- → P1
Pushed by
[Wayland] Merge WaylandDragAndDropDataOffer and DataOffer classes, r=rmader
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.