Bug 426643 - (Mac) Remove safety check before bringing up context menu. r=smichaud

This commit is contained in:
Mehdi Mulani 2011-06-01 21:18:27 -04:00
parent 153ae08f6b
commit 01796a73e7

View File

@ -3628,12 +3628,12 @@ NSEvent* gLastDragMouseDownEvent = nil;
geckoEvent.pluginEvent = &cocoaEvent;
}
PRBool handled = mGeckoChild->DispatchWindowEvent(geckoEvent);
mGeckoChild->DispatchWindowEvent(geckoEvent);
if (!mGeckoChild)
return;
if (!handled)
[super rightMouseDown:theEvent]; // let the superview do context menu stuff
// Let the superclass do the context menu stuff.
[super rightMouseDown:theEvent];
NS_OBJC_END_TRY_ABORT_BLOCK;
}