cefclient: Allow dragging of fragments and show message when blocking URLs/files (issue #1976)
This commit is contained in:
parent
73c669d67e
commit
1c06d8e3f5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue