Closed Bug 1681989 Opened 3 years ago Closed 3 years ago

windows restoring to wrong workspace + Gnome 3.38 + Wayland/DRM

Categories

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

Firefox 83
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox84 - affected
firefox86 - affected

People

(Reporter: me, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0

Steps to reproduce:

my understanding is this was fixed in #372650 but i am experiencing this issue with Firefox 83.0 build id 20201112153044 (Debian Sid).

  • boot to GDM (wayland)
  • login to Gnome Shell (wayland)
  • open firefox 83.0
  • arrange windows on static workspaces (1-4 out of six total)
  • log out back to GDM
  • log in
  • ensure displays are configured as before
  • switch to workspace 1
  • launch firefox with MOZ_ENABLE_WAYLAND=1

i have also tested replacing steps 5-7 with simply exiting firefox via Ctrl+Q.

i also reproduced with dynamic workspaces disabled (confirmed the setting was correct also via "Tweaks" app, and set my static workspaces to a larger number than what i'm actively using (using 4 out of available 6).

a few other notes which may be relevant:

  • i am using Gnome Shell on wayland as my window manager
  • this is a laptop with an external monitor, the laptop lid is closed; monitor is the primary/only display
  • i am running Debian Bullseye with the firefox package installed from unstable/sid.
  • i am launching firefox with wayland support via MOZ_ENABLE_WAYLAND=1
  • laptop screen builtin scaling is different from monitor (2x vs. 1x respectively)

Actual results:

all windows are restored to workspace 1. sizes are correct, but x/y positions and workspace are incorrect.

Expected results:

windows are restored to where they were prior to logout/quit

Component: Untriaged → Session Restore

I can confirm this is also the problem for firefox 84.

I run Redhat Fedora Core FC33 with wayland; it does not matter whether I use the firefox-wayland or the firefox-x11 wrapper.

I think this was a bug that has been fixed previously, so it should be a regression (https://phabricator.services.mozilla.com/D67824); or it is Wayland specific, I did not observe this before switching over.

[Tracking Requested - why for this release]:

[Tracking Requested - why for this release]: 86.0a1 is a copr repo firefox-nightly version for FC33.

Mozilla does not support officially the Wayland backend so not tracking for 86 and moving this bug to core::gtk for our RedHat Wayland maintainer.

Component: Session Restore → Widget: Gtk
Product: Firefox → Core
Priority: -- → P3

Are you sure that this is a Firefox specific bug?
See: https://bugzilla.redhat.com/show_bug.cgi?id=1878367

We can't control where the Firefox is restored on Wayland, applications does not have such permissions there.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.