I'm writing a Java application that embeds Mozilla browser into AWT/Swing container using JavaXPCOM. I create an instance of nsIWebBrowser, query nsIBaseWindow interface from it and call to initWindow() and create() with a native HWND of AWT container as a parameter.

I noticed (with Spy++) that Mozilla creates some window inside the provided container, but it doesn't repaint and react on any events. Then I found that if I call to run() method of nsIAppStartup service, the browser begins to dispatch all the messages, but in that case my application never exits even after appStartup.quit() and Mozilla.termEmbedding(). Do I need to run the message pump is a distinct thread? Is there any other way to have all the browser UI events dispatched?

Thanks in advance

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to