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 a99ebd38a0
commit d538cf683e
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;
}