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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user