On Fri, Apr 3, 2015 at 11:47 PM, Gian-Carlo Pascutto <g...@mozilla.com> wrote:
>
>> The IndexedDB API does not currently have a way to say "no, really, I
>> want to make sure that this important data is saved to disk before I
>> continue".
>
> Do our internal APIs offer this?
>
> Android can kill Firefox at any time it requires more memory. It seems
> prudent to at least commit when we're being backgrounded, or you're
> going to be in the dataloss scenario a hell of a lot of times.

I tried to explain this, but I don't think it was particularly clear.

Once the "complete" event has fired, the data has been completely
transferred to the OS. At that point, any gecko process crashing or
getting killed will not be a problem. Only if the kernel panics, or if
the battery is pulled out, or if the device is hit by one of these[1],
will there be dataloss.

[1] 
http://www.hutchinsontransmission.com/sites/default/files/8steamroller-poly-v.png

/ Jonas
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to