2018-10-24 18:24:11 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-09-21 00:30:26 +00:00
|
|
|
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
|
2019-10-28 22:12:35 +00:00
|
|
|
index d8f6e22f0cfc8d84adcb5291a27f8d928b37a812..392935bd098b9e1540ad9550001d066dfaa5def7 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
|
2019-10-28 22:12:35 +00:00
|
|
|
@@ -796,6 +796,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
|
2019-06-04 03:44:12 +00:00
|
|
|
index c4638ac6e86d6a816848cdbbdfa3e70d45086d90..18bd2fb8171568745549d490ee93887418890157 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
|
2019-03-29 00:05:53 +00:00
|
|
|
@@ -336,6 +336,7 @@ - (void)setDragStartTrackersForProcess:(int)processID {
|
2018-09-14 05:02:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (bool)isValidDragTarget:(content::RenderWidgetHostImpl*)targetRWH {
|
|
|
|
+ return YES;
|
|
|
|
return targetRWH->GetProcess()->GetID() == dragStartProcessID_ ||
|
|
|
|
GetRenderViewHostID(webContents_->GetRenderViewHost()) !=
|
|
|
|
dragStartViewID_;
|