Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox: "TypeError: localStorage is null"

http://www.frostjedi.com/terra/scripts/demo/localstorage.html

When I view that website in IE or Chrome, add data, hit the save button, go to another website and then go back to that one, the data is still there. But in Firefox it isn't. The error log has a "TypeError: localStorage is null" message in it.

Any ideas?

Thanks!

like image 501
neubert Avatar asked Sep 04 '12 16:09

neubert


1 Answers

Ensure that you are using the latest version of Firefox.

If you are using the latest version of Firefox and it still does not work then ensure DOM Storage is enabled.

Type about:config in your address bar and hit Enter to view your internal browser settings.

Scroll down to dom.storage.enabled, if it is disabled then right click on it and hit Toggle to enable the DOM Storage.

Source: http://webdevwonders.com/clear-dom-storage/

like image 195
Adam Avatar answered Oct 10 '22 16:10

Adam