Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

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

搜索 | 用户支持

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

详细了解

Firefox keeps restoring my tabs even though restore previous session is off

  • 3 个回答
  • 1 人有此问题
  • 10 次查看
  • 最后回复者为 cor-el

more options

Today, whenever I close Firefox and then restart it, it brings up the tabs I had open last time before I closed it instead of my home page. I checked my settings and "Restore previous session" is turned off. How do I make it stop doing this and why isn't turning it off in settings working?

Today, whenever I close Firefox and then restart it, it brings up the tabs I had open last time before I closed it instead of my home page. I checked my settings and "Restore previous session" is turned off. How do I make it stop doing this and why isn't turning it off in settings working?

所有回复 (3)

more options

You can check if you have a user.js file in the Firefox profile folder that sets browser.sessionstore.resume_session_once to true.

  • browser.sessionstore.resume_session_once

You can use the button on the "Help -> More Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.


It is also possible that Firefox isn't closing properly. Use one of these to close Firefox if you are currently doing that by clicking the close X on the Firefox Title bar.

  • "3-bar" menu button -> Exit (Power button)
  • Windows: File -> Exit
  • Mac: Firefox -> Quit Firefox
  • Linux: File -> Quit
more options

I tried using the 3 bar menu to Exit, but it still brings back the same tabs when I start it up. Is there a way I can change this setting without having to go in an edit files?

It also seems to be only doing this on one computer. My other computer opens and closes Firefox normally.

more options

Your attached troubleshooting information shows that you have a user.js file:

  • UserJS.exists: TRUE

So you will have to go to the profile folder and remove this user.js file.


Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts. The user.js file will only be present if you or other software has created this file and normally won't be present.

You can check its content with a text editor (right-click: "Open with"; do not double-click). The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.

You can delete the user.js file if you didn't create this file yourself.

You can use the button on the "Help -> More Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.