Closed Bug 1946016 Opened 2 months ago Closed 2 months ago

The window of a detached tab is larger than the original

Categories

(Core :: Widget: Gtk, defect)

Firefox 137
Desktop
Linux
defect

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox135 --- unaffected
firefox136 --- unaffected
firefox137 --- fixed

People

(Reporter: tgnff242, Assigned: emilio)

References

(Regression)

Details

(Keywords: nightly-community, regression)

Attachments

(2 files)

Steps to reproduce:

  1. Open a window with two tabs.
  2. Drag one of the tabs and create a new window.

This was tested on KDE/X11.

Actual results:

The new window ends up being larger than the original.

Expected results:

Regressed by 581863.

https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=ff5432cc7e7c0d223330a7c8f09a89d797793f83&tochange=9efb94e533503b0cd1309c16d01d488a69941059

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

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

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)
Status: UNCONFIRMED → NEW
Ever confirmed: true

Let Gecko choose a suitable size. This seems to result in the desired
behavior (same as Ctrl+N). Tested GNOME and Kwin, X11 and Wayland.

The reason for the behavior change here is because outerWidth before
the regressing patch returned the inner, not the outer width. Combined
with the pre-existing behavior that decorations are added asynchronously
by the window manager, it just happened to conveniently cancel out that
bug, which is now fixed.

It's unclear we need this at all on macOS fwiw. IIRC Cmd+N does also the
same thing as Windows, so maybe we can remove this block altogether.

Separate patch tho, as I don't have a macOS build ready to test it this
very moment, but I think it should just work.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Just tested, doesn't change behavior.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dbbe4e0b455e Don't be explicit about window size when detaching tabs on Linux. r=dao,tabbrowser-reviewers
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4eb870204239 Remove macOS special case too. r=dao,tabbrowser-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: