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

Đang mở
#16,143 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
22.6k
Fork
2.8k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
82

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của darkreader/darkreader

Tất cả issue của darkreader/darkreader

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.