Menu

Enum

NewWindowKind

kurogane::NewWindowKindSource
#[non_exhaustive] pub enum NewWindowKind { Tab, BackgroundTab, Popup, Window, PictureInPicture, }

How a page asked for a window of its own (NewWindowRequest::kind).

Variants

#Tab

A tab in front. A target=_blank link, window.open without features and a link clicked with Ctrl (Cmd on macOS) ask for one.

#BackgroundTab

A tab behind the current one. A link clicked with the middle button or with Ctrl and Shift asks for one.

#Popup

A popup. window.open with features such as a size or position asks for one.

#Window

A window. A link clicked with Shift asks for one.

#PictureInPicture

A picture-in-picture window (documentPictureInPicture).

Trait implementations