clavin

#49231: fix: drag regions in child windows

Merged
Created: Dec 18, 2025, 12:12:46 AM
Merged: Jan 5, 2026, 9:34:02 AM
4 comments
Target: main

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

Release Notes

Notes: Fixed drag regions in child windows

Backports

40-x-y
Merged
PR Number
#49312
Merged At
Jan 6, 2026, 9:32:12 AM
Released In
v40.0.0-beta.6
Release 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