Closed Bug 1795356 Opened 3 years ago Closed 2 years ago

Restore closed windows

Categories

(Firefox :: Session Restore, defect)

Firefox 106
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: uiy12345, Unassigned, NeedInfo)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

Steps to reproduce:

Have two firefox browser instances open with various tabs loaded

Actual results:

Close one browser

Expected results:

Try to restore the tabs in the closed one by opening a browser again. There is no way to open the tabs.

I had two browsers open, my main one and one that some other tabs open. I accidently closed my main tab when trying to minimize and then lost all my main tabs. I opened the browser and went to "recently closed tabs/windows" and, of of course, none of the tabs that I had open were listed(well, maybe 1 or 2).

Firefox should always track the actual tabs opened. It seems to be hit or miss. I've had this problem before where it doesn't track the URL's properly. It's not a difficult thing. It seems to track the last browser instance so if you close your main browser instance you lose them as it will ignore tracking them.

It should aggregate all tabs regardless of browser instance or even group them(e.g., if you have two firefox browser windows running and close one then you can restore them regardless of what happens with the other).

Maybe in the history have a folder that tracks recent windows and track them in order of how they are closed. So the most recent url's closed are listed first and then one can simply go to history, then to "recent closures"(which may track for a day or two) and can easily restore when something happens like this(as it will be the top N entries in the list).

It should be noticed that some of the tabs I had open where opened days or weeks before. I might have 20 tabs open(sometimes more) in a browser instance and sometimes have them open for weeks. So rather than screw me over with ignoring the tracking they should always be tracked in properly. I can't go to the history and try to find all the urls and reopen them manually since I don't remember all the tabs. If the history had a "Most recently closed" column that could be used to store then it would help but it is not ideal. Also, this issue happens with, say, pdf's opened or other content. When one accidentally closes the browser instance and they are not tracked(the tracking should happen at the instance/window level rather than the application level, at least for recently closed windows). Basically I had like 20+ tabs open and accidentally closed the window/browser then opened a new window/browser and it only showed 3 entries. Recently closed tabs and recently closed sessions are greyed out. Something is broke.

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'm not able to reproduce this issue on the latest version Firefox 105.0.3 on Windows 10 x64.
Does this issue occur frequently on your side? Do you have any particular options enabled in about:preferences? Are there any tabs pinned?

Flags: needinfo?(uiy12345)

