Description of problem: Firefox wayland build always starts in a smallish window. It can be maximized but next time it opens it will be in the same small window. You can edit the xulstore.json file to set the max size for your monitor, but if you don't leave firefox in that exact position then it will reset to the size to the same smallish window. It's a minor problem, but incredibly annoying to have to adjust Firefox every time it opens. Version-Release number of selected component (if applicable): F32 Firefox 74.0.5 How reproducible: 100% Steps to Reproduce: 1. Update to F32 (I suspect it would happen on a fresh install too, but I'm not sure and have not tested) 2. Open Firefox, it will not be maximized 3. Maximize Firefox 4. Close Firefox 5. Open Firefox and it won't be maximized again Actual results: Firefox resets its size and position after you close it Expected results: Firefox should remember its window size and position. This has been the default behavior on every version of Fedora in the past and on all other operating systems. Additional info: I know applications cant tell wayland, start in x,y coordinates. However they should be able to remember window size and if it is maximized or not because that is how Nautilus behaves. This issue also effected Firefox on my Windows machine because I have Firefox Sync enabled and I had to fix that following the process in this reddit thread: https://www.reddit.com/r/Fedora/comments/fkvns8/firefox_not_remembering_window_position_after_f32/
Please check this build: https://koji.fedoraproject.org/koji/buildinfo?buildID=1478931 You may also need a new nss for it.
I installed firefox 74.0.11 as requested and the issue persists. However I did discover something new. If you change the size of the window and close it while not maximized, xulstore.json will show that window size and sizemode will be set to normal. When xulstore.json is in this state firefox opens correctly. The size specified in the file matches the window size and is non maximized. If you maximize firefox and close it, xulstore.json will still have the same window dimensions as before, but the sizemode will now be set to maximized. When you open firefox in this state the resulting window is the size specified in the xulstore.json, but I believe this is actually a visual glitch and the window is really maximized but displaying incorrectly. I think this because if you drag the firefox window it sort of snaps to maximized briefly and then shrinks to the non maximized size. This is the same animation as when you drag a maximized window down and it reverts to non maximized. I hope this makes sense. If any clarification is needed or if you would like me to test again.
I was wrong about the .11 version, seems to be fixed for X11 only.
It's Bug https://bugzilla.mozilla.org/show_bug.cgi?id=1623658 : It's wayland specific. Firefox is maximized on start: [2212833.516] xdg_toplevel(1920, 1020, array) [2212833.538] xdg_surface(1442) [2212833.642] -> xdg_surface(1442) but it resized on background then: [2213074.109] gtk_surface1(array) [2213074.115] gtk_surface1(array) [2213074.121] xdg_toplevel(1280, 1057, array) [2213074.133] xdg_surface(1444) [2213074.147] -> xdg_surface(1444) so it's switched to non-maximized state but we don't know about it because we don't get on state change event. When this bug does not happen, the log looks like: [4050349.721] gtk_surface1(array) [4050349.733] gtk_surface1(array) [4050349.743] xdg_toplevel(1920, 1020, array) [4050349.763] xdg_surface(1613) [4050349.806] -> xdg_surface(1613) so looks like configure_edges() detects screen size correctly.
Reported upstream here: https://gitlab.gnome.org/GNOME/gtk/-/issues/2538
Moving to gtk, as the fix is there.
*** Bug 1822757 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 1821702 ***