Closed Bug 142510 Opened 22 years ago Closed 6 years ago

Need access to OnShowContextMenu()

Categories

(Core Graveyard :: Embedding: GTK Widget, enhancement)

Sun
Solaris
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: galfandary, Assigned: blizzard)

References

Details

Attachments

(1 file)

EmbedWindow needs to implement nsIContextMenuListener
and forward a corresponding signal to the embedded widget.
Status: UNCONFIRMED → NEW
Ever confirmed: true
This patch implements a "dom_context_menu" signal on GtkMozEmbed.
Comment on attachment 143136 [details] [diff] [review]
proposed implementation

Asking for r/sr
Attachment #143136 - Flags: superreview?(bryner)
Attachment #143136 - Flags: review?(blizzard)
Comment on attachment 143136 [details] [diff] [review]
proposed implementation

Looks fine given how the other event listeners are implemented.

However, I'm a bit worried about event cancellation being implemented by
returning something other than NS_OK from the DOM event listener.  That doesn't
really accomplish much afaik.  It seems like you'd want a boolean which would
then cause event->PreventDefault() to be called if it is set by the signal
callback.  I'm ok with cleaning this up later though.
Attachment #143136 - Flags: superreview?(bryner) → superreview+
Comment on attachment 143136 [details] [diff] [review]
proposed implementation

I hate to be a jerk but I would rather get the event handling right.  We have
enough problems with event handling as it is.
Attachment #143136 - Flags: review?(blizzard) → review-
*** Bug 206713 has been marked as a duplicate of this bug. ***
QA Contact: pavlov → gtk-widget
Product: Core → Core Graveyard
Embedding: GTK Widget isn't a thing, closing.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: