Click or drag to resize

ExtensionHandlerCanAccessBrowser Method

Version 103.0.120
Called when the tabId associated with targetBrowser is specified to an extension API call that accepts a tabId parameter (e.g. chrome.tabs.*).

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 103.0.120.0 (103.0.120.0)
Syntax
protected virtual bool CanAccessBrowser(
	IExtension extension,
	IBrowser browser,
	bool includeIncognito,
	IBrowser targetBrowser
)

Parameters

extension
Type: CefSharpIExtension
extension the call originates from
browser
Type: CefSharpIBrowser
browser the call originates from
includeIncognito
Type: SystemBoolean
Access to incognito browsers should not be allowed unless the source extension has incognito access enabled, in which case this will be true.
targetBrowser
Type: CefSharpIBrowser

Return Value

Type: Boolean
Return true to allow access of false to deny access.
See Also