MozillaZine

Reading File with Worker

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

Post Posted August 19th, 2011, 6:36 am

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

Post Posted August 19th, 2011, 7:25 am

I forgot to mention that I want to run the extension on firefox 3.6

poleta33
 
Posts: 114
Joined: October 14th, 2004, 2:06 pm

Post Posted February 23rd, 2017, 6:25 am

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

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 3 guests