Reading File with Worker

Talk about add-ons and extension development.
Post Reply
thomas duncan
Posts: 6
Joined: August 17th, 2011, 8:30 am

Reading File with Worker

Post by thomas duncan »

For my current extension I want to read Data from a File in a different thread than the main one. The reason for this is that I have to parse about 5MBit. If I do that at the start up of Firefox in the main thread, Firefox has a delay of 17 seconds, which is way too much.

I thought I could solve this with Workers and javascript code modules but the Workers are forbidden to access the Components, which I need in order to read the file. Therefore I was wondering if there is another way of doing this in order to prevent my extension from delaying Firefox at start up.

Thanks for your support in advance.
thomas duncan
Posts: 6
Joined: August 17th, 2011, 8:30 am

Re: Reading File with Worker

Post by thomas duncan »

I forgot to mention that I want to run the extension on firefox 3.6
poleta33
Posts: 120
Joined: October 14th, 2004, 2:06 pm

Re: Reading File with Worker

Post by poleta33 »

have you found a solution : I've the same problem...
Post Reply