搜索 | 用户支持

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

详细了解

How do I stop FF from deleting my local storage when I close a tab (not in private window)?

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

more options

I have a web page that saves some data into local storage (localStorage.setItem). When I either close the tab or close the browser, the data is removed. When I use Chrome, the data is still there.

Is this normal behavior for FireFox? How can I have the data persist? Do I need to configure FireFox differently?

Thanks, -JT

I have a web page that saves some data into local storage (localStorage.setItem). When I either close the tab or close the browser, the data is removed. When I use Chrome, the data is still there. Is this normal behavior for FireFox? How can I have the data persist? Do I need to configure FireFox differently? Thanks, -JT

所有回复 (2)

more options

Try setting your settings to not clear cookies/local storage in the options menu.

more options

This is possibly done by one of your extensions.

Start Firefox in Safe Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration is is causing the problem.

  • switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Appearance
  • do NOT click the "Refresh Firefox" button on the Safe Mode start window