Skip to content

Explore Electron.net API support in the utility process #192899

@deepak1556

Description

@deepak1556

It would provide us with the possibility of using chromium network stack which has better support for proxies directly from the utility process. Currently chromium transfers URLLoaderFactories to renderer process which allows blink to make network requests directly from the network service without having the need to go through the browser process, we will try to follow the same principle in this exploration.

  • Validate the exploration using a simple prototype
  • Scaffold Electron.net for the utility process

Prototype Implementation:

Let's create a interface on the NodeService utility process which accepts a URLLoaderFactory from the browser process and uses it to create a URLLoader to issue simple http(s) requests and outputs the response to a file.

Consists of 3 components

  • Declaring a mojo interface to transfer the URLLoaderFactory
  • Defining the interface in the Utility Process
  • Invoking the interface from the Browser Process

/cc @devm33

Metadata

Metadata

Assignees

Labels

electronIssues and items related to Electronfeature-requestRequest for new features or functionalitynetworkNetwork related issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

Status

✔️ Done / Deferred

Relationships

None yet

Development

No branches or pull requests

Issue actions