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