IExtensionHandlerCanAccessBrowser Method |
Version 110.0.300
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: 110.0.300.0 (110.0.300.0)
Syntax bool CanAccessBrowser(
IExtension extension,
IBrowser browser,
bool includeIncognito,
IBrowser targetBrowser
)
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:
BooleanReturn true to allow access of false to deny access.
See Also