Click or drag to resize

IRequestHandlerOnOpenUrlFromTab Method

Version 130.1.90
Called on the UI thread before OnBeforeBrowse in certain limited cases where navigating a new or different browser might be desirable. This includes user-initiated navigation that might open in a special way (e.g. links clicked via middle-click or ctrl + left-click) and certain types of cross-origin navigation initiated from the renderer process (e.g. navigating the top-level frame to/from a file URL).

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
bool OnOpenUrlFromTab(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	string targetUrl,
	WindowOpenDisposition targetDisposition,
	bool userGesture
)

Parameters

chromiumWebBrowser  IWebBrowser
the ChromiumWebBrowser control
browser  IBrowser
the browser object
frame  IFrame
The frame object
targetUrl  String
target url
targetDisposition  WindowOpenDisposition
The value indicates where the user intended to navigate the browser based on standard Chromium behaviors (e.g. current tab, new tab, etc).
userGesture  Boolean
The value will be true if the browser navigated via explicit user gesture (e.g. clicking a link) or false if it navigated automatically (e.g. via the DomContentLoaded event).

Return Value

Boolean
Return true to cancel the navigation or false to allow the navigation to proceed in the source browser's top-level frame.
See Also