Skip to content

main/browser-menu

Defined in: app/src/main/browser-menu.ts:230

A bookmark or folder for the menu of a folder of the bookmarks bar.

readonly id: number

Defined in: app/src/main/browser-menu.ts:231

readonly title: string

Defined in: app/src/main/browser-menu.ts:232

readonly url: string | null

Defined in: app/src/main/browser-menu.ts:233

macMenuBar(run): Menu

Defined in: app/src/main/browser-menu.ts:138

The menu bar of macOS, with the browser’s settings in the application menu and the tools of the page in the View menu. Its items run the commands of the window, as the keys do, so they act on the page and not on the browser’s own views, and the policies apply.

(command) => void

Runs a command in the frontmost window.

Menu


popupBookmarkFolder(window, position, folder, contents, open): void

Defined in: app/src/main/browser-menu.ts:250

Shows the contents of a folder of the bookmarks bar as a menu, with a submenu for each folder in it. Choosing a bookmark opens it in the active tab, or with Ctrl or Command in a new tab.

BrowserWindowController

The window whose bookmarks bar was clicked.

Where the menu opens, in the window’s coordinates.

number

number

The folder, and how many of its first entries the menu leaves out because the bookmarks bar shows them.

number

number

(folder) => readonly FolderEntry[]

Lists what a folder contains.

(url, newTab) => void

Opens a bookmark.

void


popupBrowserMenu(window, position, options): void

Defined in: app/src/main/browser-menu.ts:17

Shows the browser menu of a window. Its shortcuts are shown for reference only: the window handles them itself, also while a page has the focus.

BrowserWindowController

The window whose menu button was clicked.

Where the menu opens, in the window’s coordinates.

number

number

Whether people may open private windows.

boolean

void


runFromMenuBar(windows, command, openPrivateWindow): void

Defined in: app/src/main/browser-menu.ts:116

Runs a command of the menu bar of macOS in the window that was used last. With no window open, a command that opens a window opens only that window, and any other command runs in a new window.

Pick<WindowManager, "lastUsed" | "open">

The browser’s windows.

WindowCommand

The command.

() => void

Opens a private window, if people may.

void


showBlockerSaveError(window, managed): void

Defined in: app/src/main/browser-menu.ts:99

Tells that an exception of the content blocker could not be saved.

BrowserWindowController

The window whose blocker menu was used.

boolean

Whether a policy manages the exceptions.

void