OSR and subprocess window rendering

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.

OSR and subprocess window rendering

Postby taehyeon » Thu Nov 09, 2023 5:42 pm

Hello.

CEF is using OSR to show a webview.
I have connected a Visual C++ Windows Desktop Application to the browser_subprocess_path in CefSettings.
On the main webpage, when a button is clicked, a popup is generated as a subprocess.
The webpage of the generated popup is an unmanaged webpage.
Using "window.resizeTo" inside the unmanaged webpage does not change the size of the webview in the subprocess.
Is there any documentation related to the above?
Is there any reference documentation on the relationship between the change in size inside the webpage using "window.resizeTo" and the change in size of the webview appearing as a subprocess, which is drawn with OSR?

Thank you.
taehyeon
Newbie
 
Posts: 7
Joined: Wed Feb 15, 2023 9:18 pm

Re: OSR and subprocess window rendering

Postby KatrinaS » Thu Nov 09, 2023 8:13 pm

I think you need to register / attach a host object to the document to forward the request to the containing Window, like something spun from https://bitbucket.org/chromiumembedded/ ... gration.md perhaps :)
KatrinaS
Mentor
 
Posts: 83
Joined: Tue Jul 04, 2023 6:30 pm


Return to Support Forum

Who is online

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