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

搜索 | 用户支持

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

详细了解

Firefox always opens all tabs that were opened when last closed

  • 9 个回答
  • 7 人有此问题
  • 212 次查看
  • 最后回复者为 cor-el

more options

Firefox, out of the blue, started to always show my tabs from the last session when it is started. I checked that Firefox not listed in the task manager list after closing. So I tried the following:

- changing the option "when Firefox starts" to all three of the available choices - change the browser.startup.page setting to 0 manually via "About:config" - starting Firefox in safe mode.

None of these changed the behavior. It still opens the tabs that were last opened.

I am running V25.0. Any suggestions? This is a major annoyance.

Firefox, out of the blue, started to always show my tabs from the last session when it is started. I checked that Firefox not listed in the task manager list after closing. So I tried the following: - changing the option "when Firefox starts" to all three of the available choices - change the browser.startup.page setting to 0 manually via "About:config" - starting Firefox in safe mode. None of these changed the behavior. It still opens the tabs that were last opened. I am running V25.0. Any suggestions? This is a major annoyance.

被采纳的解决方案

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


The user.js file is only present if you or other software has created it, so normally it wouldn't be there. you can check its content with a plain text editor if you didn't create this file yourself.

The user.js file is read each time you start Firefox 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.

定位到答案原位置 👍 0

所有回复 (9)

more options

Hello,

Please make sure that you have not activated Firefox's restore tabs feature. See the article here:

Configuring session restore

If it is enabled then you can disable it by following the instructions in that article.

I hope that helps. Let me know if not.

EDIT: sorry I linked to the wrong article. Fixed now.

由Ed于修改

more options

Thanks for responding. When I wrote that I tried "changing the option 'when Firefox starts' to all three of the available choices" that's what I had meant I had tried.

So that "configuring session restore" setting is definitely set to show my home page currently but Firefox still loads what ever windows were open when it was closed.

more options

Firefox will also automatically restore your previous session if it thinks it crashed (i.e., it did not shut down correctly). To see whether that is happening, you can change a setting so that instead of automatically restoring the session, Firefox display a list of windows and tabs. If you see that, it's a sure sign that Firefox did not shut down correctly and we can focus on figuring out why that's happening.

Here's how to make the change:

(1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.

(2) In the search box in that tab, type or paste sessions and pause while the list is filtered

(3) Double-click browser.sessionstore.max_resumed_crashes and change the 1 to a 0 (a zero) and OK that.

(4) You can close this tab now.

Any difference at the next startup?

more options

Another user here had the same issue:

https://support.mozilla.org/en-US/questions/976043

It was solved by doing a Firefox Reset.

Refresh Firefox - reset add-ons and settings

Note that your bookmarks, history etc will be saved after the reset but you will need to reinstall your addons.

more options

选择的解决方案

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


The user.js file is only present if you or other software has created it, so normally it wouldn't be there. you can check its content with a plain text editor if you didn't create this file yourself.

The user.js file is read each time you start Firefox 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.

more options

Hi,

I finally got a chance to try browser.sessionstore.max_resumed_crashes. There was no difference upon reloading. It reloaded the tabs that were open when Firefox closed.

由loondawg于修改

more options

@cor-el - You nailed it. There was a user.js file which had the variable browser.sessionstore.resume_session_once pref to true.


Although I don't know when//how/why it was created, it also had a value from yahoo.ytff.general....


So I renamed user.js to user.old, restarted, and everything is back to normal.

Thank you very much for your help.

由loondawg于修改

more options

The mention of yahoo makes me think it might have been some kind of malware / junkware / unwanted toobar type software which was hijacking your browser settings.

I suggest running some scans to make sure you have got rid of anything nasty:

Also have a check through your windows installed programs and uninstall anything that looks suspicious or that you didn't install yourself.

Hopefully that will prevent the software that caused the original problem from hanging around and trying to make further changes.

由Ed于修改

more options

ytff is the Yahoo Toolbar for Firefox, so if you have or had this toolbar then it is likely that that added the entries to this file (there might be be a setting to disable this feature).