html5 - Is there a security reason for not being able to query localstorage size -


per mdn seems there's no built in way query available size of local storage. there security reason this? if not why not implemented?

simply put - not implemented yet. ie example has .remainingstorage. there an issue in chromium bug tracker on that's still open , there pull request ready wasn't yet merged.

i doubt in browser people hate localstorage because of performance implications (because it's sync). it's not in spec suggests aribtrary 5mb limit.

you can calculate by pushing bigger , bigger strings , seeing fails that's not particularly idea either.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -