[Wayland] Firefox 126.0.1 on x86_64 Debian Testing Wayland not restoring window size on startup
Categories
(Core :: Widget: Gtk, defect, P3)
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.
Comment 1•1 year ago
|
||
The severity field is not set for this bug.
:enndeakin, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
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.
Reporter | ||
Comment 3•1 year ago
|
||
I don't know what to look at in the log to answer your questions, but here it is for your perusal.
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:
- 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.
- 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.
Updated•1 year ago
|
Comment 11•10 months ago
|
||
It seems that commit 1cf05204 in gtk3
fixes this issue.
Reference:
https://gitlab.gnome.org/GNOME/gtk/-/issues/6939
https://gitlab.archlinux.org/archlinux/packaging/packages/gtk3/-/issues/8
Description
•