DevTools in new popups
Posted: Thu Oct 24, 2019 7:02 am
Hi,
Is there any way to connect to devtools in popups before any network activity?
I tried to get new websocket path in CefLifeSpanHandler::OnAfterCreated with no luck. My request hangs on reading data from 127.0.0.1:XXXX/json. Same story with CefLoadHandler::OnLoadStart and even CefLoadHandler::OnLoadError (just for test). It looks like /json somehow uses UI thread and it just hangs because it's trying to read data from socket.
I need that to use Emulation.setDeviceMetricsOverride and Emulation.setUserAgentOverride on new popus. Maybe there some other way to achive my goal?
Thanks.
Is there any way to connect to devtools in popups before any network activity?
I tried to get new websocket path in CefLifeSpanHandler::OnAfterCreated with no luck. My request hangs on reading data from 127.0.0.1:XXXX/json. Same story with CefLoadHandler::OnLoadStart and even CefLoadHandler::OnLoadError (just for test). It looks like /json somehow uses UI thread and it just hangs because it's trying to read data from socket.
I need that to use Emulation.setDeviceMetricsOverride and Emulation.setUserAgentOverride on new popus. Maybe there some other way to achive my goal?
Thanks.