According to everything I've read, Firefox 3.5+ supports localStorage. And yet I'm seeing the alert (failing) in Firefox 3.6. Do I have some strange settings in my Firefox? Any ideas?
function supports_html5_storage() {
try {
return 'localStorage' in window && window['localStorage'] !== null;
} catch (e) {
alert('failing');
return false;
}
}
Note: The page has an HTML5 doctype (though I think this makes no difference).
e
.e
is[Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "http://[domain name elided]/public/javascripts/switch_style.js Line: 18"]
about:config
I haddom.storage.enabled
set tofalse
. I don't recall doing that. It may be something to do with NoScript (though javascript was enabled).