Any idea how to check the remaining storage space in an HTML5 localstorage data store?
I don't know if this helps, but you can check if it full.
“QUOTA_EXCEEDED_ERR” is the exception that will get thrown if you exceed your storage quota of 5 megabytes.
And this other answer might be related.