From 281be23cd56a37b88b8eff0bf9499f0c3abd5c09 Mon Sep 17 00:00:00 2001 From: "peterlubczynski%netscape.com" Date: Sat, 13 Apr 2002 01:46:31 +0000 Subject: [PATCH] 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 --- mozilla/modules/plugin/base/src/nsPluginViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/modules/plugin/base/src/nsPluginViewer.cpp b/mozilla/modules/plugin/base/src/nsPluginViewer.cpp index 37804299c7e..9370b5e5fda 100644 --- a/mozilla/modules/plugin/base/src/nsPluginViewer.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginViewer.cpp @@ -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