Commit 966afa8a authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

DragController: Set ExecutionContext when DataTransfer is populated

This allows for clearing the DragState in case the Document is scheduled
for shutdown.

Bug: 928781, 843903
Change-Id: Ie00428a7503122c68a0e96e32d124301b8b381f8
Reviewed-on: https://chromium-review.googlesource.com/c/1485834Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635073}
parent 145e75e5
......@@ -995,6 +995,11 @@ bool DragController::PopulateDragDataTransfer(LocalFrame* src,
// FIXME: For DHTML/draggable element drags, write element markup to
// clipboard.
}
// Observe context related to source to allow dropping drag_state_ when the
// Document goes away.
SetContext(src->GetDocument());
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment