Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[ENGG-1977] MV3: 2KB limit for regexFilter in DNR

Aperta
#47 3 commenti 5 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
devtools

Direzione di ricerca

Start by reproducing the Chrome declarativeNetRequest error with host-based regex rules and review the linked regex-rules documentation. Compare the suggested URL source conditions and redirect-rule approach against the affected replace-rule use cases. Done means supported rules no longer exceed the 2KB compiled regexFilter limit.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type:bug

When creating host regex rules Unchecked runtime.lastError: Rule with id 1 was skipped as the "regexFilter" value exceeded the 2KB memory limit when compiled. Learn more: https://developer.chrome.com/docs/extensions/reference/api/declarativeNetRequest#regex-rules

Possible Solutions

1. Using URL source conditions instead of HOST source conditions

If you are using HOST - EQUALS | CONTAINS | MATCHES | WILDCARD, then try switching it to URL source condition.

2. Try using Redirect Rule

Almost all the usecases that are supported by replace rule are also supported by Redirect Rule . Try creating a redirect rule instead

Some patterns to convert Replace rule into Redirect rule

Pattern 1

Current Replace Rule
CleanShot 2024-06-27 at 12 51 57@2x

Converted Redirect Rule
CleanShot 2024-06-27 at 12 55 11@2x

Pattern 2

Current Replace Rule
CleanShot 2024-06-27 at 13 36 51@2x

Converted Redirect Rule
CleanShot 2024-06-27 at 13 37 23@2x

Lingua principale
TypeScript
Stelle
93
Fork
24
Merge medio
1g 14h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di requestly/interceptor

Tutte le issue di requestly/interceptor

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.