codebytere

#47751: fix: handle missing NativeWindowMac in ElectronNSWindow

Merged
Created: Jul 15, 2025, 4:30:35 AM
Merged: Jul 17, 2025, 7:49:37 AM
4 comments
Target: main

Description of Change

Closes #47679.
Refs #44628

Fixes an issue where certain operations performed in a window close callback could trigger a crash. After #44628 it's possible for ElectronNSWindow to outlive shell_ and thus we should check that it's not nullptr prior to use.

Checklist

Release Notes

Notes: Fixed an issue where certain operations performed in a window close callback could trigger a crash.

Backports

36-x-y
Merged
PR Number
#47811
Merged At
Jul 18, 2025, 3:09:40 AM
Released In
Not yet
Release Date
Not yet
37-x-y
Merged
PR Number
#47813
Merged At
Jul 18, 2025, 3:09:36 AM
Released In
Not yet
Release Date
Not yet
38-x-y
Merged
PR Number
#47812
Merged At
Jul 17, 2025, 10:33:25 AM
Released In
Not yet
Release Date
Not yet

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