Communication between two renderers?

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.

Communication between two renderers?

Postby sdiverdi » Fri Mar 26, 2021 11:41 am

My app has two browsers, and each browser has its renderer helper subprocess. I'd like to send a message directly from one renderer to the other. I know I can use SendProcessMessage to go from renderer->browser and then browser->renderer. Is there some way I could use SendProcessMessage (or something else) to go renderer->renderer instead?
sdiverdi
Mentor
 
Posts: 51
Joined: Fri Dec 25, 2020 7:41 pm

Re: Communication between two renderers?

Postby magreenblatt » Fri Mar 26, 2021 12:18 pm

Communicating directly between renderers is not allowed for security reasons.
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: Communication between two renderers?

Postby sdiverdi » Fri Mar 26, 2021 12:27 pm

Can you elaborate? I don't understand what the security implications are. Is it more secure to go renderer->browser->renderer?
sdiverdi
Mentor
 
Posts: 51
Joined: Fri Dec 25, 2020 7:41 pm

Re: Communication between two renderers?

Postby magreenblatt » Fri Mar 26, 2021 12:56 pm

Renderer processes are sandboxed and have access to minimal information, access to which is controlled by the browser process. Different renderers are often different origins. Allowing a renderer for one origin to access data specific to another origin would be a security issue, particularly if one of the renderer processes was compromised.
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 42 guests