Bug 1256952, send a dragexit at remote process when leaving the remote frame, r=smaug

This commit is contained in:
Neil Deakin 2016-04-06 10:35:39 -04:00
parent a1f020d488
commit 2d95c5d4c5

View File

@ -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