mirror of https://github.com/electron/electron
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Anonymous <anonymous@electronjs.org>
|
|
Date: Thu, 20 Sep 2018 17:47:04 -0700
|
|
Subject: feat: allow dragging and dropping between <webview>s.
|
|
|
|
This allows dragging and dropping between <webview>s.
|
|
|
|
Originally landed in https://github.com/electron/libchromiumcontent/pull/267
|
|
|
|
diff --git a/content/browser/web_contents/web_contents_view_drag_security_info.cc b/content/browser/web_contents/web_contents_view_drag_security_info.cc
|
|
index bf24f4e2ccff56a2a92c4f11c9318644ea59daff..c54e6717144e618b3034e8f5a96fd6d85d207f30 100644
|
|
--- a/content/browser/web_contents/web_contents_view_drag_security_info.cc
|
|
+++ b/content/browser/web_contents/web_contents_view_drag_security_info.cc
|
|
@@ -66,7 +66,7 @@ bool WebContentsViewDragSecurityInfo::IsValidDragTarget(
|
|
// browser-side checks only have local tree fragment (potentially with
|
|
// multiple origins) granularity at best, but a drag operation eventually
|
|
// targets one single frame in that local tree fragment.
|
|
- return target_rwh->GetSiteInstanceGroup()->GetId() == site_instance_group_id_;
|
|
+ return true;
|
|
}
|
|
|
|
} // namespace content
|