Skip to content

webRequest handlers do not run when session.fetch is used to load a file URL #45903

Closed

Description

@BrandonXLF

Preflight Checklist

Electron Version

34.3.0

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 version 24H2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

webRequest handlers, just like how they do for HTTP requests.

Actual Behavior

webRequest handlers do not run for file:// URLs.

Testcase Gist URL

https://gist.github.com/BrandonXLF/51fe49573557ba6bb341a5d3ee64f3b6

Additional Information

No response

Activity

  1. added theissue type on Mar 6, 2025
  2. added
    has-repro-gist
    on Mar 6, 2025
  3. changed the title [-]webRequest handlers do not when session.fetch is used to load a file URL[/-] [+]webRequest handlers do not run when session.fetch is used to load a file URL[/+] on Mar 6, 2025
  4. nikwen commented on Mar 6, 2025

    @nikwen
    Member

    Thanks for reporting!

    Adding context: chrome.webRequest in Chrome can deal with file:// urls (source).

  5. electron-issue-triage commented on Jun 5, 2025

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  6. BrandonXLF commented on Jun 5, 2025

    @BrandonXLF
    ContributorAuthor

    bump

  7. electron-issue-triage commented on Sep 5, 2025

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  8. BrandonXLF commented on Sep 5, 2025

    @BrandonXLF
    ContributorAuthor

    bump

  9. electron-issue-triage commented on Dec 5, 2025

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  10. electron-issue-triage commented on Jan 4, 2026

    @electron-issue-triage

    This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    34-x-ybug 🪲component/sessionhas-repro-gistplatform/windowsstale

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions