Open Bug 1803710 Opened 1 year ago Updated 11 months ago

Firefox loses window on restart

Categories

(Firefox :: Session Restore, defect)

Firefox 107
defect

Tracking

()

UNCONFIRMED

People

(Reporter: valerauko, Unassigned, NeedInfo)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:107.0) Gecko/20100101 Firefox/107.0

Steps to reproduce:

I can't reproduce this reliably, but it happens every now and then. On restarting Firefox, it sometimes doesn't restore a window. I usually have 3-4 Firefox windows open, one with about 40 tabs the rest less than 10. The "lost" window can't be restored from "recently closed windows" either, it doesn't show up. The only impression of a pattern I have is that the window most commonly "lost" is the one that has a Misskey.io tab open.

Actual results:

All windows are restored on restart

Expected results:

One of the open windows isn't and can't be restored

The Bugbug bot thinks this bug should belong to the 'Firefox::Session Restore' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Session Restore

I can't seem to reproduce on Windows 10 or Ubuntu 22 with Release v107.0.1, Beta v108.0 (RC) or Nightly v109.0a1.
All windows are properly restored, including the ones with a Misskey.io tab open and logged in.

  1. How often does this issue happen to you?
  2. Can you think of anything you might have done differently when it occurred? (probably before the close/restart).
  3. Can you attempt to reproduce it while in safe mode?
  4. Do you have any addons that might interfere with the browser history?

Thank you for your contribution!

Flags: needinfo?(valerauko)

Yeah luckily (though for fixing it, sadly) it happens very infrequently and it's not consistent. I can't reproduce it either intentionally. (It hasn't happened at all in the 6 days since I opened this report, but on that day a week ago it happened twice.)

I have one extension that might interfere with browser history, Tab Stash. I don't know if it actually does anything to history or just manipulates tabs. However I haven't used any of that extension's features in the past month or so.

I have the impression that it might be due to "improper exit" -- possibly the only time I close Firefox is either on a restart (and I don't know if the Ubuntu reboot process is "kind" waiting for apps to close) or if there's some glitch in the UI (eg tabs become unclickable) and I use either "Quit n windows" from the Ubuntu dash or if it's not responsive then kill.

When/if this happens again, is there any way I could extract some logs or something that might indicate what caused the improper restore? Since it's not a crash, I don't know how to give you whatever data a full crash dump would give you.

Flags: needinfo?(valerauko)

It has happened again.

I had four windows open, three with quite a lot of tabs (about 25, 30, 50) and one with about 10.

I noticed weird behavior, that none of the context menus would work. To be precise, on right click (or trying to open the application menu) the menu would show for a flash then instantly disappear. Interestingly the "More tools..." menu worked fine.

After noticing this I closed Firefox by choosing "Close 4 windows" from the Ubuntu dash right click menu. Upon restart, the latest window (with about 10 tabs) wasn't restored and not present in the "Recently closed windows" either.

Actually the browser had crashed just the day before (probably unrelated but more reproducible), so it was only open for about 7-8 hours at the time this happened.

Since it hadn't happened before when I had three windows open for an extended period I'll check if it happens more frequently with four windows open.

Could you tell me how to extract debug information for this?

It seems that the issue only occurs when there are at least 4 windows open.

The first symptom is that no overlay menu (be that <select> dropdowns, context menus or the hamburger/more tools menu) works properly, they just flash into view then disappear immediately.

Once this starts happening and the browser is restarted, it fails to restore one of the open windows (not necessarily the one that was opened last or active last). I'll try to see if it can lose more than one window by having 5+ open.

Flags: needinfo?(daniel.bodea)

I've tried reproducing the reporter's issue without results considering its low repro rate and unknown causes. Is there a way he can investigate further on his side? Any quitting/restoring logs? How do you suggest we address this issue further? Thank you.

Flags: needinfo?(daniel.bodea) → needinfo?(dao+bmo)
You need to log in before you can comment on or make changes to this bug.