uBlockOrigin / uBlock-issues

This is the community-maintained issue tracker for uBlock Origin
https://github.com/gorhill/uBlock
945 stars 81 forks source link

uBlock origin doesn't work on html files on chromium-based browsers. #2904

Open IREK-szef opened 1 year ago

IREK-szef commented 1 year ago

Prerequisites

I tried to reproduce the issue when...

Description

uBlock origin with cosmetic filters which doesn't hide specified elements on local .html file. The same filter works fine when file is accessed using http protocol. Problem is only in chromium-based web browsers, in firefox same filter works fine on both http and file protocol. I tried checking allow access to file urls on chrome and edge, but it didn't help.

Kind regards, IREK-szef

A specific URL where the issue occurs.

file:///*

Steps to Reproduce

  1. Use chromium-based browsers (I' sure that edge and chrome are affected).
  2. add list with/or use generic cosmetic filter.
  3. Open .html local file with element to hide. (This doesn't work on chromium-based browsers, but it does work in firefox)
  4. Open the same file served from web server. (This works fine)

Expected behavior

Generic cosmetic filtering should work in both HTTP and file based in chromium-based web browsers. It should work the same as in Firefox.

Actual behavior

Generic cosmetic filtering doesn't work on file protocol on chromium-based web browsers.

uBO version

1.52.2

Browser name and version

Chromium-based browsers

Operating System and version

Windows 11

liamengland1 commented 1 year ago

Did you check "Allow access to file URLs" on chrome://extensions/?id=cjpalhdlnbpafiamejdnhcphjbkeiagm?

IREK-szef commented 1 year ago

Unfortunately turning on allow access to file URLs, doesn't help. In file protocol on chromium browser even disabling JavaScript from ublock origin popup doesn't work, but everything work just fine in firefox.

gorhill commented 1 year ago

Generic cosmetic filtering doesn't work on file protocol on chromium-based web browsers.

Does this work in other content blockers such as AdGuard and Adblock Plus?

liamengland1 commented 1 year ago

Doesn't work with Adguard.