Stop sending bogus menu events to full-page plugins bug 93895 r=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@118896 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1297,7 +1297,7 @@ void pluginInstanceOwner::GUItoMacEvent(const nsGUIEvent& anEvent, EventRecord&
|
||||
nsEventStatus pluginInstanceOwner::ProcessEvent(const nsGUIEvent& anEvent)
|
||||
{
|
||||
nsEventStatus rv = nsEventStatus_eIgnore;
|
||||
if (!mInstance || !mWindow) // if the instance or the window is null, we shouldn't be here
|
||||
if (!mInstance || !mWindow || anEvent.message == NS_MENU_SELECTED)
|
||||
return rv;
|
||||
|
||||
#ifdef XP_MAC
|
||||
|
||||
Reference in New Issue
Block a user