From f3263acf2e1e5379c21b2d994f54a0fd20ed52d3 Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Tue, 8 Apr 2008 19:56:13 +0000 Subject: [PATCH] don't send two right mouse up events into Gecko for each real right mouse up event. fixes context menus in Google spreadsheets. b=418689 r=smichaud sr=vlad --- widget/src/cocoa/nsChildView.mm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/widget/src/cocoa/nsChildView.mm b/widget/src/cocoa/nsChildView.mm index a3c69a231c7..1251bd1e3a6 100644 --- a/widget/src/cocoa/nsChildView.mm +++ b/widget/src/cocoa/nsChildView.mm @@ -3146,12 +3146,7 @@ static nsEventStatus SendGeckoMouseEnterOrExitEvent(PRBool isTrusted, geckoEvent.nativeMsg = &macEvent; nsAutoRetainCocoaObject kungFuDeathGrip(self); - PRBool handled = mGeckoChild->DispatchMouseEvent(geckoEvent); - if (!mGeckoChild) - return; - - if (!handled) - [super rightMouseUp:theEvent]; + mGeckoChild->DispatchMouseEvent(geckoEvent); NS_OBJC_END_TRY_ABORT_BLOCK; }