Hi, I've tried implementing nsIContextMenuListener, but the OnShowContextMenu function is never called.
What I did: I've inherited my class from this interface, added the proper macro and on init added the following: nsCOMPtr<nsIContextMenuListener> listener1(NS_STATIC_CAST(nsIContextMenuListener*, this)); nsCOMPtr<nsIWeakReference> menuListener(do_GetWeakReference(listener1)); m_webBrowser->AddWebBrowserListener(menuListener, NS_GET_IID(nsIContextMenuListener)); Can someone tell me what am I doing wrong? Thanks, yakobom _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
