зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
a19a0b568d
Коммит
f3263acf2e
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче