How to operate the new Popup page (ChromiumHostControl)

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

How to operate the new Popup page (ChromiumHostControl)

Postby terrarium » Wed Nov 24, 2021 4:39 am

In the Cefsharp.winforms.example, there're two AddTab methods, one for popup and the other for traditional new tab(e.g. click a link with pressing Shift key ). The previous one, handled a CefSharp.WinForms.Host.ChromiumHostControl object while the other one creates new ChromiumWebBrowser(). But only the ChromiumWebBrowser object can do a lot work, so How can I get the new popup page's internal browser reference for, for instance, run scripts, get source codes, etc.? I can't use ChromiumHostControl as ChromiumWebBrowser . In the example, the popup window can't read source code or zoom due to this.
terrarium
Newbie
 
Posts: 1
Joined: Wed Nov 24, 2021 4:36 am

Re: How to operate the new Popup page (ChromiumHostControl)

Postby amaitland » Wed Nov 24, 2021 7:57 pm

Already asked at https://github.com/cefsharp/CefSharp/discussions/3898

Please just ask your question once.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 17 guests