Skip to main content

open_url

Function open_url 

Source
pub fn open_url(url: &str) -> Result<(), BrowserError>
Expand description

Validate url against the allowlist + hygiene rules, then open it with the OS handler.

§Errors

Returns a BrowserError if the URL is over-length, contains control characters, is malformed, has a non-allowlisted scheme, or the OS handler fails to launch.