Open Bug 680001 Opened 13 years ago Updated 2 years ago

Lowering screen resolution should reposition browser window when restore session.

Categories

(Firefox :: Session Restore, defect)

x86
Windows 7
defect

Tracking

()

People

(Reporter: kenyakorn+bugzilla, Unassigned)

References

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:6.0) Gecko/20100101 Firefox/6.0
Build ID: 20110811165603

Steps to reproduce:

I use the same FF profile for Windows 7 and Ubuntu Linux (Gnome). Ubuntu has 5 Desktops next to each other. So x-Coordinate of the window-position can be larger than screen-width. It seems the window postition is safed in the profile.

I close FF on Linux on screen 2 or 3, boot Windows 7 and restore the session there.


Actual results:

FF starts, but is completely invisible to me. I can still minimize and maximize it form the task-bar, but is always opens at a position in the right! Outside of the actual screen area!


Expected results:

The browser should be opened in the visible area of the screen. I would expect: if there is only one screen with a defined ressolution and the window will be positioned outside of it, to ignore the safe value and place the window on position 0,0.

Storing diffrent positions for different OS would also be possible.
How are you sharing your profile between Windows and Linux?
This problem happens only on Windows Build.
This _not_ happens ubuntu 10.40 and GNOME2.30.2

This problem persists since Firefox3.6.x at least.

Reproducible: Always

Steps to Reproduce:
1. Setup Monitor Resolution to hight value such as 1280 x 1024
2. Open Firefox and Several tabs
3. Resize the Browser to small size like 250 x 300
4. Move the Browser to upper right corner of screen
5. Exit the Browser (Alt > File > Exit), this also save sessions

6. Setup Monitor Resolution to lower value such as 800 x 600
7. Re-Open Firefox
8. Restore Previous Session (Alt > History > Restore Previous Session)

Actual Results:
The browser is put outside a screen and invisible.

Expected Results:
The browser should be repositioned inside a screen and visible.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → Windows 7
Summary: If window position in stored on Linux, FF is invisible on Windows after restore → Lowering screen resolution should reposition browser window when restore sesson.
Summary: Lowering screen resolution should reposition browser window when restore sesson. → Lowering screen resolution should reposition browser window when restore session.
You say this happens since Firefox 3.6.x -- would you care to provide a precise regression range? 3.6 is up to 3.6.20 now.
(In reply to Anthony Hughes, Mozilla QA (irc: ashughes) from comment #5)
> You say this happens since Firefox 3.6.x -- would you care to provide a
> precise regression range? 3.6 is up to 3.6.20 now.

I say 'at least'.
(In reply to Alice0775 White from comment #6)
> (In reply to Anthony Hughes, Mozilla QA (irc: ashughes) from comment #5)
> > You say this happens since Firefox 3.6.x -- would you care to provide a
> > precise regression range? 3.6 is up to 3.6.20 now.
> 
> I say 'at least'.

That's not incredibly helpful. I'm asking if you can test this on earlier versions of Firefox to find out where it first started happening.
Regression window(m-c):
Works:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1a2pre) Gecko/2008080603 Shiretoko/3.1a2pre ID:2008080603
Fails:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1a2pre) Gecko/2008080703 Shiretoko/3.1a2pre ID:2008080703

Thay are no about:buildconfig, so The following pushlog is assumed from Datetime of the neighborhood.
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?startdate=2008-08-06+00%3A00%3A00&enddate=2008-08-07+04%3A00%3A00

Suspected:
Bug 343352 - Session restore clobbers my window position on restore
Thanks -- a very old regression indeed.
Version: 6 Branch → Trunk
(In reply to Anthony Hughes, Mozilla QA (irc: ashughes) from comment #1)
> How are you sharing your profile between Windows and Linux?

I used a FAT32 Partition for a few years. But since 3 months the profile is located on a NTFF partition. So it is accessible for both OS.
But what is the physical location? Firefox expects the profile to be located in a specific location on the system. These locations are different on Linux than they are on Windows.
Y(In reply to Anthony Hughes, Mozilla QA (irc: ashughes) from comment #11)
> But what is the physical location? Firefox expects the profile to be located
> in a specific location on the system. These locations are different on Linux
> than they are on Windows.

Yes they are! But it works. Physically it is saved on a SATA HDD.

On Win7 it is monted at:
E:\Profiles\Firefox\

And On Ubuntu at:
/media/EXCHANGE/Profiles/Firefox

I used the Profilemanager of FF to direct it to the same location.
2 ways to solve this:
1. check available screen size before opening windows (would solve the secondary windows). This could happen in session restore, but (personally) feels better suited for widget/windowwatcher code.
2. check available screen size before moving windows (would solve the first window case)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.