Click or drag to resize

ResourceRequestHandlerOnProtocolExecution Method

Version 130.1.90
Called on the CEF UI thread to handle requests for URLs with an unknown protocol component. SECURITY WARNING: YOU SHOULD USE THIS METHOD TO ENFORCE RESTRICTIONS BASED ON SCHEME, HOST OR OTHER URL ANALYSIS BEFORE ALLOWING OS EXECUTION.

Namespace: CefSharp.Handler
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
protected virtual bool OnProtocolExecution(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request
)

Parameters

chromiumWebBrowser  IWebBrowser
The ChromiumWebBrowser control.
browser  IBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest.
frame  IFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest.
request  IRequest
the request object - cannot be modified in this callback.

Return Value

Boolean
return to true to attempt execution via the registered OS protocol handler, if any. Otherwise return false.
See Also