Open Bug 1493472 Opened 6 years ago Updated 2 years ago

Firefox not remembering window position in windows 10

Categories

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

62 Branch
Unspecified
Windows 10
defect

Tracking

()

Tracking Status
firefox-esr60 --- unaffected
firefox62 --- wontfix
firefox63 --- wontfix
firefox64 --- wontfix
firefox65 --- fix-optional

People

(Reporter: bugreport, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [win:sizing])

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0 Build ID: 20180920131237 Steps to reproduce: Position and resize firefox. Close firefox. Actual results: When you reopen firefox, the window position moves up a few pixels. Expected results: It should have opened in the same location that it was closed in (previous behavior).
Note: Only noticed when I maximize the height of the window against the top of the screen. Upon reopening, the top of the firefox window is beyond the top edge of the desktop.
Can you confirm that this is still an issue if you update to Firefox 62.0.2? There were a couple of related bugs resolved in that release (1489214 and 1489852).
Flags: needinfo?(bugreport)
I can reproduce on Firefox62.0.2: 1. SNAP ON from Windows10 settings (this settings seems to trigger the bug) 2. Open Firefox62.0.2 and change window sizemode to normal 3. Drag top border of the browser to top of screen edge, the browser window will fit to maximize in height automatically. 4. Quit and relaunch browser
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
OS: Unspecified → Windows 10
Regression window(m-c): https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=d163fc054fdc396fba639f133bf7d9f6f5c35c18&tochange=e6c9581ba20e96a883ca5cab65d0055cd8df213d Regression window(m-release): https://hg.mozilla.org/releases/mozilla-release/pushloghtml?fromchange=e9dd9434ad9ac15284429d904a45e4daf567c03b&tochange=150c70d39363b57ea4e92fbbd900b338f09177d6 And Build from https://hg.mozilla.org/releases/mozilla-release/rev/da3cd3cea8c0 also reproduce the problem. Regressed by: e6c9581ba20e Florian Quèze — Bug 1489214 - Set the position of the early blank window with the screenX/Y attributes rather than with the left/top features to avoid broken CSS <-> device pixel conversions in mixed DPI environments, r=mconley.
Blocks: 1489214
Component: Untriaged → Session Restore
@:florian The patch of Bug 1489214 causes the regression, Can you please look into this?
Flags: needinfo?(florian)
Flags: needinfo?(bugreport)
Priority: -- → P3
Priority: P3 → P2
Too late to fix in 64. Marking this issue as fix-optional for 65; if you land a patch in nightly and think it's low-risk for beta, please request uplift.

This bug is still there for me in Firefox 65.0.1 on Windows 10 x64.

Florian, is this something a backout of bug 1489214 would solve and/ or perhaps you still need to adjust somewhat for the devicePixelRatio after all?

No longer blocks: 1489214
Regressed by: 1489214

(In reply to Mike de Boer [:mikedeboer] from comment #9)

Florian, is this something a backout of bug 1489214 would solve and/ or perhaps you still need to adjust somewhat for the devicePixelRatio after all?

This seems like a rounding issue, so I expect this to be a problem in platform code. When fixing this it would be great to include tests, as I'm afraid this might remain regression prone.

Flags: needinfo?(florian)

Forgive me if this isn't helpful. I've been trying to find a fix for this for a while now, deleting settings files, removing all addons, uninstalling and re-installing FF. Nothing works. Recorded a video of the behavior in case it is helpful. One strange piece of behavior I've noticed: the window will sometimes re-align itself to the bottom edge of the desktop if I close and re-open FF a second time. (But strangely not to the left or right side.)

Again, apologies if this is not helpful. Love FF, definitely want to see this fixed. It's a small annoyance but it drives me up the wall. =]

https://youtu.be/ElVKuKiqeLg

I have to agree with ss186262. FF keeps starting a few mm from the left screen edge. When closing it being on the right hand side there is the same gap on the right hand side after a restart. His video shows this clearly!

It might be a small issue but it drives me crazy because I can always see the background picture and icons lingering where the browser should actually be covering them. I´m using FF ESR and struggling to fix this since I switched to Win10 about half a year ago. Snap is deactivated on my system.

Without detracting from the bug, an extension that may alleviate things:

That plugin ^ is not way at all, if wanted to use other applications too.

Nothing helps to get browser size and position to original, when start firefox again. This is everyday problem to me.
Reproduce steps are same as reporter give.

Windows 10 Pro, Firefox 71

I am experiencing exactly the same problem that user ss186262's video shows. System is Windows 10 Home, x64, Firefox version is 70.0. I've had this problem for several months with different Firefox versions. Maybe this bug is not a showstopper, but I'd describe its annoyance level about the same as having a car's steering wheel rotated 10 degrees off-center when driving straight. :)

Regressed by: 1489852

