Feature Request: Add “Suggest Strong Password” to Context Menu for Password Fields

Summary

Expose Brave’s existing password generation capability via a right-click context menu option when a user interacts with a password input field (<input type="password">).

This improves discoverability and reduces friction at the point of account creation while leveraging Brave’s existing password manager and Chromium password generation stack.


Problem

Brave already inherits Chromium’s password generation functionality and integrates it with Brave’s password manager and Sync.

However, password suggestion is primarily surfaced via inline UI prompts or key icons. Many users either:

  • Miss the inline suggestion,

  • Disable popups,

  • Or default to manually typing passwords.

Surfacing “Suggest Strong Password” directly in the context menu would:

  • Improve discoverability,

  • Encourage stronger password adoption,

  • Require minimal architectural change,

  • Align with secure-by-default UX principles.


Proposed Implementation (Minimal Scope)

Trigger Conditions

  • Context menu item appears only when:

    • The target element is <input type="password">

    • The field is focusable and not disabled

  • The item label: “Suggest Strong Password”

Behavior

  • Invokes Chromium’s existing password generation logic

  • Uses the existing CSPRNG-backed generation pipeline

  • Autofills the field

  • Triggers the standard Brave password save prompt

No new generation engine required. This should call into the same component used when password generation is triggered via inline prompts.


Security Considerations

  • Password generation continues to rely on Chromium’s secure random source (base::RandBytes() / platform CSPRNG).

  • No network transmission; generation occurs locally.

  • Storage remains handled by Brave’s encrypted password store.

  • No change to existing Sync or encryption models.

This proposal affects only UI surfacing, not cryptographic architecture.


Optional (Future Enhancements – Not Required for MVP)

These are not necessary for initial implementation but could be considered later:

  • Respect site password constraints already detected by Chromium (length limits, character restrictions).

  • Add a secondary “Regenerate” option if validation fails.

  • Keyboard shortcut support.

  • If WebAuthn is supported on the page, optionally prioritize or surface “Create Passkey” alongside password suggestion.


Rationale

Research and industry trends consistently show that strong defaults and contextual security nudges significantly improve user behavior compared to relying on settings discovery.

Other major browsers (Chrome, Safari, Firefox) surface password generation prominently during account creation. Providing a context-menu entry would:

  • Increase feature visibility

  • Encourage unique credential usage

  • Strengthen overall account security hygiene

  • Reduce password reuse across sites

  • Reinforce Brave’s commitment to user security