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

[Feature]: Disable Chromium feature "TcpPortRandomizationWin" by default

Aperta
#43,545 3 commenti 0 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
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
playwright, typescript
Ambito
testing-qa

Direzione di ricerca

Start by locating where Playwright builds Chromium launch options and configures disabled features; the issue does not name the relevant files or tests. Check how launch configuration is exposed and covered by tests, then determine whether the requested behavior belongs in defaults or a configurable option. Done means the feature can be disabled as requested and the behavior is covered by a test, including on Windows.

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

Descrizione

needs-triage-win
🚀 Feature Request

Since a recent Chromium version, this feature is enabled and it causes intermittent test failures when running Playwright. This results in Failed to load resource: net::ERR_NO_BUFFER_SPACE errors that will fail random test cases. In our case, it fails about 50% of our runs on our Windows build servers.

This has been submitted as a bug for Chromium (see https://issues.chromium.org/issues/572515601 for all the details and reproduction). They have had contact with the Windows OS guys as well and they seem to be heading in a direction where they say that this behavior is "as expected" or where they might want to improve something in the future. If that is the case, then the proper workaround is to disable the TcpPortRandomizationWin feature and then I would like this to be disabled (by Playwright) by default.

If not, then I would like a way to append a disabled feature (or update the list of disabled features) based on configuration, without having to copy the list from the Playwright sources and keep it up to date manually.

Example

Either disable it by default, or (for example) add a config parameter like:

launchOptions: {
    additionalDisabledFeatures: ['TcpPortRandomizationWin'],
}

or

launchOptions: {
    disabledFeaturesFn: disabledByDefault => [...disabledByDefault, 'TcpPortRandomizationWin'], 
}
Motivation

Adding this flag by default will decrease the number of intermittent failures when running Playwright on Windows.

Lingua principale
TypeScript
Stelle
98k
Fork
6.6k
Merge medio
16h 20m
PR unite (30g)
301

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 microsoft/playwright

Tutte le issue di microsoft/playwright

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.