Skip to main content

Module browser_identity

Module browser_identity 

Source
Expand description

Which cookie jar a browser tab browses as: its block’s browser:identity (docs/specs/SPEC_BROWSER_PANE_PROFILES_MENU_2026_10_09.md §5–§6). Absent for Personal; incognito:<jar> for an in-memory jar of its own, which the CEF host makes on first use. Set when the tab is opened and never changed: to browse as someone else, open another tab.

Constants§

IDENTITY_META_KEY 🔒
MAX_INCOGNITO_JARS 🔒
Most Incognito jars open at once: each is its own Chrome profile with its own renderer (identities spec §4.3). The host keeps the same cap.

Functions§

agent_may_use 🔒
May the agent owner (see profile_owner) browse as p: its own profile, or one the user lets agents use.
asks_for_own 🔒
Whether requested (an OpenBrowser profile) asks for the agent’s own profile, which srv makes the first time.
browsing_as 🔒
Whose sign-ins a pane with meta browses with, in words: “personal” (no identity), “incognito” (a jar of its own) or the named profile. What OpenBrowser tells the agent that opened it.
check_agent_may_use 🔒
An agent opening a browser tab some other way (pane.open, the HTTP pane open) with a browser:identity: a named profile only if it is the agent’s own or agents may use it.
check_new_tab 🔒
Check the identity a client gives a new browser tab (pane.open): an Incognito one that is well formed, within the cap unless it shares a jar already open. Anything else fails the open rather than quietly browsing in the shared jar.
for_agent_open 🔒
OpenBrowser’s profile: give the agent’s new tab the identity it asked for, checked like any new tab (the platform, the Incognito cap). With nothing asked, every agent, native or container, browses as its own profile (requested_by_container for the container’s other rules).
for_agent_pane 🔒
A new pane for the agent (id, allowed sites, profile asked for, from a container): owned by it, limited to its sites, and browsing as the identity it gets (for_agent_open). Returns whom it browses as, in words.
identity_for_agent 🔒
The identity an agent’s OpenBrowser asked for by profile browses as: its own profile for nothing, “” or “own” (made by srv before this, see app_api::browser_profiles::ensure_agent_profile); none (Personal) for “personal”; a fresh Incognito jar for “incognito”, always allowed since it gives the agent less, not more; and a named profile (by name, any case, or id): the agent’s own, or one the user switched on “Agents may use it” for in Settings → Browser (docs/specs/SPEC_AGENT_OWN_BROWSER_PROFILE_2026_11_04.md).
identity_of 🔒
in_container 🔒
Whether pane block_id is a container agent’s: whatever key it asks with, what it opens is not the user’s own.
inherit 🔒
A popup pane browses as the tab that opened it: same jar, so a sign-in in it signs in the tab.
is_incognito 🔒
Is identity a well-formed Incognito identity?
jars_available 🔒
How many more Incognito jars a layout replay may open: the cap less those open now (none when they can’t be counted).
live_jars 🔒
The Incognito identities blocks use now: the jars the host must keep. None when the store can’t be read: the host then keeps every jar, rather than taking an empty list as “no tab uses any” and signing them all out.
profile_id 🔒
The profile id of a profile:<id> identity.
profile_ids 🔒
The ids of the named profiles there are, or None when they can’t be read.
profile_owner 🔒
Who owns an agent’s own browser profile: its uid, which a rename keeps, else (an agent srv does not know by a uid) the name it calls itself.
refresh_for_replay 🔒
For a layout being replayed: each Incognito identity becomes a fresh one, so the replay doesn’t share a jar with a tab still open. Tabs that shared a jar keep sharing one. fresh maps old to new across the replay; at most available fresh jars are made. Returns false for a tab that would need one more: it is left out of the replay, not opened as a blank pane or in the shared jar.
requested_by_container 🔒
What a container agent’s profile asks for, once its defaults are applied. A container agent exists to be isolated from the user’s own sign-ins, so with nothing asked it gets its own profile, never Personal; it browses as another named profile only when the user lets agents use that profile (the check identity_for_agent makes for every agent).
requested_or_own 🔒
The profile an agent’s open is carried out with. With none asked for, the agent browses as its own: made here, the first time. If it can’t be made (the shared folder is given up to an older srv), a fresh Incognito jar, never the user’s Personal.