IResourceRequestHandlerOnProtocolExecution Method |
Version 112.3.0
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
Assembly:
CefSharp (in CefSharp.dll) Version: 112.3.0.0 (112.3.0.0)
Syntax bool OnProtocolExecution(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request
)
bool OnProtocolExecution(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request
)
Parameters
- chromiumWebBrowser
- Type: CefSharpIWebBrowser
The ChromiumWebBrowser control - browser
- Type: CefSharpIBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest - frame
- Type: CefSharpIFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest - request
- Type: CefSharpIRequest
the request object - cannot be modified in this callback
Return Value
Type:
Booleanreturn to true to attempt execution via the registered OS protocol handler, if any. Otherwise return false.
See Also