cef_request_handler_t.on_open_urlfrom_tab

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). The |browser| and |frame| values represent the source of the navigation. The |target_disposition| value indicates where the user intended to navigate the browser based on standard Chromium behaviors (e.g. current tab, new tab, etc). The |user_gesture| value will be true (1) if the browser navigated via explicit user gesture (e.g. clicking a link) or false (0) if it navigated automatically (e.g. via the DomContentLoaded event). Return true (1) to cancel the navigation or false (0) to allow the navigation to proceed in the source browser's top-level frame.

struct cef_request_handler_t
extern (System)
int function(cef_request_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, const(cef_string_t)* target_url, cef_window_open_disposition_t target_disposition, int user_gesture) nothrow on_open_urlfrom_tab;

Meta