MarshallOfSound

#55172: fix: align protocol.registerSource request handling with protocol.handle

Merged
Created: Oct 21, 2026, 1:28:15 PM
Merged: Oct 21, 2026, 2:27:56 PM
3 comments
Target: main

Description of Change

  • Move the renderer request checks ElectronURLLoaderFactory performs into shared helpers and apply them in ProtocolSourceURLLoaderFactory as well, so a scheme served by protocol.registerSource treats renderer fetch()/XHR requests the same way a protocol.handle scheme does.
  • Add registerSource cases next to the existing protocol.handle ones in the protocol spec.

Checklist

Release Notes

Notes: Fixed protocol.registerSource schemes not applying the same fetch rules as protocol.handle schemes.

Backports

44-x-y
Merged
PR Number
#55177
Merged At
Oct 21, 2026, 4:09:29 PM
Released In
Not yet
Release Date
Not yet
45-x-y
Merged
PR Number
#55178
Merged At
Oct 21, 2026, 4:09:24 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