Open Bug 517686 Opened 15 years ago Updated 2 years ago

Save & Quit with multiple monitors need to restore properly on single monitor

Categories

(Firefox :: Session Restore, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: alubell, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)

Problem occurs if you exit Firfox with "Save & quit" going from multiple to single monitors.  If the firefox window is on the removed monitor it restores to unviewable space. 

Reproducible: Always

Steps to Reproduce:
1.Connect laptop to docking station with 2nd external monitor.
2.Using Firefox with the Firefox window on the external monitor.
3. Exit using the "Save & Quit" option.
4. Disconnect from docking sttaion so that only built-in monitor is available.
5. Restart Firefox.  
Actual Results:  
It tries to reopen the firefox session on the unavailable monitor which is not viewable.  Firefox will only work if you reopen by abandoning the saved session.

Expected Results:  
Firefox should detect that the external monitor is unavailable and instead display Firefox window on the available monitor.

Occurs using a Thinkpad X61T Tablet with corresponding docking station and the EasyEject software to attach and detach the docking station.

Problem only occurs if Save & Quit is used.  If Quit, then reopen, will do so on available monitor.
Jo, does this ring a bell? I'm not sure session restore is the best place for this. I've seen this after a second monitor had been disconnected.
I tried this on 3.5.2 and 3.7a2(build1) on a Windows 7 machine, and I see the problem there as well. You only need to connect an external monitor and close Firefox in the external monitor to see this problem.

What makes this frustrating is that you can't bring back the Window unless you plug it back to the external monitor, or unless you restart the machine.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to comment #2)
> What makes this frustrating is that you can't bring back the Window unless you
> plug it back to the external monitor, or unless you restart the machine.

FWIW, you can move the window from the external to the main monitor.  
one sequence is r-click taskbar icon, pick Move, then arrow keys
2 options:

1. We make sessionstore check if the positions saved are still valid screen coords and if not, set them to 0,0. I think that's doable, I'd need to look at the APIs.
2. We fix this in widget so that we can't open windows off screen like this - perhaps a better solution, but may might not be perfectly reasonable behavior (might be an OS-specific HIG thing). It's something I'd want to make bug 465186 easier anyway.

I'd prefer #2 since it can be used elsewhere and kills 2 birds with 1 stone, but I'd settle with doing #1 at least for the "short" term - as long as the APIs are there, it's easier.
Summary: Save & Quit with multiple monitors restored to single monitor → Save & Quit with multiple monitors need to restore properly on single monitor
persist in windows 8 x64 (in platform of bug put WindowsXP)
nevermind meant another bug https://bugzilla.mozilla.org/show_bug.cgi?id=797276
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.