uBlockOrigin / uAssets

Resources for uBlock Origin, uMatrix: static filter lists, ready-to-use rulesets, etc.
GNU General Public License v3.0
4.15k stars 774 forks source link

crates.io: breakage #25880

Open abonander opened 8 hours ago

abonander commented 8 hours ago

Prerequisites

URL address of the web page

https://crates.io/crates/metrics

Category

breakage

Description

More context here: https://github.com/metrics-rs/metrics/issues/539#issuecomment-2452468431

uBlock Origin is blocking a request because the URL contains /metrics/metrics even though it's not in the list of domains that the filter should match. Because the request for the README content fails, crates.io thinks it does not exist and thus says "appears to have no README.md". I'll be reporting that as a bug to crates.io as well.

Other extensions used

Reddit Enhancement Suite Firefox Multi-Account Containers

Screenshot(s)

Screenshot(s) ![image](https://github.com/user-attachments/assets/d5fc9a10-1489-41ba-a272-f093a00d91bb) ![image](https://github.com/user-attachments/assets/19e0a983-3a00-4590-8b55-3904038c3b1e) ![image](https://github.com/user-attachments/assets/3b23cac9-d252-4eb7-bd3e-1028777c56f8) What SHOULD be shown (after disabling uBlock Origin): ![image](https://github.com/user-attachments/assets/fdd3009f-3e83-492c-8544-106b067e9101)

Configuration

```yaml uBlock Origin: 1.60.0 Firefox: 131 filterset (summary): network: 139820 cosmetic: 48938 scriptlet: 21319 html: 2055 listset (total-discarded, last-updated): default: user-filters: 0-0, never ublock-filters: 40809-132, now ublock-badware: 11804-6, now ublock-privacy: 1383-22, now ublock-unbreak: 2556-1, now ublock-quick-fixes: 242-10, now easylist: 80340-198, now easyprivacy: 53227-63, now urlhaus-1: 19800-0, now plowe-0: 3542-998, now filterset (user): [empty] trustedset: added: [array of 2 redacted] userSettings: [none] hiddenSettings: [none] supportStats: allReadyAfter: 1234 ms maxAssetCacheWait: 268 ms cacheBackend: indexedDB popupPanel: blocked: 1 network: crates.io: 1 ```
abonander commented 8 hours ago

I thought it could end up matching one of the domains if static.crates.io had a CNAME record for one of them, but this does not appear to be the case:

$ dig static.crates.io

; <<>> DiG 9.18.28-0ubuntu0.24.04.1-Ubuntu <<>> static.crates.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45753
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;static.crates.io.      IN  A

;; ANSWER SECTION:
static.crates.io.   300 IN  CNAME   fastly-static.crates.io.
fastly-static.crates.io. 60 IN  CNAME   dualstack.k.sni.global.fastly.net.
dualstack.k.sni.global.fastly.net. 8 IN A   151.101.42.137

;; Query time: 125 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Fri Nov 01 12:45:41 PDT 2024
;; MSG SIZE  rcvd: 136
gorhill commented 5 hours ago

Caused by EasyPrivacy's /metrics/metrics$from=....

Need to add ~crates.io to the list of excluded domains.

cc @ryanbr

abonander commented 5 hours ago

Oh I see, that's the list of domains to exclude, yeah.