Mozilla VPN is currently experiencing an outage. Our team is actively working to resolve the issue. Please check the status page for real-time updates. Thank you for your patience.

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 7 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 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

由kinatas于修改

被采纳的解决方案

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
定位到答案原位置 👍 1

所有回复 (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

选择的解决方案

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!