SendProcessMessage not working for my custom message

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.

SendProcessMessage not working for my custom message

Postby gshaibi » Mon Dec 14, 2020 7:18 am

Hi Marshall!
I am using SendProcessMessage to send a custom message from the browser to the renderer.
It works for me for local renderers, but not for cross domain ones.

After a little digging, I found out that the renderers do receive the messages, but they are not handled because their type is not CefMsg_Request, and therefore discarded (in https://github.com/chromiumembedded/cef ... pl.cc#L307).

Can you help please?
gshaibi
Techie
 
Posts: 17
Joined: Wed Mar 25, 2020 8:24 am

Re: SendProcessMessage not working for my custom message

Postby magreenblatt » Mon Dec 14, 2020 11:22 am

Sounds like https://bitbucket.org/chromiumembedded/ ... om-browser. You can try the PR from that issue.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: SendProcessMessage not working for my custom message

Postby gshaibi » Tue Dec 15, 2020 8:13 am

Thank you.
Is there any long term fix planned?
gshaibi
Techie
 
Posts: 17
Joined: Wed Mar 25, 2020 8:24 am

Re: SendProcessMessage not working for my custom message

Postby magreenblatt » Tue Dec 15, 2020 11:17 am

gshaibi wrote:Thank you.
Is there any long term fix planned?

Yes. Did the PR work for you?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: SendProcessMessage not working for my custom message

Postby gshaibi » Mon Dec 21, 2020 5:00 am

Yes.
Thank you!
gshaibi
Techie
 
Posts: 17
Joined: Wed Mar 25, 2020 8:24 am


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 54 guests