Add |client_| nullptr check in CefBrowserHostImpl::CanDragEnter (fixes issue #2934)
This commit is contained in:
parent
7ecaa8afdd
commit
31d3e88d32
|
@ -2289,8 +2289,10 @@ bool CefBrowserHostImpl::PreHandleGestureEvent(
|
||||||
bool CefBrowserHostImpl::CanDragEnter(content::WebContents* source,
|
bool CefBrowserHostImpl::CanDragEnter(content::WebContents* source,
|
||||||
const content::DropData& data,
|
const content::DropData& data,
|
||||||
blink::WebDragOperationsMask mask) {
|
blink::WebDragOperationsMask mask) {
|
||||||
CefRefPtr<CefDragHandler> handler = client_->GetDragHandler();
|
CefRefPtr<CefDragHandler> handler;
|
||||||
if (handler.get()) {
|
if (client_)
|
||||||
|
handler = client_->GetDragHandler();
|
||||||
|
if (handler) {
|
||||||
CefRefPtr<CefDragDataImpl> drag_data(new CefDragDataImpl(data));
|
CefRefPtr<CefDragDataImpl> drag_data(new CefDragDataImpl(data));
|
||||||
drag_data->SetReadOnly(true);
|
drag_data->SetReadOnly(true);
|
||||||
if (handler->OnDragEnter(
|
if (handler->OnDragEnter(
|
||||||
|
|
Loading…
Reference in New Issue