Click or drag to resize

IRenderProcessMessageHandler.OnContextReleased Method

Version 106.0.290
OnContextReleased is called in the Render process immediately before the CefV8Context is released. An IPC message is immediately sent to notify the context has been released (cannot execute javascript this point). If the page had no javascript then the context would not have been 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: 106.0.290.0 (106.0.290.0)
Syntax
void OnContextReleased(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame
)

Parameters

chromiumWebBrowser
Type: CefSharp.IWebBrowser
The ChromiumWebBrowser control
browser
Type: CefSharp.IBrowser
The browser object
frame
Type: CefSharp.IFrame
The frame.
See Also