Expand description
The sites an agent’s browser pane may go to, when the agent limited it
with OpenBrowser({allowed_origins})
(docs/specs/SPEC_BROWSER_PANE_ALLOWED_ORIGINS_2026_10_09.md §2).
Shared by srv, which checks the list it is given and re-checks every
request, and the CEF host, which stops a navigation off the list before it
happens. A list is kept in its normal form (parse): https://example.com,
https://*.example.com, http://localhost:3000.
Constants§
- MAX_
ENTRIES - Most entries one pane’s list may have.
Functions§
- allows
- May a pane limited to
list(normal form) go tourl?about:pages always; any other address with no web origin, never. - bare_
origin urlas an origin and nothing else: the origin (target_origin) whenurlnames no more than one (no path beyond/, no query, fragment or user information), elseNone. What a saved site is stored as when it is only an origin written another way (HTTPS://Example.com:443/becomeshttps://example.com); an address with a path is a login’s own page and is left as it was typed.- parse
entryin its normal form, or why it isn’t a valid entry:- parse_
list - Parse every entry of
entries, deduplicated, in order. Fails on the first bad entry, or pastMAX_ENTRIES. - same_
origin - Whether
aandbname the same origin: the same scheme, host (any case) and port (the scheme’s default when absent), whatever else either carries (a trailing slash, a path, a query, user information). Never true for another host, port or scheme. An address with no web origin is the same as another only when written the same. - target_
origin - The origin a navigation to
urlgoes to, as an entry would name it exactly (ablob:URL’s is the origin it belongs to).Nonefor an address with no such origin (about:,data:, ablob:address that carries anotherblob:address).