ChromeDevTools / devtools-protocol

Chrome DevTools Protocol
https://chromedevtools.github.io/devtools-protocol/
BSD 3-Clause "New" or "Revised" License
1.15k stars 226 forks source link

New Browser Context not working as expected #313

Open yandrapragada opened 5 months ago

yandrapragada commented 5 months ago

Steps to Reproduce :

a. Open a remote debugging port on chrome. b. Connect to the remote web socket and send the following CDP. b. Create a new browser context using CDP call

{ "id":256, "method":"Target.createBrowserContext", "params": {"disposeOnDetach":true, "proxyServer":"https=http://127.0.0.1:8080/" } }

c. Open a tab with the following payload.The browserContextid is the one received in above response.

{ "id":286, "method":"Target.createTarget", "params": {"url":"https://examplesite.com/free-proxy-list", "browserContextId":"E2B10456D7F545D63DBCC99AA616BBC7" } }

It is expected that it has to flow through Proxy where as it is not flowing though Proxy and using "Direct" connection.

OS : Windows 11