Embedding currently has no ability to do a context menu. In some way we are going to have to hook up a xul window to provide the context menus for our embedding.
Sorry for the spam, changing QA contact.
QA Contact: paulmac → jrgm
Assignee: travis → adamlock
The easiest way to implement popups with no explicit support from mozilla is to register a mouse DOM event listener on the current document. When the MouseDown event fires, use the nsIDOMMouseEvent to ensure that it's the rightmouse button and to get the DOM node/element was clicked on. I'm currently thinking of ways I could put some of this code into webbrowser. Ideally I would like webbrowser to detect the right mouse click and and notify the client to deal with it. How abstract this should be is undecided.
I also investigated webbrowser and noticed that it always assumes that it's the topmost content docshelltreeitem, never chrome. If we intend to allow XUL popup menus, then webbrowser will have to be a chrome docshelltree item so that we can attach a XUL popup handler to an invisible chrome wrapper around the content that catches mouse events.
Adding requirement of 48220 to here: nsIContextMenuListener needs an input field enum
*** Bug 48220 has been marked as a duplicate of this bug. ***
Fix checked in
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
How can I verify this bug
Blanca, there are two ways: 1. Take my word for it that it's working :) 2. Build mozilla/embedding/browser/activex/tests/cbrowse on Win32. Install the Mozilla ActiveX control as per the instructions on http://www.iol.ie/~locka/mozilla/mozilla.htm. Run CBrowse, selecting the Mozilla control to test. Browse to a web page, e.g. http://www.mozilla.org and right click anywhere on it. If a popup menu appears, the context menu code is working.
Updating QA Contact
QA Contact: jrgm → mdunn
Correction: Changing QA contact for the Embed API bugs to David Epstein.
QA Contact: mdunn → depstein
change qa contact to dsirnapalli. He'll work with context menus.
In mfcEmbed the context menu is working.This mean embedding currently has the ability to do a context menu. marking it to verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.