I have the following code which uses the SWT embedded mozilla browser:
nsIDOMWindow domWindow = webBrowser.getContentDOMWindow();
nsIDOMDocumentEvent domDocumentEvent = (nsIDOMDocumentEvent) 
 
domWindow.getDocument().queryInterface(nsIDOMDocumentEvent.NS_IDOMDOCUMENTEVENT_IID);
 

nsIDOMMouseEvent domEvent = (nsIDOMMouseEvent)
   domDocumentEvent.createEvent("MouseEvents");

The create event throws a runtime error:
pure virtual function call, and then the entire application hangs.

any ideas?

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

Reply via email to