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:
peterlubczynski%netscape.com
2002-04-13 01:46:31 +00:00
parent 9ac8a77967
commit 281be23cd5

View File

@@ -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