diff --git a/dom/events/EventStateManager.cpp b/dom/events/EventStateManager.cpp index 2a15fa7d409d..9287ea74fb49 100644 --- a/dom/events/EventStateManager.cpp +++ b/dom/events/EventStateManager.cpp @@ -1898,7 +1898,8 @@ EventStateManager::GenerateDragGesture(nsPresContext* aPresContext, // Use our targetContent, now that we've determined it, as the // parent object of the DataTransfer. - dataTransfer->SetParentObject(targetContent); + nsCOMPtr parentContent = targetContent->FindFirstNonChromeOnlyAccessContent(); + dataTransfer->SetParentObject(parentContent); sLastDragOverFrame = nullptr; nsCOMPtr widget = mCurrentTarget->GetNearestWidget();