On Friday, August 3, 2012 3:45:59 PM UTC+5:30, salil...@gmail.com wrote:
> On Wednesday, August 1, 2012 3:33:20 PM UTC+5:30, Neil wrote: > 
> sali...@gmail.com wrote: >My use case is, I have RPC listener in addon, which 
> is called from some other application. On receiving of RPC event, I need to 
> load a specific URL to the browser. For this I need nsIWebNavigation object 
> in RPC handler. > >If there is a way to load the URL to the browser from 
> addon [not from main thread, RPC call back function], please let me know. > 
> You need to dispatch a runnable to the main thread; the runnable can then 
> access the nsIWebNavigation object. You can acquire your nsIWebNavigation 
> object from your runnable or you can acquire it from some other main thread 
> code prior to invoking your RPC operation. -- Warning: May contain traces of 
> nuts. Hi Neil, Thanks for the reply. I understood the concept like this. - Do 
> I need to derive my main thread class from runnable class? I am not very 
> clear about how to you dispatch runnable to main thread. It will be great if 
> you could put th
 ose details in few works. Sorry for trubling you. Regards Salila

Thanks Neil, I found the solution. Thanks for your time and knowledge

With Warm Regards
Salila
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to