Open Bug 1960607 Opened 12 days ago Updated 3 days ago

Allow to disable window state and size restore

Categories

(Core :: Widget: Gtk, enhancement)

enhancement

Tracking

()

People

(Reporter: jhorak, Assigned: jhorak)

Details

There's a Gnome Kiosk session (please don't confuse with Firefox kiosk mode) which allows to set the launched window to specific location, size and state (for example maximized). I's configured by the window-config.ini file.

Firefox tries to restore it's state on its own, so after the window is placed by the compositor the previous saved state is restored. This invalidates window-config.ini settings if they differs (like user maximized the window during previous run). In order to fix that we need to disable window size/state restore.

So far two options came to my mind:

  • command line argument - named something like --no-restore-size (maybe overkill)
  • user preference (less straightforward, but since the Gnome Kiosk is probably not mainstream, still bearable)
Type: defect → enhancement

Instead of adding another preference, couldn't Firefox detect that its running under a GNOME Kiosk session and decide to not restore window state based on that?

Gnome Kiosk guys discourage me on doing detection on the Firefox side. I'll utilize the user preference because it makes lowest noise.

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