Fix for crash after sending wrong events to full-page plugins. Ensure only events for our widget are sent to the plugin. Fixes crash with Quicktime if selecting disabled menu items. r=bneese sr=attinasi Bug 102727

git-svn-id: svn://10.0.0.236/trunk@118122 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterlubczynski%netscape.com
2002-04-04 15:20:07 +00:00
parent 22757bb174
commit bbc0fd4dea

View File

@@ -546,7 +546,7 @@ HandlePluginEvent(nsGUIEvent *aEvent)
void *clientData;
(nsIWidget*)(aEvent->widget)->GetClientData(clientData);
PluginViewerImpl * pluginViewer = (PluginViewerImpl *)clientData;
if (pluginViewer != nsnull && pluginViewer->mOwner != nsnull)
if (pluginViewer && pluginViewer->mOwner && pluginViewer->mWindow == aEvent->widget)
return pluginViewer->mOwner->ProcessEvent(*aEvent);
#endif // XP_MAC
}