Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

LocalStorage limit incorrect #467

Open
rtholmes opened this issue Sep 4, 2013 · 0 comments
Open

LocalStorage limit incorrect #467

rtholmes opened this issue Sep 4, 2013 · 0 comments

Comments

@rtholmes
Copy link

rtholmes commented Sep 4, 2013

https://developer.blackberry.com/html5/api/localstorage.html

Specifies that bb10 allows up to 25 MB to be written to the local storage, but on BB v10.1.0.4181 I see:

`ERROR: (QUOTA_EXCEEDED_ERR): QUOTA_EXCEEDED_ERR: DOM Exception 22``

when writing a small string to a local store that contains 4.9917 MB of data.

The total was computed with:

var total = 0; for(var x in localStorage) {var val = ((localStorage[x].length * 2)/1024/1024); if (val > 0.1) console.log(x+" "+val)};

The docs should be updated to reflect that the 5 MB limit remains with BB10 (or that it was changed for some future version, if this is the case).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant