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

搜索 | 用户支持

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

详细了解

Firefox 7.0.1 ignoring custom settings for 'Clear History'

  • 19 个回答
  • 1 人有此问题
  • 14 次查看
  • 最后回复者为 Holmemoss

more options

I have a MacBook Pro with OS 10.6.8 and Firefox 7.0.1

Under Preferences > Privacy, I have custom settings to clear browsing history every time Firefox closes.

However, when I relaunch Firefox, the 'Restore Previous Session' is highlighted under the History menu and I can restore the previous session.

How is this happening?

Thank you.

I have a MacBook Pro with OS 10.6.8 and Firefox 7.0.1 Under Preferences > Privacy, I have custom settings to clear browsing history every time Firefox closes. However, when I relaunch Firefox, the 'Restore Previous Session' is highlighted under the History menu and I can restore the previous session. How is this happening? Thank you.

所有回复 (19)

more options

On Windows, there are two places for the "clearing history" option for FF, there's a second one under "Advanced" and "Security".

Do you have that option on Mac?

more options

No, there is no 'Security' tab under the Advanced Preferences on the Mac version.

more options

Sorry, but I have Windows...hopefully somebody will roll out of bed and help you soon!

Good luck!

more options

It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.

Delete the files sessionstore.js [2] and sessionstore.bak in the Firefox Profile Folder.

If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).

See also:

more options

Thank you.

There is a sessionstore.js file in the Profile Folder but no sessionstore.bak file nor any other sessionstore files.

I quit Firefox, deleted the sessionstore.js file, relaunched Firefox and went to one web site. I quit Firefox again, relaunched Firefox but 'Restore Previous Session' was still highlighted and did remember the one web site.

more options
  • Try this.
  • Type in the address bar about:config.
  • Accept the warning.
  • In the page that appears, in the Filter box, type browser.sessionstore.restore_on_demand
  • Change the boolean value to false (which is probably set to true in your case).
  • Close the about:config page.
  • Restart the browser

由amkeew于修改

more options

Thank you but when I type browser.sessionstore.restore_on_demand in the Filter box there is nothing there.

more options

May be it's different in mac. Try typing just "restore" and what it brings.

more options

There is browser.sessionstore.restore_hidden_tabs but it is set to false

more options

If you have private browsing mode, enable it and see what happens.

more options

No history and no 'Restore Previous Session' is maintained in Private Browsing mode.

more options

Are any sessionstore pref user set (bold) on the about:config page to indicate that they got changed?

more options

There are the following boolean type files under browser.sessionstore, none of which are in bold

.restore_hidden_tabs set to false

.resume_from_crash set to true

.resume_session_once set to false

There are several integer files including

.privacy_level, the integer being 0

.privacy_level_deferred, the integer being 1

more options

Change .resume_from_crash to false and see what happens.

more options

No difference, 'Restore Previous Session' is still there.

more options

Then I suggest a clean reinstall of FF. Use a free program like revo uninstaller to remove the old FF. Export your bookmarks to a html file before you uninstall the old FF.

more options

Thank you. I have AppDelete so I shall give it a try.

One question before I do; will this also delete my add-ons?

more options

Yes, the add-ons will be deleted. Better to save your add-ons page so that you can re-install them.

more options

I tried that but it is still the same with 'Restore Previous Session' still being there.

Thank you astrocatlady, cor-el and amkeew for trying to help. There is something amiss so I have gone into permanent Private Browsing mode.