Files
browser/src
Adrià Arrufat c9329d5955 AdBlocker: run /regex/ filters with PCRE2
Filter lists carry a few hundred rules written as JavaScript regex
literals (24 in EasyList, 165 in uBO's badware list); they parsed but
were dropped as unsupported. PCRE2 reads that syntax as-is, `\/` and
friends included, its compiled patterns are immutable so the one
blocker shared by every HTTP client thread can run them, and 10.48
ships a build.zig for 0.16, so it is wired like sqlite3.

`Regex.Context` routes every PCRE2 allocation through the blocker's
allocator, which puts the compiled patterns under the test runner's
leak detection, and caps match and depth so a broken pattern costs a
false negative rather than a stalled request. As in uBO, a regex
tests the raw URL with the case-insensitive flag unless `$match-case`.

Regex filters are still never tokenized: they ride the fallback bucket.
2026-09-09 12:43:39 +02:00
..
2026-08-29 10:48:36 +08:00
2026-08-31 22:44:59 +08:00
2026-08-31 22:44:59 +08:00
2026-09-05 17:51:47 +08:00
2026-08-19 21:49:02 +08:00
2026-07-30 13:02:13 +08:00
2026-07-22 13:26:03 +08:00
2026-08-31 22:44:59 +08:00
2026-08-31 22:45:14 +08:00
2026-07-22 13:26:03 +08:00
2026-07-22 13:26:03 +08:00
2026-07-22 13:26:03 +08:00
2026-09-07 11:01:03 +03:00
2026-08-31 22:44:59 +08:00
2026-08-31 22:44:59 +08:00
2026-07-22 13:26:03 +08:00
2026-07-22 13:26:03 +08:00
2026-08-22 07:04:58 +08:00