Skip to content

fix(browse): honor proxy env vars in Playwright launches#916

Open
ningfeemic-dev wants to merge 1 commit intogarrytan:mainfrom
ningfeemic-dev:fix/browse-proxy-env-playwright
Open

fix(browse): honor proxy env vars in Playwright launches#916
ningfeemic-dev wants to merge 1 commit intogarrytan:mainfrom
ningfeemic-dev:fix/browse-proxy-env-playwright

Conversation

@ningfeemic-dev
Copy link
Copy Markdown

Summary

Fix gstack browse so Chromium navigation honors standard proxy environment variables.

Closes #915

What changed

  • added getProxySettings() in browse/src/browser-manager.ts
  • read proxy config from:
    • HTTPS_PROXY / https_proxy
    • HTTP_PROXY / http_proxy
    • ALL_PROXY / all_proxy
    • NO_PROXY / no_proxy
  • passed Playwright proxy into all Chromium launch paths:
    • chromium.launch(...)
    • headed chromium.launchPersistentContext(...)
    • handoff / context recreation launchPersistentContext(...)

Validation

Before fix, proxied environments could still fail with:

net::ERR_CONNECTION_RESET

After patch + rebuild locally:

browse goto https://www.google.com   # 200
browse goto https://duckduckgo.com   # 200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

browse: Playwright Chromium does not honor standard proxy env vars for page navigation

2 participants