IRenderProcessMessageHandlerOnContextCreated Method |
Version 81.3.100
OnContextCreated is called in the Render process immediately after a CefV8Context is created.
An IPC message is immediately sent to notify the context has been created (should be safe to execute javascript).
If the page has no javascript then no V8Context will be created and as a result this method will not be called.
Called for every V8Context. To determine if V8Context is from Main frame check
IsMain
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 81.3.100.0 (81.3.100.0)
Syntax void OnContextCreated(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame
)
void OnContextCreated(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame
)
Parameters
- chromiumWebBrowser
- Type: CefSharpIWebBrowser
The ChromiumWebBrowser control - browser
- Type: CefSharpIBrowser
The browser object - frame
- Type: CefSharpIFrame
The frame.
See Also