Open Bug 529958 Opened 15 years ago Updated 2 years ago

Windows restored outside screen using sessionrestore which was created when operating with dual monitor

Categories

(Firefox :: Session Restore, defect)

21 Branch
x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: david.balazic, Unassigned)

Details

(Whiteboard: [dupeme?])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)

When closing FF while a secondary monitor is attached (FF windows are on both monitors) and the starting it later when only one monitor is present, some FF windows appear (well, actually they don't appear) outside of the screen.

They are not visible at all. (The other windows on the actual screen function normally).
The OS function Tile Windows or Cascade Windows do have any effect on the "outside" windows.

The only way to solve the problem is:
 - select a problematic window by either alt-tab or by clicking it in the task bar
 - press alt-space
 - select move
 - hold right arrow (the secondary monitor was positioned left from th primary) until the window comes into the screen

Note:
Windows is properly "seeing" only one monitor. This is not the case of Windows being in dual screen mode, just the monitor not being attached. That is: if I move the mouse pointer to the left, it stops at the screen edge.

Reproducible: Sometimes
David, do you still see this with ff 3.6?
Are you sure this is a session restore issue?
Yes, all the time.

That's for the developers to figure out ;)
duplicate of bug 462743?
That one is about maximized windows.
In my case they are not maximized.
Version: unspecified → 3.5 Branch
(In reply to David Balažic from comment #4)
> That one is about maximized windows.
> In my case they are not maximized.

indeed, bug 462743 does seem to be about maximized windows only.
so I'm not sure there is a duplicate for this
Summary: Windows restored outside screen → Windows restored outside screen using sessionrestore which was created when operating with dual monitor
Whiteboard: [dupeme?][needs qa repro]
@Wayne, we have the qawanted keyword we can use.
Keywords: qawanted
Whiteboard: [dupeme?][needs qa repro] → [dupeme?]
(In reply to Wayne Mery (:wsmwk) from comment #1)
> David, do you still see this with ff 3.6?
I still see it with version 12.

I also upgraded to Windows 7.

This is especially a problem if a User Certification Request dialog pops up off screen. At least I think that was it. I could move all the Firefox Windows to visible place with alt-space, but they would not work. The appear to work, but no network traffic is getting thru. Cached pages are displayed, but nothing new can be loaded. This is consistent with a User Certification Request dialog being shown somewhere. (see description of bug 741327)

One more thing: The Cascade Windows / Show Windows Stacked ... functions in the Windows Task Bar context menu don't help either. I would expect them to move the windows to the actual monitors, but the don't. Actually they partly do the opposite: if I move "by hand" the FF windows to the actual monitors, then select Show Windows Stacked, half (two out of four) of FF windows are moved back to "invisible space".

Additional info: I am using the Classic Windows theme in the OS.
David, can you still reproduce this issue on the latest nightly? 
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

I have tried several times and I could not reproduce this.
Build ID: 20130502030939)
Flags: needinfo?(david.balazic)
I tried nightly 23.0a1 (2013-05-05)

Both with dual and single monitor, after start all browser windows are moved to be completely in the visible area. (even if they were just a tiny bit outside, like one row at the bottom)
So I guess the problem is solved.
Flags: needinfo?(david.balazic)
Additional info: not only moved, they are also resized. If a browser window was two monitors wide, the after restart it is narrowed to fit ony monitor (even if still two monitors are available for display)
Thank you David!

Marking resolved fixed based on comment 9.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Keywords: qawanted
Resolution: --- → FIXED
Unfortunately this happened again.

FF version 21.0

I had about 13 browser windows open on two monitors. Then I exited FF and shut down my laptop.
Later I started the laptop without the extra monitor and then started Firefox.
All the browser windows appeared off screen.
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
OS: Windows XP → Windows 7
Version: 3.5 Branch → 21 Branch
(In reply to David Balažic from comment #12)
> Unfortunately this happened again.
>
> Later I started the laptop without the extra monitor and then started Firefox.

Was the monitor still plugged in but turned off? What connector are you using? Unfortunately this bug will go no where unless we can reproduce your configuration and the issue.
My laptop was in a docking station with external monitor connected to the dock, over DVI.
Later I used the laptop on its own, no dock, no monitor.
That might be a circumstance which was not taken into account with the Session Restore design. It's likely not smart enough to know a certain position is off screen. I'll have to defer to a Firefox developer on that though.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.