(In reply to ss186262@gmail.com from comment #11)

Forgive me if this isn't helpful. I've been trying to find a fix for this for a while now, deleting settings files, removing all addons, uninstalling and re-installing FF. Nothing works. Recorded a video of the behavior in case it is helpful. One strange piece of behavior I've noticed: the window will sometimes re-align itself to the bottom edge of the desktop if I close and re-open FF a second time. (But strangely not to the left or right side.)

Again, apologies if this is not helpful. Love FF, definitely want to see this fixed. It's a small annoyance but it drives me up the wall. =]

https://youtu.be/ElVKuKiqeLg

Hello,

I have exactly the same problem as this person. :o

Does anyone have a solution? Because visually it's disturbing to have a lag, not disabling but visibly disturbing and especially that seems to have no meaning as a bug (never seen on other applications). :/

Thank you to those who will read and/or respond ^^

I have the same problem. I usually maximize Firefox vertically in WIndows 10 (e.g. by double clicking on the top/bottom border) and I after I restart Firefox its window is a few pixels smaller in height than before.

I noticed that it's somehow related to the automatic history cleanup on quit. If I go to Options -> Clear history when FIrefox closes and uncheck "Browsing and download history", the bug doesn't happen and Firefox is able to restore its previous window size on startup.

I don't think that clearing browsing history on exit should also reset window size/position, it's absolutely unrelated IMO.

Opened 2 years ago and yet its still an issue in 2020 for me :(
its actually getting really annoying now!
Even though i position the browser to fit the screen, when i close it and reopen it always ends up with a gap on the left and bottom

Running on windows 10 - FF 76.0.1 (64-bit)

Ive tried deleting the file xulstore.json which a few posts say to do, but this has made no difference.
Ive also tried the refresh / restore to default (losing all my plugins) and still this problem persists.

Pulling hair out :0(

(In reply to Jay from comment #18)

Opened 2 years ago and yet its still an issue in 2020 for me :(
its actually getting really annoying now!
Even though i position the browser to fit the screen, when i close it and reopen it always ends up with a gap on the left and bottom

Running on windows 10 - FF 76.0.1 (64-bit)

Ive tried deleting the file xulstore.json which a few posts say to do, but this has made no difference.
Ive also tried the refresh / restore to default (losing all my plugins) and still this problem persists.

Pulling hair out :0(

I also forgot to add that as stated by user ss186262 i have noticed the problem appear to happen first time running firefox.. if you close then reload the position is as should be. So basically everytime i use firefox i hvae to run it then close it then run it again to get it to display in the correct position - it appears to be every other execution

Hello there.

I'm seeing the same behavior in both Thunderbird 68.8.1 and Firefox 76.0.1 on Windows 10 x64. Basically, neither Thunderbird nor Firefox have remembered their window positions since I got Windows 10. Their windows have always been off by a few pixels.

Hi,

Same issue on Firefox 78.01 and Windows 10 x64.

I have the exact same issue, but it happens for me with all three browsers I have installed: FF, Chrome, IE. They are ALWAYS a few pixels offset from where I left them. Other programs like Outlook, Sticky Notes, Excel stay in their places, but not browsers. Win 10 Pro 64bit

I still have this issue/bug.
One thing to add... it seems to be the case, when you have windows taskbar on the side of the window instead of bottom/top.
FF 82.0.1(64bit) Windows 10.

It is especially annoying with FancyZones (tiling window manager from MS PowerToys), though I've checked this with and without them enabled, bug remains the same.

(In reply to BugGlitcher from comment #23)

I still have this issue/bug.
One thing to add... it seems to be the case, when you have windows taskbar on the side of the window instead of bottom/top.

I also have the Windows task bar on the side of the screen (left). I'm still seeing this issue, too.

Firefox 82.0.2 (64-bit), Thunderbird 78.4.0 (32-bit), Windows 10 x64

I have task bar on bottom. Bug is not depending task bar position then.

I have this issue as well. For quite a while now. However, the bug actually disappears if I pin a tab before closing Firefox. With at least one tab pinned, Firefox will correctly restore window size and position the next time I start it.

But I don't want to pin any tabs most of the time. It would be great if whatever method is responsible for restoring size/position when there's pinned tabs was also used when there's no pinned tabs.

(In reply to Nikos Chantziaras from comment #26)

I have this issue as well. For quite a while now. However, the bug actually disappears if I pin a tab before closing Firefox. With at least one tab pinned, Firefox will correctly restore window size and position the next time I start it.

But I don't want to pin any tabs most of the time. It would be great if whatever method is responsible for restoring size/position when there's pinned tabs was also used when there's no pinned tabs.

I have Firefox pinned to taskbar and issue still exists. Nothing to do with it.

(In reply to Marko Karjalainen from comment #27)

I have Firefox pinned to taskbar and issue still exists. Nothing to do with it.

I meant pinned tabs, not pinning Firefox to the taskbar. In Firefox, right-click a tab and select "Pin Tab."

(In reply to Nikos Chantziaras from comment #28)

(In reply to Marko Karjalainen from comment #27)

I have Firefox pinned to taskbar and issue still exists. Nothing to do with it.

I meant pinned tabs, not pinning Firefox to the taskbar. In Firefox, right-click a tab and select "Pin Tab."

My mistake. Tested and pinning tab inside Firefox fix this issue somehow.

When open browser i can see how window is repositioned after opened to wrong place.

Hi,
just about to switch to FF, but this bug is so annoying, I don't know if I can.
Double opening FF doesn't help at my side.
What helps (and I think wasn't mentioned before):
Opening previous session puts the window where it was before.
Also this behavior is exactly the same in Thunderbird.
Is anyone working on this?
Having to resize the window on every start are 5sek I don't want to invest for using this browser.

FF 92.0 still have this problem.
I came here because i used FF always in the past and give it a try this morning but i think i'll move very quickly back to another browser.

My taskbar is at the bottom.
When i align FF to the right with fullsize top-bottom it moves some pixels to the left and upwards when i close and reopend it.
After 3 years you may expect this annoying bug should be fixed.

I can also confirm that the bug appears on Firefox 92.0. Interesting that this 100% reproducible bug remains unfixed for years. It is a fundamental UI feature that a window remembers its size and position when reopened. Please fix this!

The bug still remains in FF 93.0. Please fix this annoying bug. Otherwise I'm forced to change to another browser.

FF 93.0 and Windows 11. Bug remains. Every single time when Firefox is opened, its window moves from the prior location and requires repositioning. It is simply working incorrectly.

Has Regression Range: --- → yes

Enabling "Open previous windows and tabs" is a workaround for me...

I have "Open previous windows and tabs" enabled, but still have this issue.
Btw. LibreWolf fork is unaffected by this bug.

Windows 10 and Firefox 97.0: When "Open previous windows and tabs" has been selected, the browser window first open to a position that has shifted, then the window moves to the position where the previous browser window was located. This means that the bug correction is simple. Just position the windows correctly every time when browser is opened instead of moving the window to a shifted location.

So I guess there is still no solution to this? I've been having this exact problem for quite some time now. Someone else suggesting privacy.fingerprinting could be the cause, but it's not. Super frustrating. Is there a way to force the window size in about:config?

This issue, of the Firefox window not remembering it's last position, started after I set privacy.resistFingerprinting to true. Setting privacy.resistFingerprinting back to false does not resolve the issue. The issue has propagated across multiple Windows 11 PCs with the same Firefox user ID logged in.

Currently installed version of Firefox is 99.0.1.

Severity: normal → S3

The severity field for this bug is relatively low, S3. However, the bug has 10 votes.
:dao, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)

The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.

Flags: needinfo?(dao+bmo)

From my perspective it is still relevant because I still have the issue.

Per :florian's comment above, redirecting to Core :: Widget: Win32.

Severity: S3 → --
Component: Session Restore → Widget: Win32
Priority: P2 → --
Product: Firefox → Core
Severity: -- → S3
Priority: -- → P3
Whiteboard: [win:sizing]

Hi there - I'm on FF version 108.0.1 (64-bit) running Windows 10 Pro and I just noticed this rather annoying issue. I like to drag my browser to the right-side of the screen so that it resizes to exactly 50% of the desktop, but I noticed that when I closed FF and re-opened it the window would be shifted slightly up and to the left (and/or shrunk, I'm not sure which) such that there's a few pixels of desktop visible on the right and lower borders of the browser window that shouldn't be.

I took a couple screenshots to demonstrate the issue here: https://imgur.com/a/1aC7jHY

The first image when I had FF sized how I wanted it before closing the window. The second image is what happens after closing and reopening FF. You can see the few pixels of space around the right and lower edges of the browser window.

Sorry for the back-to-back comments but I see no way to edit/delete my previous one:

I just tested what a previous user said and selecting "Open previous windows and tabs" in settings does in fact seem to resize the window correctly when it's closed and reopened. I consider this a workaround though, as I prefer to start with a fresh browser each time.

I do hope this issue can be looked into; it's a bit disheartening to see this still exist after 4 years..

I also have the same issue. In my case, I position the top about 12 pixels below the top of screen because I have a thin, always on top toolbar across the top of my screen. Either Firefox or Windows insists on moving the Firefox window to the top of the screen, usually after some period of inactivity, but not long enough to trigger the screen saver. It happens every day, but I have never been looking at the screen when it happens, I just see the results, the top of Firefox covered by my toolbar.

For anyone experiencing this- has anything improved after bug 1813303?

No.
I can still reproduce this in Nightly112.0a1 Windows10.

Windows 11 Pro, Firefox 110.0 (64-bit). Bug is alive and well and very much reproducibe.

You need to log in before you can comment on or make changes to this bug.