onProtocolExecution
open fun onProtocolExecution(browser: CefBrowser, frame: CefFrame, request: CefRequest, allowOsExecution: BoolRef)
Called on the IO thread to handle requests for URLs with an unknown protocol component. The |browser| and |frame| values represent the source of the request, and may be null for requests originating from service workers or CefURLRequest. SECURITY WARNING: YOU SHOULD USE THIS METHOD TO ENFORCE RESTRICTIONS BASED ON SCHEME, HOST OR OTHER URL ANALYSIS BEFORE ALLOWING OS EXECUTION.
Parameters
browser
The corresponding browser.
frame
The frame generating the event. Instance only valid within the scope of this method.
request
The request itself. Cannot be modified in this callback. Instance only valid within the scope of this method.
allowOsExecution
Set to true to attempt execution via the registered OS protocol handler, if any.