Skip to main content

Module browser_signup

Module browser_signup 

Source
Expand description

“Use a strong password” on a sign-up form (SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §6).

When the person focuses a field for a new password in a pane’s page, the host says so (credential.Signup, with the field’s passwordrules, minlength and maxlength and the user name typed so far); srv offers it in the block meta SIGNUP_META_KEY (the frame’s origin only), and the pane’s key button gets “Use a strong password (saved to the Vault)” in its menu, marked operator-only. Choosing it sends browser.signup_password, which only the window may: srv generates a password under the field’s rules, keeps it as a login entry tagged unconfirmed before anything is typed, so the value exists only in the Vault when the site first sees it, then has the host set it into the new-password field and its confirm field.

When the form is sent with it (credential.SignupSent), srv records the user name sent and drops the tag. A form not sent within 30 minutes leaves the entry unconfirmed in the Vault. Choosing it again (the site refused the password) replaces the unconfirmed value, the refused one kept as a version. A sign-up sent with a password the person typed is offered “Save to Vault?” like a sign-in.

Structs§

Field 🔒
The new-password field a pane’s page last had the focus in: its frame’s origin, the token the listener marked it with, and what the page says a password there may be.
Made 🔒
The entry last made for a pane’s sign-up, until the form is sent with it.

Constants§

CONFIRM_WITHIN 🔒
How long a sent form can still confirm the password made for it.
HOST_WAIT 🔒
SIGNUP_META_KEY 🔒
The block meta key the pane reads the offer from.

Statics§

MADE 🔒
OFFERED 🔒

Functions§

focused 🔒
The person focused a new-password field of field.origin in pane block_id. Nothing is offered in Incognito, or on a page anyone on the network could read or change.
make 🔒
The person chose “Use a strong password” in pane block_id: make one, keep it in the Vault, then set it into the page. Gives the site.
make_for 🔒
Make a password for field of pane block_id, keep it in the Vault under profile (with extra as one more tag; reason is the agent’s, kept with the Activity line) before anything is typed, then set it into the page, as actor’s doing. Gives the site and the entry; never the value. A password made earlier for this pane and site, still unconfirmed, is replaced (the site refused it), the refused one kept as a version.
make_picked 🔒
make, 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 filled.
navigated 🔒
Pane block_id’s main frame loaded a new page: its fields went with the old one.
new_password 🔒
A password for field: under its passwordrules, else its minlength and maxlength, else the defaults, clipped to maxlength. Rules that can’t be read are dropped (the length limits still hold); rules that can are the site’s, so when they leave no strong password, or contradict each other, none is made rather than one the site would refuse. minlength is a floor, never clipped: a field whose most allowed is shorter gets no password.
register 🔒
browser.signup_password, from the window only: an agent can’t make the person’s password for them through the pane’s menu.
reset_offers 🔒
Forget every pane’s offer and clear the ones saved with panes. Called when the host registers, as browser_signin_fill::reset_lists is; the page offers again the next time the person focuses the field.
sent 🔒
A sign-up form of origin was sent in pane block_id. A password made for that site and profile, sent as made, confirms its entry, however long ago it was made and across an srv restart (found in the Vault, not in MADE); any other password is the person’s own, offered “Save to Vault?” as a sign-in is.
set_meta 🔒
token 🔒
A field token as the listener makes one: letters, digits and -, at most 64.