DevTools in new popups

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

DevTools in new popups

Postby AlexanderN » 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.
AlexanderN
Newbie
 
Posts: 1
Joined: Thu Oct 24, 2019 6:48 am

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 37 guests