Skip to main content

set_tab_present_handler

Function set_tab_present_handler 

Source
pub fn set_tab_present_handler(handler: Arc<dyn Fn(&str) + Send + Sync>)
Expand description

Registers a process-wide observer used to bring a browser tab onscreen.

Browser core owns tab lifecycle and active-tab state, but only a host shell knows how to present that tab’s WebView in its UI. Devtools and other automation surfaces call present to request this handoff.