Expand description
The windows of one streamed pane: the page it started with, and the windows that page (or a window of it) opened. Only one is shown at a time. A window a page opens (a sign-in pop-up, a link to a new tab) becomes the shown one, so the person sees it and its address; it can return its result to the page that opened it; it ends when its page closes it, and the pane goes back to the window that opened it. A page cannot open windows without limit.
Plain data and functions, so every rule is tested without a browser.
Structs§
- Entry
- One window: where the browser keeps it and what the person sees of it.
- Notice
Limiter - Removed
- What
removechanged. - Windows
Constants§
- FIRST
- The window id of the page a pane starts with. It is never closed by the person or by a page.
- GOOGLE_
REFUSAL 🔒 - Google’s page that says it will not sign in this browser. Matched on its address (host and path), never on what the page says.
- KEY_GAP
- After the shown window changes without the person choosing it (a page opened one, or one closed itself), keys the person types are dropped for this long: a key meant for one window must not land in another (a password typed into a page the person had not yet seen). Pointer input is not held.
- MAX_
WINDOWS - At most this many windows in one pane, the first included.
- NOTICE_
EVERY 🔒 - Notices come at most this often: a page that raises a hundred dialogs is one line, not a hundred.
- NO_SITE 🔒
- What a line says for an address that has no host.
Functions§
- dialog_
dismissed - The line for a message box a page raised (alert, confirm, prompt, leaving the page), which the pane dismisses.
- is_
hidden 🔒 - A character a person cannot see or that changes how the text around it reads: controls, the marks that reorder text (bidi), and the ones that have no width (zero-width, joiners, the byte-order mark, soft hyphen, tag characters).
- provider_
refusal - A line for an address the pane knows a provider answers with a refusal to this browser, else none.
- shorten 🔒
- Words a page wrote, made safe to show inside a line of ours: one line, nothing hidden, at most
maxcharacters. - site_of
- The site an address belongs to, for a line the person reads: the host, or “a page” when there is none.
- too_
many_ windows - The line for a page that opened more windows than a pane shows.
- window_
changed_ site - The line for a window that went to another site while the person was not looking at it, said when they come back to it.
- window_
not_ shown - The line for a window the pane could not show because the page opened it before the browser would let the pane see it.