cefclient: Allow dragging of fragments and show message when blocking URLs/files (issue #1976)

This commit is contained in:
Marshall Greenblatt 2016-08-19 13:58:22 +02:00
parent 73c669d67e
commit 1c06d8e3f5
1 changed files with 5 additions and 2 deletions

View File

@ -356,9 +356,12 @@ bool ClientHandler::OnDragEnter(CefRefPtr<CefBrowser> browser,
CefDragHandler::DragOperationsMask mask) {
CEF_REQUIRE_UI_THREAD();
// Forbid dragging of link URLs.
if (mask & DRAG_OPERATION_LINK)
// Forbid dragging of URLs and files.
if ((mask & DRAG_OPERATION_LINK) && !dragData->IsFragment()) {
test_runner::Alert(
browser, "cefclient blocks dragging of URLs and files");
return true;
}
return false;
}