Skip to content

main/page-handlers

Defined in: app/src/main/page-handlers.ts:16

What the browser’s own pages need from the browser process.

readonly bookmarks: Bookmarks

Defined in: app/src/main/page-handlers.ts:24

readonly canBeDefaultBrowser: boolean

Defined in: app/src/main/page-handlers.ts:31

Whether this installation can become the default browser.

readonly data: DataClient

Defined in: app/src/main/page-handlers.ts:23

readonly defaultBrowserAllowed: () => boolean

Defined in: app/src/main/page-handlers.ts:29

Whether a policy lets the user make the browser the default.

boolean

readonly definitions: readonly SettingDefinition<unknown>[]

Defined in: app/src/main/page-handlers.ts:20

All settings; those with ui metadata appear on the settings page.

readonly importAllowed: () => boolean

Defined in: app/src/main/page-handlers.ts:27

Whether a policy allows the import from other browsers.

boolean

readonly internal: Session

Defined in: app/src/main/page-handlers.ts:22

Session of the browser’s own views, whose pages receive changes.

readonly router: IpcRouter

Defined in: app/src/main/page-handlers.ts:17

readonly settings: SettingsService

Defined in: app/src/main/page-handlers.ts:18

readonly startValues: ReadonlyMap<string, string>

Defined in: app/src/main/page-handlers.ts:33

The values, as JSON, that the settings which need a restart had when the browser started.

readonly windows: WindowManager

Defined in: app/src/main/page-handlers.ts:25

connectPages(dependencies): void

Defined in: app/src/main/page-handlers.ts:42

Connects the browser’s own pages other than the new tab page: settings, setup guide, history, bookmarks, the import and the default browser setting. The browser loads this module with the first of these pages, before the page itself, so the start does not.

PageDependencies

What the pages need.

void