Page 2 of 2

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

PostPosted: Thu May 13, 2021 2:58 am
by Streamlet
Will CEF accept such a PR to support sync message? ... won't? :)

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

PostPosted: Thu May 13, 2021 3:04 am
by Streamlet
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?

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

PostPosted: Thu May 13, 2021 3:48 am
by ndesktop
To avoid renderer hang. Probably this will result in killing renderer.

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

PostPosted: Thu May 13, 2021 9:12 am
by magreenblatt
Streamlet wrote:Will CEF accept such a PR to support sync message? ... won't? :)

Such a change would not be accepted.