Skip to content

[Bug] Replace with title #15998

Open
Open

Description

@noname-nikke

Prerequisites

  • I searched for any existing report about this bug to avoid opening a duplicate.
  • I can reproduce this bug in a new, unmodified web browser profile with Dark Reader installed as the only extension.
  • I understand I need to use the Broken Website Report template if this bug I am reporting occurs on a single website.

Bug Description

[v4.9.131]的新版本中出现了大量以前v4.9.130原本能够使用暗黑,更新后反而不能使用暗黑模式的情况

Website Address

https://www.goofish.com/ https://www.52pojie.cn/

Steps To Reproduce

使用动态模式无法进入深色模式

Expected Behavior

希望按照v4.9.130的方式进行修复bug

Actual Behavior

当我使用插件更新到最新版本之后,发现,在使用动态模式的情况下,无法把以前能够暗色模式的页面进行暗色。

Screenshots

No response

Operating System

Windows11

Web Browser name and version

Edge

Dark Reader version

[v4.9.131]

Additional Context

No response

Activity

  1. huangj1e commented on Sep 15, 2026

    @huangj1e

    我把 v4.9.130 手动下载并安装之后所有的问题就都消失了。

  2. Arteiimis commented on Sep 15, 2026

    @Arteiimis

    I hit the same regression and tracked down the cause — it is not site-specific, it is a network-layer bug in 4.9.131.

    44218ebf ("Use targetAddressSpace property") makes getOKResponse() declare targetAddressSpace: 'public' on every cross-origin fetch (src/utils/network.ts). When the browser's traffic goes through a proxy, Chrome cannot resolve the target address space, reports it as unknown, and rejects the request before sending it:

    Access to fetch at 'https://g.alicdn.com/idle-pc/xy-site/0.0.175/css/main.css' from origin 'chrome-extension://<id>'
    has been blocked by CORS policy: Request had a target IP address space of `public` yet the resource is in address space `unknown`.
    

    Every cross-origin stylesheet and image Dark Reader fetches in the background then fails (net::ERR_FAILED / InvalidLocalNetworkAccess), so pages keep their light-theme styles. That explains why a large number of sites broke at once, and why the Safari version (and Firefox) is unaffected — they ignore the option.

    Measured on the two sites you listed (fresh profile, default settings, proxy enabled):

    Site 4.9.131 with the fix failed cross-origin fetches
    https://www.goofish.com/ light background rgb(245,247,249) rgb(29,31,32) 6 → 0
    https://www.52pojie.cn/ 14 Dark Reader stylesheets 18 Dark Reader stylesheets 4 → 0

    Fix: #16002. Workarounds until it ships: stay on 4.9.130 (which you already did), or start the browser without the proxy — the same 4.9.131 build renders correctly with --no-proxy-server.

    Could you confirm whether you are using a proxy/VPN client (for example Clash, v2ray, or anything listening on 127.0.0.1)? That is the trigger condition, and confirming it would help the maintainer reproduce this.

  3. noname-nikke commented on Sep 15, 2026

    @noname-nikke
    Author

    I hit the same regression and tracked down the cause — it is not site-specific, it is a network-layer bug in 4.9.131.

    44218ebf ("Use targetAddressSpace property") makes getOKResponse() declare targetAddressSpace: 'public' on every cross-origin fetch (src/utils/network.ts). When the browser's traffic goes through a proxy, Chrome cannot resolve the target address space, reports it as unknown, and rejects the request before sending it:

    Access to fetch at 'https://g.alicdn.com/idle-pc/xy-site/0.0.175/css/main.css' from origin 'chrome-extension://<id>'
    has been blocked by CORS policy: Request had a target IP address space of `public` yet the resource is in address space `unknown`.
    

    Every cross-origin stylesheet and image Dark Reader fetches in the background then fails (net::ERR_FAILED / InvalidLocalNetworkAccess), so pages keep their light-theme styles. That explains why a large number of sites broke at once, and why the Safari version (and Firefox) is unaffected — they ignore the option.

    Measured on the two sites you listed (fresh profile, default settings, proxy enabled):

    Site 4.9.131 with the fix failed cross-origin fetches
    https://www.goofish.com/ light background rgb(245,247,249) rgb(29,31,32) 6 → 0
    https://www.52pojie.cn/ 14 Dark Reader stylesheets 18 Dark Reader stylesheets 4 → 0
    Fix: #16002. Workarounds until it ships: stay on 4.9.130 (which you already did), or start the browser without the proxy — the same 4.9.131 build renders correctly with --no-proxy-server.

    Could you confirm whether you are using a proxy/VPN client (for example Clash, v2ray, or anything listening on 127.0.0.1)? That is the trigger condition, and confirming it would help the maintainer reproduce this.

    我确实使用了代理,在使用4.9.130是完全没有遇到这种问题,只有使用4.9.131时才遇到现在的问题

  4. alexanderby commented on Sep 15, 2026

    @alexanderby
    Member

    We've temporarily disabled the new fetch API to prevent the issues for proxy server users. The fix is currently being reviewed. In the meantime please use Firefox browser.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions