-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/29/2012 04:05 PM, Vivien wrote:
> On 29/02/2012 15:30, Mathieu Rochette wrote:
>> hello,
>>
>> I'm trying to build a webapp to read eBook (and store,
>> synchronize them between devices, etc.), I have a prototype to
>> render epub.
>
> Yeah!
>
>>
>> I have two questions:
>>
>> - I'm trying to move intensive operation to web workers (eg:
>> unzip, xml parsing) but I have a problem with xml parsing,
>> DOMParser is not availlable in web worker. is it intentional? I
>> can understand why access to the page document is disable but why
>> not manipulating other document?
>
> From what I know, DOM is not threadsafe, so you can't access it
> from a worker.
well I guess I can't use worker then… unless I parse XML manually. too bad
>
>> - I'm currently using sessionStorage for offline storage of
>> ebooks but the size is rather limited and I heard it's not very
>> efficient. should I rather use indexDB? even if it's not much
>> supported yet (web worker binding or other browsers)
>
> In Gaia we are currently using a lot indexedDB. Sounds a good
> solution to me. You will have to send message to the main thread
> though.
that's what I thought, I'll give a look at indexDB
>
>>
>>
>> that said, I'm glad B2G came up and hope it will succeed as it
>> should! I've read somewhere an eBook reader is intented to be
>> provided with Gaia. Who should I talk to if I want to help,
>> contribute to what is already existing or start something?
>
> Nothing has started yet on this side, so it you provide a pull
> request soon maybe the Gaia team will iterate from your code ;)
okay, I guess I'll have something by mid-march
>
>>
>>
>> if any question is not for this mailing list, please excuse me
>> and tell me where I should go
>>
>
> This is the correct mailing-list as far as I can tell. If you want
> to discuss Gaia things more specifically there is also a #gaia chan
> on
irc.mozilla.org.
>
> Vivien.
>
thank you!
- --
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJPUkNxAAoJEOTNT24qjXE/k7QH/1nMUARjn6NMl+OZaJapKC1Z
TtWwsR5vfabjnfHHjdGtkP+DgJU4colcTBv1C1khBKhyev7sgaPKV+W3KRZjN7HC
d1NZx5ZKeGtV0+BInNBJ/eajzG+5I2OhxDXZ0fNuUivI4UIqekGazyqjQdqvsZgm
OBgKQB1P4Cb/bQU7KNNVROrKGRDZudIG929sVkrecoZ0Cv1gjuOqohBfBIlO1C0V
784DasM8xAwM7qAayS0v4QmkYzCq9xsUM38BPYRuZn7LFeOuFYdYaZs7CMWpvWAy
nrvCjIN24ydEL03r/5lv0fsTwrruldhUn8HdG8DbqpYZnhkE1MtMaXkm4Xj6odw=
=NBdr
-----END PGP SIGNATURE-----