2018-09-21 00:30:26 +00:00
|
|
|
From 27c9f8e5be435006424d885985f4e017602402fe Mon Sep 17 00:00:00 2001
|
|
|
|
From: Anonymous <anonymous@electronjs.org>
|
|
|
|
Date: Thu, 20 Sep 2018 17:47:04 -0700
|
|
|
|
Subject: webview_cross_drag.patch
|
|
|
|
|
|
|
|
|
2018-09-14 05:02:16 +00:00
|
|
|
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
|
2018-09-21 00:30:26 +00:00
|
|
|
index 713b17948ef7..cd2d022ff53e 100644
|
2018-09-14 05:02:16 +00:00
|
|
|
--- a/content/browser/web_contents/web_contents_view_aura.cc
|
|
|
|
+++ b/content/browser/web_contents/web_contents_view_aura.cc
|
2018-09-14 18:03:43 +00:00
|
|
|
@@ -609,6 +609,7 @@ gfx::NativeView WebContentsViewAura::GetRenderWidgetHostViewParent() const {
|
2018-09-14 05:02:16 +00:00
|
|
|
|
|
|
|
bool WebContentsViewAura::IsValidDragTarget(
|
|
|
|
RenderWidgetHostImpl* target_rwh) const {
|
|
|
|
+ return true;
|
|
|
|
return target_rwh->GetProcess()->GetID() == drag_start_process_id_ ||
|
|
|
|
GetRenderViewHostID(web_contents_->GetRenderViewHost()) !=
|
|
|
|
drag_start_view_id_;
|
|
|
|
diff --git a/content/browser/web_contents/web_drag_dest_mac.mm b/content/browser/web_contents/web_drag_dest_mac.mm
|
2018-09-14 18:03:43 +00:00
|
|
|
index cec3bd8a97b8..7a2b4462bd44 100644
|
2018-09-14 05:02:16 +00:00
|
|
|
--- a/content/browser/web_contents/web_drag_dest_mac.mm
|
|
|
|
+++ b/content/browser/web_contents/web_drag_dest_mac.mm
|
2018-09-14 18:03:43 +00:00
|
|
|
@@ -348,6 +348,7 @@ GetRenderWidgetHostAtPoint:(const NSPoint&)viewPoint
|
2018-09-14 05:02:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (bool)isValidDragTarget:(content::RenderWidgetHostImpl*)targetRWH {
|
|
|
|
+ return YES;
|
|
|
|
return targetRWH->GetProcess()->GetID() == dragStartProcessID_ ||
|
|
|
|
GetRenderViewHostID(webContents_->GetRenderViewHost()) !=
|
|
|
|
dragStartViewID_;
|
2018-09-21 00:30:26 +00:00
|
|
|
--
|
|
|
|
2.17.0
|
|
|
|
|