How to start a nested message loop in renderer process?

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.

Re: How to start a nested message loop in renderer process?

Postby Streamlet » Thu May 13, 2021 2:58 am

Will CEF accept such a PR to support sync message? ... won't? :)
Streamlet
Mentor
 
Posts: 61
Joined: Tue Aug 27, 2019 6:47 am

Re: How to start a nested message loop in renderer process?

Postby Streamlet » Thu May 13, 2021 3:04 am

Additinally, I am puzzled that Chromium does't allow sync message called from browser to renderer, but allows the reverse direction.

See render_process_host_impl.cc:
Code: Select all
bool RenderProcessHostImpl::Send(IPC::Message* msg) {
  // ...
  DCHECK(!message->is_sync());
  // ...
}


Why?
Streamlet
Mentor
 
Posts: 61
Joined: Tue Aug 27, 2019 6:47 am

Re: How to start a nested message loop in renderer process?

Postby ndesktop » Thu May 13, 2021 3:48 am

To avoid renderer hang. Probably this will result in killing renderer.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: How to start a nested message loop in renderer process?

Postby magreenblatt » Thu May 13, 2021 9:12 am

Streamlet wrote:Will CEF accept such a PR to support sync message? ... won't? :)

Such a change would not be accepted.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 36 guests