diff --git a/mozilla/widget/src/cocoa/nsChildView.h b/mozilla/widget/src/cocoa/nsChildView.h index 9195533f7e3..1f691fe5c7c 100644 --- a/mozilla/widget/src/cocoa/nsChildView.h +++ b/mozilla/widget/src/cocoa/nsChildView.h @@ -94,6 +94,8 @@ class nsIEventSink; isChar:(PRBool*)outIsChar toGeckoEvent:(nsKeyEvent*)outGeckoEvent; +-(NSMenu*)getContextMenu; + @end diff --git a/mozilla/widget/src/cocoa/nsChildView.mm b/mozilla/widget/src/cocoa/nsChildView.mm index 1a0694db931..1df85b76c24 100644 --- a/mozilla/widget/src/cocoa/nsChildView.mm +++ b/mozilla/widget/src/cocoa/nsChildView.mm @@ -1707,9 +1707,13 @@ nsChildView::GetQuickDrawPort() mGeckoChild->DispatchMouseEvent(geckoEvent); // Go up our view chain to fetch the correct menu to return. - return [[self superview] getContextMenu]; + return [self getContextMenu]; } +-(NSMenu*)getContextMenu +{ + return [[self superview] getContextMenu]; +} // // initWithGeckoChild:eventSink: