Open Bug 1900514 Opened 1 year ago Updated 10 months ago

[Wayland] Firefox 126.0.1 on x86_64 Debian Testing Wayland not restoring window size on startup

Categories

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

Firefox 126
defect

Tracking

()

People

(Reporter: 52qtuqm9, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(5 files)

I am running the Mozilla deb distribution of Firefox 126.0.1 in Debian Testing on x86_64.

When I close my last Firefox window, xulstore.json in my profile is updated with the correct size that window had when it was closed.

However, when I relaunch firefox the window size is not restored, I instead seemingly get the default size every time.

The problem does note occur in Xorg, just Wayland.

The severity field is not set for this bug.
:enndeakin, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(enndeakin)
Component: Window Management → Widget: Gtk
Flags: needinfo?(enndeakin)
Summary: Firefox 126.0.1 on x86_64 Debian Testing Wayland not restoring window size on startup → [Wayland] Firefox 126.0.1 on x86_64 Debian Testing Wayland not restoring window size on startup

Can you run Firefox on terminal with MOZ_LOG="Widget:5" env variable and check how is the window size set? Does the resize request match values at xulstore.json ? Is scale factor involved here for instance?
Thanks.

Blocks: wayland
Flags: needinfo?(jik)
Priority: -- → P3
Attached file widget.log

I don't know what to look at in the log to answer your questions, but here it is for your perusal.

Flags: needinfo?(jik)

It seems that this issue only occurs with fractional scale enabled.
Also, this issue only occurs when the size to restore is larger than a threshold, and the threshold is related to the fractional scale factor. Actually, the threshold is the screen resolution divided the next integer that is no less than the fractional scale factor.
I attach 4 logs here with MOZ_LOG="Widget:5" environment variable. My screen's resolution is 2560x1600:

  1. When I set the scale to 1.65, firefox can restore window size with no more than 1280x800 (which is 2560x1600 divided by 2), if the size in xulstore.json is larger than 1280x800, firefox will first restore it, and then immediately resize to 1280x800 when it opens previous tabs.
  2. When I set the scale to 2.05, the threshold becomes 853x533 (which is approximate 2560x1600 divided by 3).

Also, enables the widget.wayland.fractional-scale.enabled option don't make any change.

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

Attachment

General

Created:
Updated:
Size: