Skip to content

domain/navigation/new-tab

mayOpenInNewTab(url): boolean

Defined in: app/src/domain/navigation/new-tab.ts:8

Tells whether a URL that comes from a web page may open in a new tab, whether the page asked for a window or the user picked a link in its context menu. Only http and https qualify: internal app:// pages, local files and data:, blob: or javascript: URLs never open on behalf of a page.

string

The URL from the page.

boolean


mayOpenWindow(url): boolean

Defined in: app/src/domain/navigation/new-tab.ts:17

Tells whether a page may open a window or tab with a script, which then keeps the page as its opener: what a new tab may open, and a blank page that the opener fills itself.

string

The URL from the page.

boolean