Click or drag to resize

IExtensionHandlerCanAccessBrowser Method

Version 87.1.132
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
Assembly:  CefSharp (in CefSharp.dll) Version: 87.1.132.0 (87.1.132.0)
Syntax
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