Fix for crash in pluginInstanceOwner::ProcessEvent when mWindow is null bug 96648, r=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@105375 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1183,7 +1183,7 @@ void pluginInstanceOwner::GUItoMacEvent(const nsGUIEvent& anEvent, EventRecord&
|
||||
nsEventStatus pluginInstanceOwner::ProcessEvent(const nsGUIEvent& anEvent)
|
||||
{
|
||||
nsEventStatus rv = nsEventStatus_eIgnore;
|
||||
if (!mInstance) // if mInstance is null, we shouldn't be here
|
||||
if (!mInstance || !mWindow) // if the instance or the window is null, we shouldn't be here
|
||||
return rv;
|
||||
|
||||
#ifdef XP_MAC
|
||||
|
||||
Reference in New Issue
Block a user