Hi dev environment: Windows and VS, win32[c++] Background: I have a callback function which loads the url using nsIWebNavigation object. This call back function is called through some RPC. Current process of getting nsIWebNavigation object: 1. In method "OnStateChange", created nsIProxyObjectManager object using nsIServiceManager object. 2. called GetProxyForObject of nsIProxyObjectManager , to get thread safe nsIWebProgress object instance from the input parameter object onStateChange. 3. called do_QueryInterface function to get nsIWebNavigation object from thread safe nsIWebProgress object and saved "nsIWebNavigation " object in a static variable 4. Now Using nsIWebNavigation object, in the callback function [ which is called by a RPC, asynchronously ], load a specific URI using LoadURI.
But now nsIProxyObjectManager is obsolete and I am not sure how to get a thread safe object to nsIWebNavigation from nsIWebProgress[ which is passed to "onStateChange" function. 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] Any help on this is appreciated. Regards Salila _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform