zuohuiyang

#55623: fix: limit webRequest redirects across loader restarts to avoid crashes

Merged
Created: Nov 5, 2026, 9:22:37 AM
Merged: Nov 6, 2026, 11:40:00 AM
6 comments
Target: main

Description of Change

Repeated webRequest redirects can grow the renderer's redirect history until it crashes. This change keeps each request's redirect count across loader restarts and rejects the 21st redirect with ERR_TOO_MANY_REDIRECTS.

Fixes #55622.

Checklist

A few npm test cases fail in my local environment. The same failures also occur on the unmodified baseline.

Release Notes

Notes: Fixed renderer crashes caused by unbounded webRequest redirect loops.

Backports

43-x-y
Pending
Waiting for a manual backport
44-x-y
Merged
PR Number
#55655
Merged At
Nov 6, 2026, 3:01:21 PM
Released In
Not yet
Release Date
Not yet
45-x-y
Merged
PR Number
#55656
Merged At
Nov 6, 2026, 4:41:13 PM
Released In
Not yet
Release Date
Not yet
46-x-y
Merged
PR Number
#55654
Merged At
Nov 6, 2026, 1:05:03 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