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.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to