This is an issue in Firefox 106. Before restoring closed windows was possible via the "Chronik" (sorry, don't have the english name for it). But now its submenus "Kürzlich geschlossene..." stay empty. Steps to reproduce:

Open Firefox 106.
Open at least two seperate windows with one or several tabs.
Close one window.

SHOULD HAVE: Some way to restore the closed window.

The closed window is not listed in the new "Firefox View" nor in the old submenu "Chronik".

Wow: Just tried Ctrl+Shift+N. That does it for the moment. Yet, I still find no place where this is displayed.

(In reply to Ina Popescu from comment #3)

I'm not able to reproduce this issue on the latest version Firefox 105.0.3 on Windows 10 x64.
Does this issue occur frequently on your side? Do you have any particular options enabled in about:preferences? Are there any tabs pinned?

It will happen 100% of the time if I kill one of the windows either through task manager or closing it out. Firefox simply does not remember any previous windows tabs, only the very last window(and even then sometimes forgets).

You are telling me that if you open two firefox browser windows(same app) an load some tabs in each one and then kill one then close the other that you can open all tabs from both windows using "Restore previous session"?

Flags: needinfo?(uiy12345)

The severity field is not set for this bug.
:dao, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)

You are telling me that if you open two firefox browser windows(same app) an load some tabs in each one and then kill one then close the other that you can open all tabs from both windows using "Restore previous session"?

Yes, both windows can be restored when using the option History > Restore previous session.
I didn't manage to reproduce the issue described in Comment 6 using Firefox 106.0 or Firefox 106.0.5 .

These are the steps I've followed when trying to reproduce your issue:
-open two Firefox windows
-in each window open several tabs
-close one window
At this point the previous closed window can be restored from the side menu using the option History >Recently closed windows

-close both windows
-open a new Firefox instance
At this point both windows can be restored from the side menu using the option History >Restore previous session

Please detail and include here any other steps that might help to investigate this further.

My Comment 4 is out-of-date. In the present Firefox version the submenu of Chronik works again as desired.

However, closed windows do not appear in Firefox View. That might be a worthy addition.

(In reply to Ina Popescu from comment #8)

You are telling me that if you open two firefox browser windows(same app) an load some tabs in each one and then kill one then close the other that you can open all tabs from both windows using "Restore previous session"?

Yes, both windows can be restored when using the option History > Restore previous session.
I didn't manage to reproduce the issue described in Comment 6 using Firefox 106.0 or Firefox 106.0.5 .

These are the steps I've followed when trying to reproduce your issue:
-open two Firefox windows
-in each window open several tabs
-close one window
At this point the previous closed window can be restored from the side menu using the option History >Recently closed windows

-close both windows
-open a new Firefox instance
At this point both windows can be restored from the side menu using the option History >Restore previous session

Please detail and include here any other steps that might help to investigate this further.

This is not how it works on my end.

I just had it happen to me again. I had two windows opened. I closed one window then the other about 2 seconds later to restart FF because it was getting sluggish. I went to -history- to restore the windows AND it only restored the last one, not both. One window opened.

Somewhere firefox is deciding that window B is was the last window to be closed and hence is the only window of relevance.

If I close A then B I get B, not A&B.
If I close B then A I get A back, not A&B.
Sometimes, usually after a crash(the problem is when I forget I have B open and close A then I'm stuck with B which is a secondary window for minor things) I can do what youu said, but it doesn't work when normally closing windows.

How ever FF is decided to ignore or include A is broke on my end.

Somewhere it is saying, in the code, "Window A was closed, no need to remember it, make B the window".

My suggestion is you try your outline a few times and where you "close" the first window you try various times(e.g., do it immediately(close A then B then wait to open firefox so the processes can shut down then open and restore), wait about 2-3 seconds after closing A to close B, wait several minutes, etc).

I will say this. For the last several months I've been experiencing a weird bug which causes Tampermonkey to crap out. I usually try to restart firefox because of this. Basically the TM extension will crash and then not be available to use in firefox. This seems to be a bug in TM because it started happened when I tried to upgrade TM to beta. When TM crashes no TM scripts run on pages so I'll notice that relatively quick and restart FF. If I have "window B" running and close A first then B I can't get A which usually contains tabs I'm interested in and so lose all my work(I might have 20 tabs in A for things I want to get to and because FF craps out with restoring A(should be very simple) I lose all my "work"). I'll get stuck with the tabs from B(and the only window that is showing) which are usually irrelevant or well known.

(In reply to uiy12345 from comment #10)

I just had it happen to me again. I had two windows opened. I closed one window then the other about 2 seconds later to restart FF because it was getting sluggish. I went to -history- to restore the windows AND it only restored the last one, not both. One window opened.

Somewhere firefox is deciding that window B is was the last window to be closed and hence is the only window of relevance.

If I close A then B I get B, not A&B.
If I close B then A I get A back, not A&B.
Sometimes, usually after a crash(the problem is when I forget I have B open and close A then I'm stuck with B which is a secondary window for minor things) I can do what youu said, but it doesn't work when normally closing windows.

My suggestion is you try your outline a few times and where you "close" the first window you try various times(e.g., do it immediately(close A then B then wait to open firefox so the processes can shut down then open and restore), wait about 2-3 seconds after closing A to close B, wait several minutes, etc).

I've tried to reproduce this issue again following the instructions given in Comment 10.
Having two Firefox windows C and D open.
When closing window C, but I continue to browse different websites in window D before closing it(or wait several seconds), I'm able to restore the window D using "Restore previous session" from the History panel.
The first closed window, window C, is listed with the corresponding tabs in the History panel under "Recently closed windows" and can be restored this way.

If I close A then B I get B, not A&B.

Based on your previous example, could you please confirm that you are able to restore window A using "Recently closed windows" from History panel?

Closing this as resolved: incomplete due the lack of response from the reporter. Please feel free to reopen the bug if the issue still persists and follow the instructions of writing a new bug.
Thanks.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.