Skip to content

feat: add http cache support to requests from utility process - #51698

Merged
jkleinsc merged 1 commit into
42-x-yfrom
robo/utility_process_cache_support_42_x_y
May 20, 2026
Merged

jkleinsc merged 1 commit into
42-x-yfrom
robo/utility_process_cache_support_42_x_y

Conversation

@deepak1556

Copy link
Copy Markdown
Member

Description of Change

Backport of #51279

See that PR for details.

Release Notes

Notes: Added session support to net module requests from utility process

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 19, 2026
@trop trop Bot added 42-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels May 19, 2026
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label May 19, 2026
Add `session` and `partition` options to `utilityProcess.fork()` to
allow utility processes to use a session-specific network context
instead of the system network context. This enables HTTP caching,
cookie isolation, and webRequest interception for utility process
network requests.

When `respondToAuthRequestsFromMainProcess` is true and a session is
provided, HTTP 401/407 auth challenges now emit a `login` event on
the UtilityProcess instance rather than on `app`. Without a session,
auth challenges continue to emit on `app` for backward compatibility.
@deepak1556
deepak1556 force-pushed the robo/utility_process_cache_support_42_x_y branch from e07058a to 0683d01 Compare May 19, 2026 17:22
@jkleinsc
jkleinsc merged commit c9598c8 into 42-x-y May 20, 2026
68 checks passed
@release-clerk

release-clerk Bot commented May 20, 2026

Copy link
Copy Markdown

Release Notes Persisted

Added session support to net module requests from utility process

@jkleinsc
jkleinsc deleted the robo/utility_process_cache_support_42_x_y branch May 20, 2026 19:49
@mlaurencin

Copy link
Copy Markdown
Member

Was approved by @electron/wg-releases
(for future reference)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants