This is a backport PR for branch 42-x-y
ckerr

#51726: fix: process undefined in ESM preload when contextIsolation is disabled

Merged
Created: May 20, 2026, 6:51:15 PM
Merged: May 21, 2026, 3:50:17 PM
1 comments
Target: 42-x-y

Manually backport #51693 to 42-x-y. See that PR for details.

Tested by building and testing with e test -g 'without nodeIntegration and contextIsolation'.

Notes: Fixed an issue where process and other Node globals were undefined in ESM preload scripts when contextIsolation was disabled.

Backport Information

Original PR Author
sheitabrk
Original PR Status
Merged
Original PR Merged At
May 20, 2026, 3:18:26 PM
Original PR Link
GitHubView on GitHub

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