Mozilla will shut down Pocket’s services on July 8, 2025. At that time users will no longer be able to access the Pocket website, apps and API. You can export your saved items and API data until October 8, 2025 before they are permanently removed. For more information, see this article.

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Restore all Firefox windows and tabs after closing

  • 6 replies
  • 1 has this problem
  • 121 views
  • Last reply by Pierre

Hello, I would like to close all Firefox windows (to free up RAM) and then be able to restore all windows with their tabs without leaving the session. Is it possible ? Thanks.

Firefox 87.0 Kubuntu 20.04.2 LTS

Hello, I would like to close all Firefox windows (to free up RAM) and then be able to restore all windows with their tabs without leaving the session. Is it possible ? Thanks. Firefox 87.0 Kubuntu 20.04.2 LTS

Chosen solution

You can close and restore individual windows as long as you leave one window open. You can also close and restore tabs; I do that to reduce the use of ram. You restore with History > Recently Closed Tabs > | Recently Closed Windows >. Tabs use memory inequally. To see how each is affecting performance, use Help > Task Manager (or enter about:performance in the url bar).

Read this answer in context 👍 0

All Replies (6)

I don't think that is possible. You normally do this by closing and restarting Firefox to make Firefox save session data to sessionstore.jsonlz4 in the profile folder. If you would close all windows without closing Firefox then you do not free all memory and otherwise the memory in use might be fragmented and there is no way to defragment this apart from closing Firefox and restoring closed window might not work reliably (Firefox remembers by default three closed window).

milosagastume11 a écrit

Try this: https://support.mozilla.org/en-US/kb/restore-previous-session

Thank you for your answer. Sorry for responding late but I wasn't home for a few days. I don't dare to do this because Firefox will think it's a new session. Will "restore all tabs in all windows" be suggested in menu ?

cor-el a écrit

I don't think that is possible. You normally do this by closing and restarting Firefox to make Firefox save session data to sessionstore.jsonlz4 in the profile folder. If you would close all windows without closing Firefox then you do not free all memory and otherwise the memory in use might be fragmented and there is no way to defragment this apart from closing Firefox and restoring closed window might not work reliably (Firefox remembers by default three closed window).

Thank you for your answer. Sorry for responding late but I wasn't home for a few days. I know "sessionstore.jsonlz4" and i've already used it in case of emergency. I would like to close all Firefox windows and then Firefox itself. I wish it could be possible to make it read "sessionstore.jsonlz4" automatically at next start up. Do you think there is a trick with a script or something ?

Chosen Solution

You can close and restore individual windows as long as you leave one window open. You can also close and restore tabs; I do that to reduce the use of ram. You restore with History > Recently Closed Tabs > | Recently Closed Windows >. Tabs use memory inequally. To see how each is affecting performance, use Help > Task Manager (or enter about:performance in the url bar).

TerryN21 said

You can close and restore individual windows as long as you leave one window open. You can also close and restore tabs; I do that to reduce the use of ram. You restore with History > Recently Closed Tabs > | Recently Closed Windows >. Tabs use memory inequally. To see how each is affecting performance, use Help > Task Manager (or enter about:performance in the url bar).

Thank you very much. I didn't noticed that restore all windows was possible in history. I think this is the best solution for me at the moment. I will leave one window open and do this.