This is a backport PR for branch 43-x-y
claude[bot]

#55481: perf: reuse one file: URL loader factory per session in net.fetch()

Open
Created: Oct 29, 2026, 10:31:01 AM
0 comments
Target: 43-x-y

Requested by Charles Kerr · Slack thread

Description of Change

Manually backport #55438. See that PR for details.

CC @ckerr

One conflict in shell/common/api/electron_api_url_loader.cc: 43-x-y doesn't have ProtocolRegistry::CreateRegisteredFactory(), so the custom-protocol branch keeps 43-x-y's FindRegistered() lookup and now passes ElectronURLLoaderFactory::Create(...) straight to the new InterceptURLLoaderFactory(PendingRemote) signature. I also dropped an unrelated client_certificate_responder_delegate.h include that doesn't exist on this branch.

Checklist

🤖 Generated with Claude Code

https://claude.ai/code/session_01KX1hkKsEp3xdXqeQ7utXkG

Release Notes

Notes: Improved performance of repeated net.fetch() calls for file: URLs.


Generated by Claude Code

Backport Information

Original PR Author
ckerr
Original PR Status
Merged
Original PR Merged At
Oct 28, 2026, 10:25:37 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