Menu

Enum

NewWindowDecision

kurogane::NewWindowDecisionSource
#[non_exhaustive] pub enum NewWindowDecision { Default, Allow, Deny, OpenExternal, }

The answer of App::on_new_window.

Variants

#Default

Kurogane’s policy decides. A page of the application’s own origin gets a window, an http or https link the user clicked goes to the system browser and anything else is refused.

#Allow

Opens the page in an application window, whatever its origin. The page reaches only the commands and events that App::permit and its kin grant its origin.

#Deny

Opens no window.

#OpenExternal

Opens the URL in the system’s default browser instead. Only an http or https link the user clicked goes there; any other request is refused.

Trait implementations