Closed Bug 618581 Opened 14 years ago Closed 13 years ago

IndexedDB: Adjust quota for mobile use

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bent.mozilla, Assigned: azakai)

References

Details

(Whiteboard: [fennec-6])

Attachments

(1 file)

IndexedDB is designed to allow a website to store large quantities of data on disk somewhere. For desktop Firefox we prompt once to allow a website to create a database and then allow up to 50 MB of storage. If the website tries to use more than 50 MB we prompt again and, if the user agrees, we allow unlimited storage. I'm not sure how Fennec will want to handle this, but at the very least I expec that 50 MB is a bit large. That pref lives here:

https://mxr.mozilla.org/mozilla-central/source/modules/libpref/src/init/all.js#102
Assignee: nobody → doug.turner
tracking-fennec: --- → 2.0b4+
tracking-fennec: 2.0b4+ → ?
Depends on: 619494
tracking-fennec: ? → 2.0-
nothing to do here until indexeddb works in e10s.
Assignee: doug.turner → nobody
tracking-fennec: 2.0- → 2.0next+
Assignee: nobody → azakai
Attached patch patch?Splinter Review
Not sure what we want to set this to. How about 5MB?

Although most mobile phones these days have a few GB of storage, so maybe this isn't that important...
Is indexedDB even turned on for mobile yet?
There is a patch for that, waiting for review from bent, bug 619494.
depends where the data is stored.  if the db is on the sdcard, it probably doesn't matter much..  however, if it is on internal memory, them maybe a lower limit is better.
Whiteboard: [fennec-6]
Attachment #525090 - Flags: review?(mark.finkle)
Comment on attachment 525090 [details] [diff] [review]
patch?

This is good for now. I was going to suggest using the sdcard, but I realize a problem:
* the sdcard might not exist whn the file is first created. we can't change locations now, the previously stored data would be lost
* the sdcard could be removed, causing all the data to be lost.

I think we should keep the data with the profile. We can already move the profile to an sdcard, so that's what we have to work with. Let's not add any extra complexity.
Attachment #525090 - Flags: review?(mark.finkle) → review+
http://hg.mozilla.org/mozilla-central/rev/4d304d0b409d
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Can someone please provide some steps to reproduce for this bug?
STR could be to visit a website that uses IndexedDB, and requests 10MB more after the initial granting of permission. With this bug fixed, we should prompt for allowing the additional 10MB.
Flags: in-litmus?(martijn.martijn)
tracking-fennec: 2.0next+ → ---
Flags: in-litmus?(martijn.martijn)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: