Closed Bug 1142205 Opened 9 years ago Closed 5 years ago

Firefox windows do not open in the same space as they were before logging out

Categories

(Firefox :: Session Restore, defect)

36 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 626172

People

(Reporter: mozila.bugzilla, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150305021524

Steps to reproduce:

This is a *Mac Specific* issue.

I open more than one Firefox window. Each window is assigned to a different space. I also have dual displays. In some spaces the Firefox window is in the main display, in some in the secondary display.

I log out of my account, and log back in (or restart the Mac).


Actual results:

The windows all appear on my first space. This requires me to reassign the windows to the correct spaces every time.


Expected results:

A good Mac application should open each window in the same space as well as the same display where it was when the user logged out.
Hi, 

Please give some steps to reproduce this problem, and also this happens with other programs or only Firefox?
Thank you.
Flags: needinfo?(mozila.bugzilla)
(In reply to ovidiu boca from comment #1)
> Hi, 
> 
> Please give some steps to reproduce this problem, and also this happens with
> other programs or only Firefox?
> Thank you.

Here are more detailed steps. Note that the bug was posted before Mozilla changed the window re-opening procedure to just display one window when re-opening. This new behavior further alienates it from the Mac L&F.

On a Mac, make sure you have more than one space (if you're not a Mac person, this means more than one virtual desktop). Launch Mission Control, add a space using the top part of the Mission control screen. If you're on a dual monitor, in System Preferences, "Mission Control", make sure "Displays have separate Spaces" is unchecked. Leave Mission control by clicking your first space.

Open a Firefox window, browse to site A. Keep this window in your first space.

Open a new Firefox window, browse to site B. Move the window to the other space, by launching Mission Control and dragging the window to the other space.

Log out of the Mac session, by choosing Log Out from the Apple menu. When the confirmation dialog box appears, make sure "Reopen Windows when logging back in" is checked.

Log back in. Firefox should launch automatically as a result of MacOS X trying to reopen windows.

* Instead of the windows being already open as is expected of a MacOS X application, Firefox only opens one window and offers the restore button at the bottom. This was not the behavior when I posted this bug. It really should just open the windows that were open when it was closed as it used to.

* When you restore the windows, they are all restored into the same space.

The desired behavior:

* When logging back in, Firefox should open with the windows that were open when logged out.
* The windows should be restored each to the space where it existed when logged out. The window with site A should appear on the first space. The window with site B should appear on the second space.

---

There are some other applications that have the same problem, but most Mac-Savvy applications open windows in the original space where they were open when logging out. And this is especially important for a web browser which is almost invariably open when logging out.
Flags: needinfo?(mozila.bugzilla)
Hi, 
 
Please install "save session" add-on and see if it works for your problem.
Thank you.
Component: Untriaged → Session Restore
(In reply to ovidiu boca from comment #3)
> Hi, 
>  
> Please install "save session" add-on and see if it works for your problem.
> Thank you.

It has no effect whatsoever on any of the above. Not sure why you would suggest it in the first place as it has no connection to MacOS X and spaces. THIS IS A MACOS SPECIFIC BUG.
I've noticed this as well. It's not just on a fresh login -- Firefox windows also all end up in the same space/desktop when quitting and restarting Firefox when "Show my windows and tabs from last time" is enabled on the General tab in Preferences.

Safari will reopen windows in the space they were in before quitting.
This is extra frustrating, especially for folks running Nightly who get restarted every day.  Confirming, as this is (from what I can tell) 100% reproducible.

The Chromium devs seem to be implementing a solution; https://bugs.chromium.org/p/chromium/issues/detail?id=74812# has a fair bit of discussion of possible implementation strategies, particularly towards the end of the bug, which may or may not be helpful.

It's not obvious to me how to get this sort of bug on the triage radar these days, but I bet dolske knows...
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(dolske)
To be clear, this happens after every quit and restart for me, logging out isn't necessary to reproduce.
I am 99% certain this is a dupe of an old existing bug.

Unfortunately not a priority right now.
Flags: needinfo?(dolske)
Blocks: ss-feature
See Also: → 372650
See Also: → 626172
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.