Fix dragging in Google Maps street view on Mac OS X. b=516602 r=roc

This commit is contained in:
Josh Aas 2009-09-22 21:52:49 -04:00
parent d7f1fc09f7
commit 2cd6055329
2 changed files with 2 additions and 7 deletions

View File

@ -4232,13 +4232,8 @@ nsEventStatus nsPluginInstanceOwner::ProcessEvent(const nsGUIEvent& anEvent)
break;
}
}
#ifndef NP_NO_CARBON
else if ((eventModel == NPEventModelCarbon) && (static_cast<EventRecord*>(event)->what == nullEvent)) {
Point carbonPt = { 20000, 20000 };
InitializeEventRecord(&synthCarbonEvent, &carbonPt);
event = &synthCarbonEvent;
}
#ifndef NP_NO_CARBON
// Work around an issue in the Flash plugin, which can cache a pointer
// to a doomed TSM document (one that belongs to a NSTSMInputContext)
// and try to activate it after it has been deleted. See bug 183313.

View File

@ -3542,7 +3542,7 @@ static nsEventStatus SendGeckoMouseEnterOrExitEvent(PRBool isTrusted,
#ifndef NP_NO_CARBON
EventRecord carbonEvent;
if (mPluginEventModel == NPEventModelCarbon) {
carbonEvent.what = nullEvent;
carbonEvent.what = NPEventType_AdjustCursorEvent;
carbonEvent.message = 0;
carbonEvent.when = ::TickCount();
::GetGlobalMouse(&carbonEvent.where);