diff --git a/tests/cefclient/browser/client_handler.cc b/tests/cefclient/browser/client_handler.cc index 71b77f9d5..453c21914 100644 --- a/tests/cefclient/browser/client_handler.cc +++ b/tests/cefclient/browser/client_handler.cc @@ -356,9 +356,12 @@ bool ClientHandler::OnDragEnter(CefRefPtr 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; }