#49231: fix: drag regions in child windows
Merged
Description of Change
Fixes #49223
Upstream moved SetSupportsDraggableRegions from the renderer-side WebViewImpl to the browser-side content::WebContents.
This PR adapts to that change by calling SetSupportsDraggableRegions during WebContents initialization, matching the previous behavior of ElectronRenderFrameObserver. The call is placed in two locations to cover all WebContents types: owned WebContents (InitWithWebContents) and remote WebContents (constructor).
In the process, we also discovered #49256
Checklist
- PR description included and stakeholders cc'd
-
npm testpasses - PR release notes describe the change in a way relevant to app developers, and are capitalized, punctuated, and past tense.
Release Notes
Notes: Fixed drag regions in child windows
Backports
40-x-y
MergedPR Number
#49312Merged At
Jan 6, 2026, 9:32:12 AM
Released In
v40.0.0-beta.6Release Date
Jan 8, 2026, 7:31:27 AM
Semver Impact
Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron