domain/navigation/new-tab
Functions
Section titled “Functions”mayOpenInNewTab()
Section titled “mayOpenInNewTab()”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.
Parameters
Section titled “Parameters”string
The URL from the page.
Returns
Section titled “Returns”boolean
mayOpenWindow()
Section titled “mayOpenWindow()”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.
Parameters
Section titled “Parameters”string
The URL from the page.
Returns
Section titled “Returns”boolean