Skip to main content

Module browser_change

Module browser_change 

Source
Expand description

Browser generate_password on a form that changes a password (SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §7.3).

A form with a current-password field changes an account that already exists, and a wrong change locks the person out of it. So, unlike a new account:

  • the person is asked every time, in the Vault’s own prompt. There is no “Always”, the standing accounts permission does not apply, and silence is a no;
  • the new password is a pending version of the saved sign-in for that site and user (backend::vault::changes), not an entry of its own and not its value: the saved password stays the one that works until the site was sent the form with the new one, when the page’s listener reports it (credential.ChangeSent, sent) and the old one is kept 7 days for the person to put back;
  • an Incognito tab keeps no sign-ins, so there is nothing saved to change there.

The agent fills the current password with signin (a saved sign-in, as it asks today), fills the rest itself and clicks the form’s button, which asks as any committing click does.

Structs§

Asked 🔒
What the handler knows of the request and the pane when the host says the form is a password change.

Constants§

ANSWER_WAIT 🔒
ASKED 🔒
What the Activity line is called when the person was asked, and when the password was typed.
BUSY 🔒
DETAIL 🔒
The detail of the pane’s action note.
FILLED 🔒
HOST_WAIT 🔒
NOTICE 🔒

Functions§

approve 🔒
Ask the person; only “Allow once” goes on.
handle 🔒
generate_password on a password-change form: ask, count down, make the pending password, type it.
line 🔒
An Activity line for the saved sign-in entry that this change is about.
make 🔒
Make the password, keep it as the saved sign-in’s pending change, then type it into the page.
refuse 🔒
sent 🔒
A password-change form of origin was sent in pane block_id with password. The password an agent made for it becomes the saved sign-in’s, the old one kept 7 days; any other is the person’s own, offered “Update password?” as a sign-in is. Never logged.
use_request 🔒