browse: Linux desktop sessions (GNOME/KDE) may lose a system PAC proxy under --proxy-server=direct://

Aperta
#3,450 0 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
42/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
linux, typescript

Direzione di ricerca

Start by checking #3448 and the Linux proxy handling, then verify Chromium’s behavior in a GNOME session with a gsettings PAC or manual proxy and no HTTPS_PROXY. Run $B goto against a logging CONNECT proxy before and after #3448 and record whether CONNECT arrives. If confirmed, choose between gating the Linux direct switch using explicitDirect() or documenting the limitation in BROWSER.md under “Proxy from environment”; done means the observed behavior and chosen fix are clear.

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

Descrizione

S3

Follow-up from #3448 (#3440 item 8), raised by the ship red team and unverified.

#3448 makes every direct connection on Linux explicit with --proxy-server=direct://, because Chromium launched without a proxy switch reads HTTPS_PROXY/HTTP_PROXY/ALL_PROXY itself there. Chromium's ProxyConfigServiceLinux reads those variables only outside a desktop session: when XDG_CURRENT_DESKTOP is in the GNOME (Cinnamon, Unity, Pantheon) or KDE families it reads the desktop's system proxy settings (gsettings / kioslaverc, PAC and WPAD included) and does not fall back to the environment. If that is right, a GStack Browser user on a corporate Linux desktop with a system PAC now gets the switch forced and loses connectivity, the regression #3448 avoided on macOS and Windows by gating the switch to an explicit BROWSE_PROXY_URL=direct there, and the daemon log line names variables Chromium would not have consulted.

The measurement behind #3448 was taken in a no-desktop (Xvfb) session, where the environment-variable path is the one Chromium uses.

To settle it:

  1. In a GNOME session, set a manual or PAC proxy in gsettings with no HTTPS_PROXY, run $B goto against a logging CONNECT proxy on main before and after #3448, and record whether the CONNECT arrives.
  2. If confirmed, either gate Linux like macOS when a desktop proxy service would be used (XDG_CURRENT_DESKTOP in the GNOME/KDE families, or gsettings get org.gnome.system.proxy mode not none), reusing explicitDirect() so the opt-out joins the config hash there too, or document in BROWSER.md "Proxy from environment" that Linux desktop system proxy settings are bypassed and the proxy must be named through BROWSE_PROXY_URL.

Decision owner: GStack Minder (2026-10-26) asked for this to be filed rather than guessed at in #3448.

Lingua principale
TypeScript
Stelle
143k
Fork
21k
Merge medio
5h 25m
PR unite (30g)
791

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 garrytan/gstack

Tutte le issue di garrytan/gstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.