Funkcjonalność tej witryny będzie ograniczona w czasie konserwacji. Jeśli artykuł nie rozwiązuje twojego problemu i chcesz zadać pytanie, to nasza społeczność wsparcia jest dostępna na @FirefoxSupport na Twitterze i /r/firefox na Reddicie.

Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

Restore previous session restores the last tab open when I close it with ctrl+w

  • 7 odpowiedzi
  • 1 osoba ma ten problem
  • 2 wyświetlenia
  • Ostatnia odpowiedź od kinatas

more options

I have restore previous session turned on because I occasionally use the feature, and it works great. The only issue I'm having is that it loads the last tab I had open even when I close it with ctrl+w. Is there any way I can configure it to only restore previous session when I actually quit firefox rather than when I close the last tab?

It seems that right now with restore previous session on it does this: one tab open -> press ctrl+w -> saves session -> shut down while I'd love for this to happen: one tab open -> press ctrl+w -> closes the last tab and sets the default start page-> saves session -> shut down and one or more tabs open -> press the top right X to exit -> saves session -> shut down

I have restore previous session turned on because I occasionally use the feature, and it works great. The only issue I'm having is that it loads the last tab I had open even when I close it with ctrl+w. Is there any way I can configure it to only restore previous session when I actually quit firefox rather than when I close the last tab? It seems that right now with restore previous session on it does this: one tab open -> press ctrl+w -> saves session -> shut down while I'd love for this to happen: one tab open -> press ctrl+w -> closes the last tab and sets the default start page-> saves session -> shut down and one or more tabs open -> press the top right X to exit -> saves session -> shut down

Zmodyfikowany przez kinatas w dniu

Wybrane rozwiązanie

You can set a pref on the about:config page to have a button on the Tab bar to restore the previous session. That way you can click this button in case you want to restore the previous session.

  • browser.tabs.restorebutton = 1
Przeczytaj tę odpowiedź w całym kontekście 👍 1

Wszystkie odpowiedzi (7)

more options

Hi, just to make sure did you update your Video Card Drivers around adapterDescription: Intel(R) HD Graphics 620 adapterDescription2: Radeon (TM) RX 480 Graphics driverDate: 2-28-2018 driverDate2: 3-22-2018 As Windows 10 can and will change any and all Hardware Drivers to it's own https://www.howtogeek.com/302595/how-to-stop-windows-10-from-automatically-updating-hardware-drivers/

I would think you would have to go to a Extension for other customize features : https://addons.mozilla.org/en-US/firefox/search/?platform=windows&q=tab+manager

Please let us know if this solved your issue or if need further assistance.

more options

You can set this pref to false on the about:config page to be able to close the last open tab. Note that it is no longer possible to close the last tab with Ctrl+W.

  • browser.tabs.closeWindowWithLastTab = false

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

more options

Pkshadow said

Hi, just to make sure did you update your Video Card Drivers around adapterDescription: Intel(R) HD Graphics 620 adapterDescription2: Radeon (TM) RX 480 Graphics driverDate: 2-28-2018 driverDate2: 3-22-2018 As Windows 10 can and will change any and all Hardware Drivers to it's own https://www.howtogeek.com/302595/how-to-stop-windows-10-from-automatically-updating-hardware-drivers/ I would think you would have to go to a Extension for other customize features : https://addons.mozilla.org/en-US/firefox/search/?platform=windows&q=tab+manager Please let us know if this solved your issue or if need further assistance.

The drivers situation on my machine is quite a delicate one. I'm running a setup with an external GPU and I've tried every combination of drivers and this one seem to work fine for me, even if they're not the very latest versions I'm quite satisfied with it and prefer not to mess around... About the extension for managing open tabs, I'm trying to keep the number of installed extensions to a minimum and would rather avoid installing something as invasive as a third party tabs manager, but will consider it if I can't find another solution...

cor-el said

You can set this pref to false on the about:config page to be able to close the last open tab. Note that it is no longer possible to close the last tab with Ctrl+W.
  • browser.tabs.closeWindowWithLastTab = false
You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

This was already set to false and it partially resolves the issue (despite having me use two different shortcuts to exit) in a way that yes, it doesn't load the last tab I had open because I closed it before exiting firefox, but it still prevents firefox from loading the default home as the last tab open was the "new tab" that comes up whenever you close the last tab or open a new one

more options

Set the startup page to the home page or use a desktop shortcut with your preferred startup page appended if you want to open Firefox with a specific page.

You can check the startup setting.

  • Options/Preferences -> General -> Startup: "When Firefox starts":
    "Show my windows and tabs from last time"
    "Show my home page"
    "Show a blank page"
more options

cor-el said

Set the startup page to the home page or use a desktop shortcut with your preferred startup page appended if you want to open Firefox with a specific page. You can check the startup setting.
  • Options/Preferences -> General -> Startup: "When Firefox starts":
    "Show my windows and tabs from last time"
    "Show my home page"
    "Show a blank page"

The desktop link with the home page would be a really good idea, if it didn't conflict with the restore previous session option... if I start firefox with that shortcut it opens a new tab with the homepage on it, but still restores that last tab left over the previous session... My Firefox is currently set up as "Show my windows and tabs from last time", which is what I want, as from time to time I might want to restore my previous session. What I would like for it to do would be to revert to a home page whenever I close the last tab with ctrl+w, rather than reopening that last tab. I think I will learn to live with it...

more options

Wybrane rozwiązanie

You can set a pref on the about:config page to have a button on the Tab bar to restore the previous session. That way you can click this button in case you want to restore the previous session.

  • browser.tabs.restorebutton = 1
more options

cor-el said

You can set a pref on the about:config page to have a button on the Tab bar to restore the previous session. That way you can click this button in case you want to restore the previous session.
  • browser.tabs.restorebutton = 1

This works for me. Thank you very much for your help!