Thanks for the reply Neil.
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. I will be grateful to you 
always.

Regards
Salila

On Tuesday, July 31, 2012 3:06:49 PM UTC+5:30, Neil wrote:
> sali...@gmail.com wrote:
> 
> 
> 
> >I have gone through the document 
> >"https://developer.mozilla.org/en/XPCOM/Making_cross-thread_calls_using_runnables";,
> > which tells about how to run a method asynchronously. I hove no issue in 
> >calling the a method asynchronously. I have problem in sharing the object 
> >between main thread and callback [nsIWebNavigation object]
> 
> >  
> 
> >
> 
> You don't need to share the object between threads, because your 
> 
> runnable will run on the main thread, which is where you got your 
> 
> nsIWebNavigation object in the first place.
> 
> 
> 
> -- 
> 
> Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to