XGameUi: mask password text entry input #2065
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2067"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T04:20:26Z.
Closes #881.
Summary
scope == PASSWORD(31) fromtext_entry_asyncinto the host text-entry dialog and addES_PASSWORDto theEDITcontrol style indialog::edit_styleso password prompts mask typed characters.Testing
xgameui::tests::password_scope_masks_the_edit_controlverifyingES_PASSWORDstyle selection and0x88vtable dispatch across plain, URL, andPASSWORDinput scopes.cargo test -p victory-hle --locked,cargo clippy --workspace --all-targets --all-features -- -D warnings, andcargo xtask policy.Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T04:26:29Z.
Review: COMMENTED
Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.
XGameUi password text-entry input masked — privacy fix for chat/password UI paths.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T04:56:58Z.
Review: APPROVED
Verified locally merged onto
origin/main(940d32f, Windows 11 x64, Rust 1.98.1 MSVC):cargo test -p victory-hle --lib xgameui::— 4 passed, 0 failedcargo clippy -p victory-hle --all-targets— 0 warningscargo xtask policy— ok (183 files ok)Clean password masking for
XGameUitext entry input with unit test coverage. Looks good.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T04:23:56Z.
Triage verdict — Keep as the current implementation of #881 (
cf0edf0)Evidence
ES_PASSWORD. #1027 closed without merging. #370 covered the length limit and is already inmain. This branch preserves that limit and adds vtable-level checks for plain, URL, and Password scopes. Current patch · Earlier patchChecks and limits
Next step
This verification was AI-assisted.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T10:24:48Z.
Automated triage for the maintainers.
Looks mergeable. In
victory-hle/src/modules/xgameui.rs,text_entry_asyncnow passesscope == PASSWORD(the constant already in main, used bymax_length_for) down todialog::ask. A newdialog::edit_stylethen addsES_PASSWORDto the edit control, so password prompts are masked. The length limit and cancel behaviour are unchanged. The new test checks the style bits and that the scope is routed through the 0x88 slot for plain, URL and password scopes. CI is passing.Generated by Claude Code