mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 13:10:42 +01:00
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) {
|
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…
x
Reference in New Issue
Block a user