Open Bug 1982316 Opened 2 months ago Updated 1 month ago

[wayland] Dragging active tab a small amount consecutively triggers double-click action that creates a new tab at end of vertical tabs list

Categories

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

Firefox 138
defect

Tracking

()

Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox-esr140 --- wontfix
firefox141 --- wontfix
firefox142 --- wontfix
firefox143 --- wontfix
firefox144 --- wontfix

People

(Reporter: ke5trel, Unassigned)

References

(Blocks 3 open bugs, Regression, )

Details

(Keywords: regression)

Attachments

(3 files)

STR:

  1. Enable vertical tabs on latest Nightly 143.0a1 (Ubuntu 25.04, Wayland, GNOME).
  2. Drag the active tab a small amount in any direction, not enough for the tab to move.
  3. Repeat rapidly several times.

Expected:
Tab stays active and no new tabs are created.

Actual:
Tab sometimes loses active state as a new tab is created at the end of the tab list.

Does not happen when dragging inactive tabs.

XWayland, horizontal tabs and Windows 11 unaffected.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=68d1a44fdef33f1256471aa630bebf080599dd4e&tochange=fdc1c87c70f2a9e1eea62291478ba1e3a4a5906f

Possibly regressed by Bug 1953193.

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

For more information, please visit BugBot documentation.

Flags: needinfo?(dao+bmo)

Yes, we need to handle that somehow. Right now we mark the drag as successful. We can try to flip it to failed but that leads to Bug 1955112.
I don't think we have much choice until root cause https://gitlab.gnome.org/GNOME/mutter/-/issues/740 is fixed.

Flags: needinfo?(dao+bmo)
Priority: -- → P3

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

Yes, we need to handle that somehow. Right now we mark the drag as successful.

A successful drag would not create a new tab though, the dragged tab is not being copied.

Double-clicking the empty tab bar creates a new tab and this bug only happens when the drag operations are done in quick succession like a double-click so it seems like the click events are going to the wrong place.

Summary: [wayland] Dragging active tab a small amount sometimes creates new tab at end of vertical tabs list → [wayland] Dragging active tab a small amount consecutively triggers double-click action that creates a new tab at end of vertical tabs list
Severity: -- → S3

Hi Martin, should we just send a dragend if receiving a button down event during a D&D session?

Flags: needinfo?(stransky)

Bug 1979719 has latest iteration of the Wayland workaround - we terminate D&D if we don't get any drag motion event (so we don't receive drag end too).

We see this bug because we terminate the failed D&D as successful:
https://searchfox.org/mozilla-central/rev/270c20e4b063d80ce71f029b4adc4ba03a12edc0/widget/gtk/nsWindow.cpp#7521

We used 'drag failed' before but that caused rather critical Bug 1955112.
We may try to flip to 'drag failed' for Nightly only to see how it works after Bug 1979719 changes but we definitely should not release such change before testing.

Flags: needinfo?(stransky)

Kestrel, does it really affects Firefox 142? I think it's a regression from Bug 1979719.
Thanks.

Flags: needinfo?(ke5trel)

Filed the nightly-only change as Bug 1983750.

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

does it really affects Firefox 142?

Yes, it goes back to version 138.

Flags: needinfo?(ke5trel)

Okay, let's retest when Bug 1983750 lands.

Flags: needinfo?(stransky)

Set release status flags based on info from the regressing bug 1953193

Kestrel, can you please check latest nightly with Bug 1983750 fixed?
Thanks.

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

Problem still happens with more breakage. The dragged tab stops responding to clicks and stays floating in position when scrolling the list. A blank space appears at the end of the list. Dragging a different tab corrects the list state.

Flags: needinfo?(ke5trel)
Regressed by: 1983750

Okay, so Bug 1983750 is backed out and we have "a new tab" behavior back.

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

Attachment

General

Creator:
Created:
Updated:
Size: