Skip to content

fix: only relax the drag target check across WebContents - #53748

Merged
MarshallOfSound merged 2 commits into
45-x-yfrom
trop/45-x-y-bp-fix-only-relax-the-drag-target-check-across-webcontents-1788895294740
Sep 9, 2026
Merged

MarshallOfSound merged 2 commits into
45-x-yfrom
trop/45-x-y-bp-fix-only-relax-the-drag-target-check-across-webcontents-1788895294740

Conversation

@trop

@trop trop Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Backport of #53669

See that PR for details.

Notes: Fixed an issue where the browser-side check that blocks drag and drop between cross-site frames of the same page was disabled.

trop Bot and others added 2 commits September 8, 2026 19:21
webview_cross_drag.patch made WebContentsViewDragSecurityInfo::IsValidDragTarget
return true unconditionally so drags can cross <webview> boundaries, which
also removed the browser-side check that blocks drags between cross-site
frames of the same page (crbug.com/59081) for every Electron app. Keep the
source widget and allow the drop only when source and target belong to
different WebContents; same-WebContents drags go back to the upstream
SiteInstanceGroup comparison.

Co-authored-by: Shelley Vohr <[email protected]>
@trop
trop Bot requested a review from a team as a code owner September 8, 2026 19:21
@trop
trop Bot requested a review from codebytere September 8, 2026 19:21
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 8, 2026
@MarshallOfSound
MarshallOfSound merged commit dbe7087 into 45-x-y Sep 9, 2026
101 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/45-x-y-bp-fix-only-relax-the-drag-target-check-across-webcontents-1788895294740 branch September 9, 2026 02:07
@release-clerk

release-clerk Bot commented Sep 9, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed an issue where the browser-side check that blocks drag and drop between cross-site frames of the same page was disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant