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

LocalStorage limit incorrect #467

@rtholmes

Description

@rtholmes

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions