X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

What is the storage limitation for "indexDB" in Firefox 4?

Posted

What is the storage limitation for "indexDB" in Firefox 4?

I need to know because I am writing an application with significant local storage requirements.

More then the 5 mb limit in the Local Storage API.

Your response is appreciated.

Thanks, David

Chosen solution

If the user grants permission for a site to exceed the 50 MB IndexedDB quota, then as far as I know Firefox does not impose any more limits. The only limits on the size of the IndexedDB database will be the user's disk space and operating system.

The localStorage quota is 5000KB, and there is no way for a web site to ask the browser for permission to store more than that amount in localStorage.

Read this answer in context 2

Additional System Details

Installed Plug-ins

Not Applicable

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

More Information

Matt Brubeck 147 solutions 1390 answers

Helpful Reply

By default in Firefox 4, a site can use up to 50MB of IndexedDB storage. If it tries to use more than 50MB, Firefox will ask the user for permission: http://mxr.mozilla.org/mozilla-central/source/modules/libpref/src/init/all.js#101

In Firefox for mobile devices (Google Android and Nokia Maemo), Firefox will ask for permission if a site tries to use more than 5MB: http://mxr.mozilla.org/mozilla-central/source/mobile/app/mobile.js#571

Question owner

Thanks, this is great to know. A few more questions, if possible.

Will Firefox ask for permission if a site tries to use more than 5MB of "LocalStorage API"? Or is LocalStorage API strictly restricted to 5MB?

What are the maximum limits of local storage and indexDB storage, after getting all the permissions ? Can I put 4 gig in localstorage? in indexDB?

Thanks again for the great info! David

Matt Brubeck 147 solutions 1390 answers

Chosen Solution

If the user grants permission for a site to exceed the 50 MB IndexedDB quota, then as far as I know Firefox does not impose any more limits. The only limits on the size of the IndexedDB database will be the user's disk space and operating system.

The localStorage quota is 5000KB, and there is no way for a web site to ask the browser for permission to store more than that amount in localStorage.

neemanjabuge 0 solutions 1 answers

Hello, I'm using indexedDB, and when store more then 50mb, after that can't delete or clear that object store, just got an error without any more information why is error ocured.

the-edmeister
  • Top 10 Contributor
  • Moderator
3202 solutions 24440 answers

neemanjabuge started a thread here:
https://support.mozilla.com/en-US/questions/837358