mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Fix dragging in Google Maps street view on Mac OS X. b=516602 r=roc
This commit is contained in:
parent
d7f1fc09f7
commit
2cd6055329
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user