本文介绍了在Mac上的Firefox 6.0.2中,localStorage刚刚中断吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在玩HTML5.为此,我使用localStorage创建了一些小的Javascript小部件.直到昨天,Firefox的表现还是不错的.

I'm playing around with HTML5. For that purpose I created some small Javascript widget using localStorage amongst other things. Up until yesterday Firefox played nice.

然后6.0.2出现了,突然localStorage对象为null.

Then 6.0.2 came around and suddenly the localStorage object is null.

转到 http://html5test.com 显示不支持本地存储.

Going to http://html5test.com shows that Local Storage is not supported.

使用Chrome浏览器查看完全相同的代码(位于 http://scriptonomicon.dk/CCDashboard/index.html )工作正常.在Windows(7)上使用Firefox 6.0.2效果很好.

Using Chrome to view the exact same code (found at http://scriptonomicon.dk/CCDashboard/index.html) works fine. Using Firefox 6.0.2 on Windows (7) works just fine.

其他人是否经历过Mac上的Firefox 6.0.2破坏了本地存储的问题?

Has anyone else experienced that localstorage is broken on Firefox 6.0.2 on Mac?

推荐答案

您应检查存储首选项,在位置栏中键入about:config.相关首选项为:

You should check the storage preferences, type about:config into the location bar. The relevant preferences are:

  • dom.storage.enabled-显然应该是true
  • dom.storage.default_quota-默认值为5120
  • dom.storage.enabled - should obviously be true
  • dom.storage.default_quota - default value is 5120

这篇关于在Mac上的Firefox 6.0.2中,localStorage刚刚中断吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 23:19