This is a backport PR for branch 41-x-y
#51221: fix: reset printToPDF queue after a rejection
Merged
Backport of #51174
See that PR for details.
Notes: Fixed webContents.printToPDF rejecting on all subsequent calls after a prior call was rejected with an invalid pageRanges value.
Backport Information
Backported from
#51174: fix: resetprintToPDF queue after a rejectionOriginal PR Author
codebytereOriginal PR Status
Merged
Original PR Merged At
Apr 21, 2026, 1:36:03 PM
Original PR Link
View on GitHubSemver 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