cefclient: Allow dragging of fragments and show message when blocking URLs/files (issue #1976)
This commit is contained in:
parent
a99ebd38a0
commit
d538cf683e
|
@ -356,9 +356,12 @@ bool ClientHandler::OnDragEnter(CefRefPtr<CefBrowser> browser,
|
||||||
CefDragHandler::DragOperationsMask mask) {
|
CefDragHandler::DragOperationsMask mask) {
|
||||||
CEF_REQUIRE_UI_THREAD();
|
CEF_REQUIRE_UI_THREAD();
|
||||||
|
|
||||||
// Forbid dragging of link URLs.
|
// Forbid dragging of URLs and files.
|
||||||
if (mask & DRAG_OPERATION_LINK)
|
if ((mask & DRAG_OPERATION_LINK) && !dragData->IsFragment()) {
|
||||||
|
test_runner::Alert(
|
||||||
|
browser, "cefclient blocks dragging of URLs and files");
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue