How to operate the new Popup page (ChromiumHostControl)? #3898
Replies: 2 comments 5 replies
-
Currently you'd have to extend LifeSpanHandler and override OnAfterCreated to get a reference to the
Correct. The popups use I've added some changes that will be in version Pull request with further enhancements would be welcome. |
Beta Was this translation helpful? Give feedback.
-
Hello, is there a way for the newly created ChromiumHostControl to have a corresponding JavascriptObjectRepository.ResolveObject ? |
Beta Was this translation helpful? Give feedback.
-
Notice that 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 createsnew ChromiumWebBrowser()
. But only theChromiumWebBrowser
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 useChromiumHostControl as ChromiumWebBrowser
. In the example, the popup window can't read source code or zoom due to this.Beta Was this translation helpful? Give feedback.
All reactions