On 06/07/2013 07:01 PM, Jonas Sicking wrote:
On Thu, Jun 6, 2013 at 10:00 PM, Fabrice Desre <[email protected]> wrote:
- Update data jars to be usable on the sdcard. Ben thinks that this is
doable for indexedDB. That may be harder for other stores that use a
common db for all apps.
This part is actually quite a lot of work. Cookies, localStorage and
appcache are all heavily intertwined with the gecko profile, and for
most 3rd party apps that's where basically all of the data is going to
be stored.
Appcache needs to be rewritten for a few other reasons anyway, so
while it is a big chunk of work, maybe we should just suck up and do
it.
LocalStorage was recently rewritten and so is in much better shape.
Fixing this is likely a lot less work. But it does mean that we have
to change form having one bid database for all data, to having
separate databases per origin.
Cookies I have no idea what's involved with separating storage on a
per-app basis.
/ Jonas
Cookies would not actually be that hard, I think. We already have a
(ugly) system that changes the database handle based on private
browsing, so it's not too hard to envision a system that grabs a
database pointer out of a hashtable based on the requesting app.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g