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
Post a Comment