MarshallOfSound

#53289: fix: propagate exceptions thrown by property getters on objects passed across the contextBridge

Merged
Created: Aug 28, 2026, 6:32:44 PM
Merged: Aug 28, 2026, 7:57:18 PM
4 comments
Target: main

Description of Change

  • When an object passed across contextBridge has a property getter that throws, rethrow to the caller instead of silently dropping the property and continuing the call — consistent with how array elements are already handled.
  • Same for an Error argument whose message getter throws.
  • Adds a spec covering both cases.

Checklist

Release Notes

Notes: Fixed an issue where an exception thrown by a property getter on an object passed through contextBridge was swallowed instead of being thrown back to the caller.

Backports

43-x-y
Pending
Waiting for a manual backport
44-x-y
Pending
Waiting for a manual backport
45-x-y
Merged
PR Number
#53297
Merged At
Aug 28, 2026, 9:58:26 PM
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