New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 770524 link

Starred by 3 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature



Sign in to add a comment

DevTools Feature Request: set proxy on headless BrowserContext

Reported by jpa...@gmail.com, Oct 1 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38

Steps to reproduce the problem:
Currently the only way to set headless proxy settings is via the --proxy-server command line argument or with the C++ API `HeadlessBrowserContext::Builder::SetProxyConfig(...)`.  The latter is the only approach available if the developer wishes to use distinct (non-global) proxy settings for multiple browser contexts.

It would be great if this could instead be done through the DevTools Protocol, so that there is no need to create a custom application binary using the C++ API for this functionality alone.

A straightforward extension of the DevTools Protocol could be to add a new optional argument to `Target.createBrowserContext` called `proxyServer`.

This new argument could be a string matching the format accepted by `net::ProxyConfig::ParseFromString(...)` which is also the same format given by the global --proxy-server command line argument.

What is the expected behavior?

What went wrong?
We currently have no way to set the headless browser context proxy settings via the DevTools Protocol.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 61.0.3163.100  Channel: n/a
OS Version: OS X 10.13
Flash Version:
 
Components: Internals>Headless
Labels: -Type-Bug M-63 Type-Feature
Status: Untriaged (was: Unconfirmed)
Cc: rvera@chromium.org
Components: Platform>DevTools>Network
Status: Available (was: Untriaged)
Thanks for the feature request!

Adding also devtools component, since this should be done both for headless/non-headless
Labels: -OS-Mac
Components: -Platform>DevTools>Network
Project Member

Comment 5 by sheriffbot@chromium.org, Dec 12

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment