Changing 50MB Local Storage Limitation

6,145 views
Skip to first unread message

finitefield

unread,
Sep 28, 2010, 7:10:15 AM9/28/10
to Chromium-discuss
Hello. I am developing a web app that uses a lot of data. I want to
store it in localStorage, but there is a limitation of 50MB.
And I heard there is no such limitation for chrome extensions.
I agree that there is a need of limitation in order to protect the
user from malicious web apps consuming local storage.
But there is also a need of using more than the limitation.

So my suggestion is:
A user can give a privilege to a certain web site to use local storage
more than normal limitation.
And a chrome web store manifest can contain it so that it can be
accepted by a user.

PhistucK

unread,
Sep 28, 2010, 7:24:30 AM9/28/10
to finit...@gmail.com, Chromium-discuss
1. The limit is 5MB, not 50MB.
2. Are you not familiar with the Chrome Web App concept? there is a permission called "unlimitedStorage", which lets websites have precisely that. It requires an installation, of course.
chromium-apps is a discussion group that is meant for discussion Chrome Web Apps, so you are welcome to join and ask for more information about anything you do not understand, after reading the documentation I referenced above.

Enjoy. :)

PhistucK




--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-discuss

finitefield

unread,
Sep 28, 2010, 7:36:42 AM9/28/10
to Chromium-discuss
Oh, Thank you.

Jiří Špác

unread,
Sep 7, 2012, 5:53:02 PM9/7/12
to chromium...@chromium.org, finit...@gmail.com
great advice, thx!

It seems weird, that Chrome doesn't have a function like localStorage.remainingSpace() which would return remaining space. It could be handy for those, who cannot deploy their data heavy web app as native chrome app.
There are still ways of going around it(http://arty.name/localstorage.html) , but still...having the  localStorage.remainingSpace() would be the best.

Dne úterý, 28. září 2010 13:24:30 UTC+2 PhistucK napsal(a):

PhistucK

unread,
Sep 8, 2012, 3:23:43 AM9/8/12
to cap...@gmail.com, chromium...@chromium.org, finit...@gmail.com
I guess -
function remainingLocalStorageSpace()
{
 return 25e5 - JSON.stringify(localStorage).length;
}
Should be a pretty good estimation.

PhistucK
Reply all
Reply to author
Forward
0 new messages