mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1256952, send a dragexit at remote process when leaving the remote frame, r=smaug
This commit is contained in:
parent
a1f020d488
commit
2d95c5d4c5
@ -4517,6 +4517,13 @@ EventStateManager::FireDragEnterOrExit(nsPresContext* aPresContext,
|
||||
// Finally dispatch the event to the frame
|
||||
if (aTargetFrame)
|
||||
aTargetFrame->HandleEvent(aPresContext, &event, &status);
|
||||
|
||||
if (aMessage == eDragExit && IsRemoteTarget(aTargetContent)) {
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
WidgetDragEvent remoteEvent(aDragEvent->IsTrusted(), aMessage, aDragEvent->widget);
|
||||
remoteEvent.AssignDragEventData(*aDragEvent, true);
|
||||
HandleCrossProcessEvent(&remoteEvent, &status);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user