Problem
The extension already prompts to save credentials when you log in. The reverse
never happens: when you delete an account, any saved credentials for it silently
remain in your vault as dead weight.
Proposed behaviour
When the extension detects a likely account deletion flow e.g. interaction with
a “delete account” prompt followed by a confirmation action. It surfaces a
non-intrusive prompt mirroring the existing save-credential UX:
“Looks like you deleted your account on example.com. Remove it from your vault?”
The user can confirm or dismiss. No credential is touched without explicit action.
Notes for implementation
- Detection is the hard part; “delete account” as a phrase plus a subsequent
confirmation action seems like a reasonable heuristic, though false-positive
tolerance will need tuning - Multiple credentials on the same domain may require the user to specify which
entry to remove - Non-destructive by default — always prompt, never auto-delete