Skip to content

Change the global fetch available in local extension hosts to be the one from Electron #228696

Open

Description

No description provided.

Activity

  1. added
    plan-item
    proxy
    on Sep 16, 2024
  2. chrmarti commented on Sep 16, 2024

    @chrmarti
    CollaboratorAuthor

    Discussion on an issue with manual redirects discovered by test failures in #228476: electron/electron#43715

    Node.js chose to not follow the spec on the redirect response object which might make it difficult to use Electron's fetch as a drop-in replacement that should appear to extension the same way Node.js' fetch does.

  3. chrmarti commented on Sep 20, 2024

    @chrmarti
    CollaboratorAuthor

    Some headers need to be removed to not break existing use:

    // Chromium will abort the request if forbidden headers are set.
    // Ref https://source.chromium.org/chromium/chromium/src/+/main:services/network/public/cpp/header_util.cc;l=14-48;
    // for additional context.
    if (options.isChromiumNetwork) {
    req.removeHeader('Content-Length');
    }

  4. chrmarti commented on Sep 20, 2024

    @chrmarti
    CollaboratorAuthor

    Additional limitations: electron/electron#36733 (comment)

  5. chrmarti commented on Nov 29, 2024

    @chrmarti
    CollaboratorAuthor

    Putting on hold until we know how well Node.js' fetch with proxy support added works. (#228697)

  6. removed
    plan-item
    on Nov 29, 2024
  7. added
    feature-request
    on Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestproxy

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions