uBlockOrigin / uBOL-home

uBO Lite home (MV3)
GNU General Public License v3.0
1.22k stars 48 forks source link

GTM scripts blocked despite having the website added to the nofiltering list #247

Open ugo-zaber opened 1 day ago

ugo-zaber commented 1 day ago

Prerequisites

I tried to reproduce the issue when...

Description

Hi,

We use GTM scripts on our websites and we noticed that even when the URL is added to the nofilter rule, the scripts are being blocked. The console gives an error "net::ERR_ABORTED 504 (Gateway Timeout)". If ublock lite is disabled, everything loads correctly. I tried whitelisting subdomains, googletagmanager.com etc ... and nothing helps.

A specific URL where the issue occurs.

https://www.zaber.com

Steps to Reproduce

  1. Go to https://www.zaber.com
  2. Enable the developer move (F12)
  3. Disable all filtering (slider all the way to the left)
  4. Refresh website and witness the scripts being blocked.
  5. Now disable the ublock lite entire and refresh, the scripts are now allowed

Expected behavior

GTM shouldn't be blocked when the app is allowing trackers for unfiltered websites.

Actual behavior

GTM scripts are blocked on whitelisted websites.

uBO Lite version

2024.11.20.858

Browser name and version

Google Chrome 131.0.6778.71

Operating system and version

Windows 11 23H2

gorhill commented 1 day ago

Unfortunately, there is no solution for this given how DNR works.

All content blockers suffers this issue, which is that if a network request is made from a worker, it will not be subjected to the allowAllRequests DNR rule used to prevent a site from being subjected to block rules.

The network requests being blocked despite no-filtering mode enabled for zaber.com all come from service workers.