Skip to main content

Module browser_signin_fill

Module browser_signin_fill 

Source
Expand description

Filling a saved sign-in by the person’s own choice (SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §5.3).

When a frame of a pane shows a sign-in form, the host says so (credential.Form); srv lists the login entries the tab’s profile holds for exactly that frame’s origin in the block meta SIGNINS_META_KEY (entry id, origin, masked user name: never a password). The pane shows a key button with their number, which opens a menu marked operator-only, so no agent’s UI click reaches its items: the person choosing “Sign in as al***” is their approval. That sends browser.signin_fill, which only the window may, and srv hands the host the user name and password to type into that frame.

Only https, or http on this computer: a sign-in is never typed into a page anyone on the network could read or change.

Constants§

HOST_WAIT 🔒
SIGNINS_META_KEY 🔒
The block meta key the pane reads its saved sign-ins from.

Statics§

FORMS 🔒
The frame origins each pane’s page showed a sign-in form for.

Functions§

fill 🔒
The person chose entry entry from pane block_id’s “Sign in as” menu: type it into the page, if the page still shows a form for the site it is saved for.
fill_as 🔒
Type sign-in entry of profile into pane block_id’s page, if the page still shows a form for the site it is saved for, and record it as actor’s. Gives the site and whether a user name field was filled; never a value. shown: for an agent’s sign-in, the entry’s created_at, site and updated_at the person approved. Nothing is typed if the entry was made again with its id, or edited (its site, or who it is shared with, included), while they were asked.
fill_picked 🔒
fill, for a pick made with the keyboard: keep_focus when it was Tab, which moved focus on before the fill ran, so the host gives focus back to where it went once the fields are typed.
fillable 🔒
Whether a sign-in may be typed into a page of origin: https, or http on this computer.
form 🔒
A frame of pane block_id of origin shows a sign-in form.
form_origins 🔒
The frame origins pane block_id’s page shows a sign-in form for now.
listed 🔒
The saved sign-ins pane block_id’s page can take, as the pane lists them.
navigated 🔒
Pane block_id’s main frame loaded a new page: its forms went with the old one.
publish 🔒
Show pane block_id the saved sign-ins its page can take (none: no button).
refresh_all 🔒
The Vault changed (an entry saved, edited, moved or deleted): refresh the list of every pane whose page shows a sign-in form, so a sign-in saved while the page is open can be used and a deleted one goes from the menu. Panes whose list didn’t change aren’t written.
register 🔒
browser.signin_fill, from the window only: an agent’s sign-in goes through Browser signin and its approval window (B3), never this.
reset_in 🔒
reset_lists on a given table of forms, so a test can clear its own without taking down the forms of tests running beside it.
reset_lists 🔒
Forget every pane’s forms and clear the lists saved with them. Called when the host registers: after srv restarts the forms are gone while a list saved with a pane stays, and after the host restarts its pages are new and it no longer knows to say they navigated. The host then tells srv again of every form its pages still show (signin_notice::resend_forms).
set_meta 🔒