[Bug] Extension can't access local files/sites even when permission is granted in chromium-based browsers on linux

未關閉
#16,143 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
javascript, typescript
領域
frontend

研究方向

Start by reproducing the report with a local saved page in Brave on Linux, with “Allow access to file URLs” enabled, and compare the extension’s detected site name and protection status with the page behavior. The report names no source files or tests, so trace how the extension checks local file access across Chromium browsers. Done means the local page is correctly darkened and the extension no longer reports it as protected.

由索引模型根據 Issue 內容生成。

描述

bug
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

For local files (file://...) Dark Reader extension displays 'about:blank' in site name section and states "protected by browser" disregarding the flag for "allow access to local files" set to on in extension settings.
Tested mainly on brave (screenshots provided) but behaviour persisted among other chromium-based browsers (source: trust me).

Website Address

file://*

Steps To Reproduce
  1. Be on linux
  2. Install brave browser and make sure it's not snap: yay -S brave-bin for archlinux
  3. Open browser, install dark reader extension and delete/remove all other extensions
  4. Have some locally saved page of a website
  5. Open the saved page
Expected Behavior

Page should be correctly processed and appear darkened

Actual Behavior

Page got processed but didn't render correctly and therefore flashbanged me.
Dark Reader says "about:blank" and "page is protected ...".
(something did happen -- stuff from "save as" of the page is attached)

Screenshots

Sample page with flashbang and misbehaviour:

Dark reader extension settings:

Operating System

linux

Web Browser name and version

brave 1.98.60 (chromium 156)

Dark Reader version

4.9.133

Additional Context

Stuff that got saved on "save as" on sample page: sample-page.zip

主要語言
TypeScript
星號
22.6k
分支
2.8k
平均合併
1 天 17 小時
30 天內合併 PR
82

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

darkreader/darkreader 的其他 Issue

查看 darkreader/darkreader 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。